Author Topic: CodeBlocks+wxWidgets don't work  (Read 8814 times)

Offline freepro

  • Multiple posting newcomer
  • *
  • Posts: 31
CodeBlocks+wxWidgets don't work
« 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!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeBlocks+wxWidgets don't work
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Radek

  • Multiple posting newcomer
  • *
  • Posts: 104
Re: CodeBlocks+wxWidgets don't work
« Reply #2 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.

Offline freepro

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks+wxWidgets don't work
« Reply #3 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!

Offline freepro

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks+wxWidgets don't work
« Reply #4 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?

Offline freepro

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks+wxWidgets don't work
« Reply #5 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(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 freepro

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks+wxWidgets don't work
« Reply #7 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!

Offline freepro

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks+wxWidgets don't work
« Reply #8 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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeBlocks+wxWidgets don't work
« Reply #9 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeBlocks+wxWidgets don't work
« Reply #10 on: November 28, 2012, 03:41:52 pm »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline freepro

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks+wxWidgets don't work
« Reply #11 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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeBlocks+wxWidgets don't work
« Reply #12 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline freepro

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks+wxWidgets don't work
« Reply #13 on: November 29, 2012, 06:32:17 am »
No, i compiled on Ubuntu 12.04!

Offline freepro

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks+wxWidgets don't work
« Reply #14 on: November 29, 2012, 07:39:54 am »
I need help!
Thank you!