Author Topic: wxSmith, wxWidgets, ubuntu 9.1  (Read 2975 times)

Offline nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
wxSmith, wxWidgets, ubuntu 9.1
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13069
    • Travis build status
Re: wxSmith, wxWidgets, ubuntu 9.1
« Reply #1 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!
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: wxSmith, wxWidgets, ubuntu 9.1
« Reply #2 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...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13069
    • Travis build status
Re: wxSmith, wxWidgets, ubuntu 9.1
« Reply #3 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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: wxSmith, wxWidgets, ubuntu 9.1
« Reply #4 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.