Code::Blocks Forums

User forums => Help => Topic started by: nime1 on March 09, 2010, 09:04:46 pm

Title: wxSmith, wxWidgets, ubuntu 9.1
Post by: nime1 on March 09, 2010, 09:04:46 pm
Hello,
I can finally programm something for console with my CodeBlocks.
Now I starting to programm some GUI.
When I design them with wxSmith they make code with headers.
In those headers they includes file like this: #include <wx/xrc/xmlres.h> what compiles with error.
Then I change this to  #include </usr/include/wx-2.8/wx/xrc/xmlres.h> what passes during compilation.
But here is much linked headers in deep and I should change all those entryes in all headers.
This seems to me not good.

I obviously something set incorrect.
How can I best fix this situation to get wxWidgets work with default calling way?
Title: Re: wxSmith, wxWidgets, ubuntu 9.1
Post by: oBFusCATed on March 10, 2010, 12:16:08 am
You need to have `wx-config --cflag` in the build options...

Have you used the wxWidgets template? If not please use it!
Title: Re: wxSmith, wxWidgets, ubuntu 9.1
Post by: nime1 on March 10, 2010, 12:43:12 am
Thanks for your reply Obfuscated,
No, I havent this line nowhere in Project>Build options.
Instead of this I have `pkg-config gtk+-2.0 --cflags` at Compiler settings>Other options
Where exactly I should add this line?

I didnt try wxWidgets template yet.
Actually, I dont know how and where they are.
I just want to fire any (simplest) gui to start teaching about this area.
But it goes wery hard.

If you can please explain me in few clear steps how to get "anything".
I started to learn c++ 1 month ago.
This goes well but GUI dont go yet...
Title: Re: wxSmith, wxWidgets, ubuntu 9.1
Post by: oBFusCATed on March 10, 2010, 09:15:09 am
the template is here: File -> New -> Project... -> wxWidgets // no C::B in front of me so the menu might be a bit different
Title: Re: wxSmith, wxWidgets, ubuntu 9.1
Post by: nime1 on March 10, 2010, 09:23:39 pm
YES Obfuscated, NOW WORKS! :lol:
But I dont understand, I try to setup this few times at the start of project and didnt work.
Anyway, now I have something for start.

Thank you wery much.