wxWidgets is a nice library used to build GUI applications in C++. Here is how i installed(version 2.8) it:
1. Go to Synaptic Package Manager
2. Search libwxgtk2.8-dev package and mark it for installation.
3. Apply changes and it should install all the dependencies.
Testing installation:
1. Fire up a terminal.
2. Type wx-config –version
3. You should see the version output by the above command.
Compiling and running a test program:
1. Fire up emacs or your favorite editor
2. Type the following program:
#include<wx/string.h>
using namespace std;
int main(){
wxPuts(wxT("A wxWidgets console app"));
return EXIT_SUCCESS;
}
3. Save the program and give it a name(say, wxSimpleConsole.c++)
4. Since i am running gcc, here is how you compile:
g++ `wx-config –cppflags` `wx-config –libs` wxSimpleConsole.c++ -o wxSimpleConsole
5. Run the binary like this: ./wxSimpleConsole
This is what you get:
A wxWidgets console app