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.