Code::Blocks Forums
User forums => Help => Topic started by: Landslyde on June 26, 2014, 05:00:33 am
-
OS: Linux Mint 17 Cinnamon (64 bit)
C::B: 13.12 (obtained from Mint repository)
Greetings Forum:
Over the last couple years I have tried unsuccessfully to get wxSmith to work with C::B. So I'm here to ask for help.
After installing C::B and libwxsmithlib0 / libwxsmithlib-dev, I start up C::B, I create a new wxWidgets project using wxWidgets 2.8x. I give the project a name, select wxWidgets as the preferred GUI builder and select a Frame-based application. I then select Use Default wxWidgets configuration and create using PCH. There is a default form already there for me to use. I click the green run arrow and it all falls apart right there.
||=== Build: Debug in third (compiler: GNU GCC Compiler) ===|
./wx_pch.h|14|fatal error: wx/wxprec.h: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
And a search shows the file isn't on my computer.
I'd really like to be able to use C::B. Has a clean look to it as opposed to Qt. If anyone here can help me get C::B going, I'll name my next kid after ya! =)
Landslyde
-
Install the libwxgtk-dev package and you're good to go.
-
Install the libwxgtk-dev package and you're good to go.
Well, now isn't that a twist of the lime!
Wonder why this file isn't included as to make things simpler? :D
Thank you. All is well.
Landslyde
-
Because it's not only that file but a whole sdk... Which it's really large and most people don't need it. It's up to the developer to setup it's environment as needed... With the help of our wiki in the case of C::B. :-)
-
This error appears also when compiling C::B from C::B ( using codeblocks_unix.workspace ).
Defining environment variable WX_CONFIG as "wx-config" is mandatory.
You can set it within C::B ( Settings > Environment > Environment variables )
-
earlgrey: I don't think you're correct. CB's project don't rely on env variables being set.