Based on Codeblocks (16.0.1) and WxWidgets (3.0.2), this paper constructs a GUI development environment under Linux.
1. Installing Codeblocks
Ubuntu Default Source Current Codeblocks version is 13.x, for the installation of the latest stable version, the following steps,
$ sudo add-apt-repository ppa:damien-moore/codeblocks-stable
$ sudo apt-get update
$ sudo apt-get codeblocks
2. Download WxWidgets Linux Source Package wxwidgets-3.0.2.tar.bz2
-Extract to any directory, such as ~/wxwidgets-3.0.2 (the package can be deleted after installation is complete)
-Linux Installation instructions in ~/wxwidgets-3.0.2/docs/gtk/install.txt
-$ ./configure --with-gtk --disable-shared --enable-unicode # compiled into Shared=0, unicode=1, monolithic=0 (default)
The output information is as follows,
==================================================================
Configured wxWidgets 3.0.2 for ' X86_64-unknown-linux-gnu '
Which GUI toolkit should wxWidgets use? GTK + 2 with support for GTK + printing libnotify
Should wxWidgets be compiled intoSingle library?No
Should wxWidgets be linked as aShared library?No
Should wxWidgetsSupport Unicode?Yes(using wchar_t)
What level of WxWidgets compatibility should is enabled?
WxWidgets 2.6 No
WxWidgets 2.8 Yes
Which libraries should wxWidgets use?
STL No
JPEG SYS
PNG sys
Regex builtin
TIFF Sys
Zlib SYS
Expat SYS
Libmspack No
SDL No
==================================================================
-$ Make
-$ sudo make install
-$ sudo Ldconfig
< Span style= "color: #339966;" > -$ wx-config-- version < Span style= "color: #339966;" > (Should output 3.0.2, indicating successful installation) < Span style= "color: #339966;" >
WxWidgets development environment Configuration under Linux