News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

CodeBlocks+wxWidgets don't work

Started by freepro, November 28, 2012, 08:39:19 AM

Previous topic - Next topic

freepro

After i install CodeBlocks and wxWidgets, complite default wxWidgets project error: No found wx/app.h! why?
I need help!
Thank you!

MortenMacFly

Quote from: 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?
Because you didn't setup the include folders of your project correctly.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Radek

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.

freepro

Quote from: 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.

Yes, i don't aadd `wx-config --cxxflags` to "other compiler options" and `wx-config --libs` to "linker options". Thank you, i to try!

freepro

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?

freepro

Quote from: MortenMacFly on November 28, 2012, 11:20:41 AM
Quote from: 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?
Because you didn't setup the include folders of your project correctly.
How i should to do?

oBFusCATed

(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!]

freepro

Hey, i found it's work tight, if i select wxsmith and wxdefaultconfig. why?
But i need unicode!

freepro

/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?

MortenMacFly

Quote from: 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!
...what?! ???

Can you re-phrase you question? I don't get it...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

freepro

I solved!
But i use build target release, the program does not work on other linux! Why?

MortenMacFly

Quote from: 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?
Because you compiled fro a different (Windows) platform. Windows applciations are not supposed to run on Linux.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

freepro


freepro