5.07.2007

Install wxWidget in ubuntu:

in Ubuntu, wxWidget is wxGTK, use ubuntu's package manager : /sbin/synaptic
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
no g++?
install g++ (ubuntu's default version is 24.1)
and it shows some dependent packages:
  • libstdc++6-4.1-dev
After installation. check the wxWidget package (library and header) was installed in..
  • /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.

沒有留言: