lexu
lexu

Reputation: 8849

Tool Chain for WxWidgets explained

Where can I find an writeup that shows me how to set up a tool chain for WxWidgets (C++) on linux/ubunto and/or OS X.

I downloaded, compiled & installed WxWidgets both on linux and OS X, compiled and tried the samples, but seem to be stuck setting up a compile environment in my own home directory.

DialogBlocks from http://www.dialogblocks.com looked promising, but it insists on recompiling WxWidgets again and again .. must be something about it I don't understand.

Writing code from scratch seems to fail due to a lack of paths to libraries, tools or whatnot .. again a lack og understanding on my part, I am sure.

So, can anyone point me to a tool chain setup, that has more than the bare minimum of instructions and fills in some of the "why" instead of only the minimal "what".

Upvotes: 0

Views: 326

Answers (2)

aib
aib

Reputation: 47041

I've found these two pages to be of help when setting up wxWidgets for Eclipse and MinGW.

Upvotes: 0

gnud
gnud

Reputation: 78628

Like all C/C++ programs, the compiler has to know in what directories to look for include files, and the linker has to know what libraries it should link to.

The WxWidgets package, if installed correctly, includes the program wx-config. This can be used while compiling and linking, like so:

g++ $(wx-config --cxxflags) -c my_prog.cpp
g++ my_prog.o $(wx-config --libs) -o my_prog

Upvotes: 2

Related Questions