1. install gtk
download libglib2.0-dev deb
https://ftp.nsysu.edu.tw/Ubuntu/ubuntu/pool/main/g/glib2.0
gdebi ./libglib2.0-dev_2.40.0-2_amd64.deb
3. aptitude install libgtk2.0-dev
use downgrade solution to install libgtk2.0-dev
4. install libwxgtk3.0
aptitude install libwxbase3.0-0 libwxbase3.0-dev libwxgtk3.0-0 libwxgtk3.0-dev wx-common wx3.0-headers wx3.0-examples
5. cd /usr/share/doc/wx3.0-examples/examples
./unpack_examples.sh $HOME/wx_examples
6.
cd $HOME/wx_examples/samples
gedit $HOME/wx_examples/samples/opengl/cube/Makefile
gedit $HOME/wx_examples/samples/opengl/isosurf/Makefile
gedit $HOME/wx_examples/samples/opengl/penguin/Makefile
modify LDFLAGS to LDFLAGS ?= -lGL -lGLU
make -j8
7. view include and link param
pkg-config --cflags --libs gtk+-2.0
or
wx-config --cxxflags --libs
you can see the include dir and link lib
沒有留言:
張貼留言