安装参考http://codelite.org/LiteEditor/WxWidgets30Binaries#toc2

/etc/apt/source.list

deb http://repos.codelite.org/wx3.0/debian/ wheezy libs

安装

apt-get update

apt-get install libwxbase3.0-0-unofficial libwxbase3.0-dev libwxgtk3.0-0-unofficial libwxgtk3.0-dev wx3.0-headers wx-common libwxbase3.0-dbg libwxgtk3.0-dbg wx3.0-i18n wx3.0-examples wx3.0-doc

查看安装

$wx-congfig --version

HelloWorld程序代码

http://zetcode.com/gui/wxwidgets/firstprograms/

编译

加上`wx-config --cxxflags` `wx-config --libs`

g++  `wx-config --cxxflags` `wx-config --libs`  -I/usr/include/wx-3.0 simple.cpp main.cpp

创建一个wx include 目录的soft link到/usr/include/wx

ln -s /usr/include/wx-3.0-unofficial-version/wx wx

05-11 02:59