Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: freepro on November 28, 2012, 08:39:19 am

Title: CodeBlocks+wxWidgets don't work
Post by: freepro on November 28, 2012, 08:39:19 am
After i install CodeBlocks and wxWidgets, complite default wxWidgets project error: No found wx/app.h! why?
I need help!
Thank you!
Title: Re: CodeBlocks+wxWidgets don't work
Post by: MortenMacFly on November 28, 2012, 11:20:41 am
After i install CodeBlocks and wxWidgets, complite default wxWidgets project error: No found wx/app.h! why?
Because you didn't setup the include folders of your project correctly.
Title: Re: CodeBlocks+wxWidgets don't work
Post by: Radek on November 28, 2012, 11:26:55 am
WxWidgets headers have not been found. Several posibilitiies:

(1) You do not have wxWidgets headers at all. With wxWidgets 2.8.12, check whether you have a folder /usr/include/wx-2.8 and whether it contains a "wx" folder with bags of headers. If you do not find the folder then install wxWidgets development files.
(2) You have not created a wxWidgets project. If you haven't then you need to add `wx-config --cxxflags` to "other compiler options" and `wx-config --libs` to "linker options". Or create an empty wxWidgets project and add your source files to it.

Be sure that Code Blocks works with wxWidgets perfectly  :)  If you meet problems then Code Blocks isn't guilty.
Title: Re: CodeBlocks+wxWidgets don't work
Post by: freepro on November 28, 2012, 11:36:33 am
WxWidgets headers have not been found. Several posibilitiies:

(1) You do not have wxWidgets headers at all. With wxWidgets 2.8.12, check whether you have a folder /usr/include/wx-2.8 and whether it contains a "wx" folder with bags of headers. If you do not find the folder then install wxWidgets development files.
(2) You have not created a wxWidgets project. If you haven't then you need to add `wx-config --cxxflags` to "other compiler options" and `wx-config --libs` to "linker options". Or create an empty wxWidgets project and add your source files to it.

Be sure that Code Blocks works with wxWidgets perfectly  :)  If you meet problems then Code Blocks isn't guilty.

Yes, i don't aadd `wx-config --cxxflags` to "other compiler options" and `wx-config --libs` to "linker options". Thank you, i to try!
Title: Re: CodeBlocks+wxWidgets don't work
Post by: freepro on November 28, 2012, 02:03:39 pm
Oh, no!

-------------- Build: Debug in TestGTK ---------------

Compiling: TestGTKApp.cpp
g++: error: wx-config: No such file or directory
g++: error: unrecognized option ‘--cxxflags’
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 
What happened?
Title: Re: CodeBlocks+wxWidgets don't work
Post by: freepro on November 28, 2012, 02:09:15 pm
After i install CodeBlocks and wxWidgets, complite default wxWidgets project error: No found wx/app.h! why?
Because you didn't setup the include folders of your project correctly.
How i should to do?
Title: Re: CodeBlocks+wxWidgets don't work
Post by: oBFusCATed on November 28, 2012, 02:13:10 pm
Try reading this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
And the other FAQ entries...
Title: Re: CodeBlocks+wxWidgets don't work
Post by: freepro on November 28, 2012, 02:18:17 pm
Hey, i found it's work tight, if i select wxsmith and wxdefaultconfig. why?
But i need unicode!
Title: Re: CodeBlocks+wxWidgets don't work
Post by: freepro on November 28, 2012, 02:58:04 pm
/usr/lib/i386-linux-gnu/wx/include/gtk2-unicode-release-2.8/wx/setup.h|887|note: this is the location of the previous definition|
What's this?
How i should to do?
Title: Re: CodeBlocks+wxWidgets don't work
Post by: MortenMacFly on November 28, 2012, 03:41:23 pm
Hey, i found it's work tight, if i select wxsmith and wxdefaultconfig. why?
But i need unicode!
...what?! ???

Can you re-phrase you question? I don't get it...
Title: Re: CodeBlocks+wxWidgets don't work
Post by: MortenMacFly on November 28, 2012, 03:41:52 pm
What's this?
A compiler warning.

How i should to do?
Fix your code.
Title: Re: CodeBlocks+wxWidgets don't work
Post by: freepro on November 29, 2012, 05:08:28 am
I solved!
But i use build target release, the program does not work on other linux! Why?
Title: Re: CodeBlocks+wxWidgets don't work
Post by: MortenMacFly on November 29, 2012, 06:18:56 am
I solved!
But i use build target release, the program does not work on other linux! Why?
Because you compiled fro a different (Windows) platform. Windows applciations are not supposed to run on Linux.
Title: Re: CodeBlocks+wxWidgets don't work
Post by: freepro on November 29, 2012, 06:32:17 am
No, i compiled on Ubuntu 12.04!
Title: Re: CodeBlocks+wxWidgets don't work
Post by: freepro on November 29, 2012, 07:39:54 am
I need help!
Thank you!
Title: Re: CodeBlocks+wxWidgets don't work
Post by: MortenMacFly on November 29, 2012, 09:14:47 am
I need help!
Thank you!
I don't understand your question. Please be more precise. What exactly are you compiling and what exactly does not work? Provide steps to reproduce, samples and so on.

We don't have magic balls to know see what you are doing.

And stop ask questions multiple times or bumping threads every few minutes / hours. We are not permanently on-line, so do not expect a just-in-time answer, be more patient, please. You might not know, but we are not sitting in front of the computers all day, we have real life. >:(
Title: Re: CodeBlocks+wxWidgets don't work
Post by: freepro on November 29, 2012, 09:28:47 am
Sorry, Please see the question "how to compile release program?"
Title: Re: CodeBlocks+wxWidgets don't work
Post by: MortenMacFly on November 29, 2012, 09:32:44 am
Sorry, Please see the question "how to compile release program?"
Yes, that I answered already.