User forums > Help
New to Code::Blocks - WxWidgets Problem
(1/1)
Arthur Dent:
Hello All,
I am just a casual hobbyist programmer. I have installed Code::Blocks having previously used KDevelop which is a bit OTT for my needs. I want to do some simple (very simple!) cross-platform C++ GUI apps.
I have installed Code::Blocks on my Fedora 16 machine which has the gcc toolchain already in place.
I have installed wxGTK and wxGTK-devel using yum.
When I try to compile a simple Hello World test project using wxsmith I get the following error:
fatal error: wx/app.h: No such file or directory
I'm sure I have left out a simple configuration step, but I can't for the life of me work out where...
Thank you in advance for any help and support.
Mark
oBFusCATed:
Do you have the devel packages for wxWidgets?
Jenna:
wxGTK-devel is the development package.
Do you have wx-config on your system ?
Type
--- Code: ---wx-config --list
--- End code ---
Output should be something like:
--- Code: --- Default config is gtk2-unicode-release-2.8
Default config will be used for output
Alternate matches:
base-unicode-release-2.8
--- End code ---
If you don't have wx-config, you have to install the appropriate package (I don't know, which one it is on fedora).
And if C::B was open after the first try (while installing the package including wx-config), you have to restart it (C::B) !
Arthur Dent:
Hi Chaps,
Apologies for my slow reply to your rapid ones, but real-life got in the way I'm afraid.
--- Quote from: jens on January 02, 2012, 05:28:28 pm ---And if C::B was open after the first try (while installing the package including wx-config), you have to restart it (C::B) !
--- End quote ---
Ooops! I think that was the problem - or at least I think I needed to logout and back in again after installing the extra packages. After I had done that everything seems to work just fine.
Thanks for the help and sorry for the noise. I'm off to try to play with C::B now!
Thanks again.
Mark
Navigation
[0] Message Index
Go to full version