search wxWidget, list a lot of packages, choose - libwxgtk2.8-0.
and it shows some dependent packages:
- libc6-dev
- libwxbase2.8-0
- libwxbase2.8-dev
- libwxgtk2.8-0
- linux-libc-dev
- wx2.8-headers
install g++ (ubuntu's default version is 24.1)
and it shows some dependent packages:
- libstdc++6-4.1-dev
- /usr/lib/wx/include
TEST BUILD:
follow the instruction : http://wxwidgets.org/docs/tutorials/hello.htm
download the demo hello program : http://wxwidgets.org/docs/tutorials/hworld.txt
rename to hworld.cpp
then build :
g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld
OK. try run the hworld..
wx-config is a shell script, print out the wx's building environment.
沒有留言:
張貼留言