Code::Blocks Forums

User forums => Help => Topic started by: fosforo on January 01, 2011, 07:46:58 pm

Title: Ubuntu Maverick wxSmith problem
Post by: fosforo on January 01, 2011, 07:46:58 pm
I installed  CodeBlock  on Ubuntu  Maverick
Just add a wxSmith element  the program gives me an error:

||=== Test_1, Debug ===|
/home/ubuntu/Scrivania/CodeBlock/Test_1/NewPanel.h|5|fatal error: wx/panel.h: File o directory non esistente|
||=== Build finished: 1 errors, 0 warnings ===|

 what caused the error?
Thanks for your help
Title: Re: Ubuntu Maverick wxSmith problem
Post by: Jenna on January 01, 2011, 07:56:06 pm
Do you have wxWidgets development files installed (most likely libwxgtk2.8-dev on ubuntu) ?
Title: Re: Ubuntu Maverick wxSmith problem
Post by: fosforo on January 01, 2011, 08:01:21 pm
Thanks for the help

I installed it but now gives me this error:

/home/ubuntu/Scrivania/CodeBlock/Test_1/NewPanel.h|5|fatal error: wx/textctrl.h: File o directory non esistente|
||=== Build finished: 1 errors, 0 warnings ===|
Title: Re: Ubuntu Maverick wxSmith problem
Post by: Jenna on January 01, 2011, 08:05:50 pm
This header is in wx2.8-headers, it should be installed also.
Title: Re: Ubuntu Maverick wxSmith problem
Post by: fosforo on January 01, 2011, 08:08:00 pm
It is installed but can not find it in my PC
Title: Re: Ubuntu Maverick wxSmith problem
Post by: fosforo on January 01, 2011, 09:03:18 pm
This is the situation:

[attachment deleted by admin]
Title: Re: Ubuntu Maverick wxSmith problem
Post by: fosforo on January 02, 2011, 12:53:47 pm
The log say


-------------- Build: Debug in Test_1 ---------------

Compiling: NewFrame.cpp
In file included from /home/ubuntu/Scrivania/CodeBlock/Test_1/NewFrame.cpp:1:
/home/ubuntu/Scrivania/CodeBlock/Test_1/NewFrame.h:5: fatal error: wx/frame.h: File o directory non esistente
compilation terminated.
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
 
buti the file wx/frame.h is present on mi PC
I must set some setting?
Title: Re: Ubuntu Maverick wxSmith problem
Post by: Jenna on January 02, 2011, 01:32:44 pm
On linux you should use wx-config, create the wxWidgets sample with the wizard and look how it is done there.

wx-config is included in wx-common if I remember right.