Page 1 of 1

Fatal Error: wx/settings.h: no such file or directory

Posted: Sun Sep 07, 2014 9:17 am
by Landslyde
OS: Linux Mint 17 LTR
Codelite: 6.1
wxCrafter: 1.6

I've been using Code::Blocks with wxWidgets and thought I'd give Codelite a try. I started with a GUI project. The GUI components are available to me and i created a small form with a few buttons, etc. But when I try to build and run, I get the following errors:

Code: Select all

/bin/sh -c '/usr/bin/make -j2 -e -f  Makefile'
----------Building project:[ first_codelite - Debug ]----------

  Warning: No config found to match: /usr/bin/wx-config --libs --debug
           in /usr/lib/x86_64-linux-gnu/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

  Warning: No config found to match: /usr/bin/wx-config --cflags --debug
           in /usr/lib/x86_64-linux-gnu/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.
make[1]: Entering directory `/home/woogi/Desktop/CodeLite/first_codelite'
/usr/bin/g++   -c  "/home/woogi/Desktop/CodeLite/first_codelite/main.cpp" -g -O0 -Wall   -o ./Debug/main.cpp.o -I. -I.
/usr/bin/g++   -c  "/home/woogi/Desktop/CodeLite/first_codelite/MainFrame.cpp" -g -O0 -Wall   -o ./Debug/MainFrame.cpp.o -I. -I.
/home/woogi/Desktop/CodeLite/first_codelite/main.cpp:1:20: fatal error: wx/app.h: No such file or directory
 #include <wx/app.h>
                    ^
compilation terminated.
In file included from /home/woogi/Desktop/CodeLite/first_codelite/MainFrame.h:3:0,
                 from /home/woogi/Desktop/CodeLite/first_codelite/MainFrame.cpp:1:
/home/woogi/Desktop/CodeLite/first_codelite/wxcrafter.h:4:25: fatal error: wx/settings.h: No such file or directory
 #include <wx/settings.h>
                         ^
compilation terminated.
make[1]: *** [Debug/main.cpp.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Debug/MainFrame.cpp.o] Error 1
make[1]: Leaving directory `/home/woogi/Desktop/CodeLite/first_codelite'
make: *** [All] Error 2
3 errors, 1 warnings
I recall having a similar issue with Code::Blocks and wxWidgets (which are both still installed) when I first used it...but that was a long time ago. Can someone help me through this "noob" issue? Any help would be appreciated.


Thanks,
Landslyde

Re: Fatal Error: wx/settings.h: no such file or directory

Posted: Sun Sep 07, 2014 9:19 am
by eranif
Can you paste the build log?
See my signature ("HOW TO POST") to see what to paste so I can give better assistance

Eran

Re: Fatal Error: wx/settings.h: no such file or directory

Posted: Sun Sep 07, 2014 9:31 am
by Landslyde
I hope the log helps sort this out. I guess I'm too old for all of this, but it use to not be so difficult for me. Thanks for all your help.

Re: Fatal Error: wx/settings.h: no such file or directory

Posted: Sun Sep 07, 2014 9:47 am
by eranif
Hi,
It seems that you are attempting to build a wxWidgets project in debug mode, but you don't have it installed.
You can do either of (3 options here):

1. Install/compile wxWidgets in debug mode

2. Remove the --debug flag from the compile / link options:

Open the project settings (right click the project->settings)
In the field: Common settings->Compiler->C++ Compiler options
You should have something like:

`wx-config --cflags --debug` (it may also be like this: $(shell wx-config --cflags --debug=yes) )
Change the "--debug" to "--debug=no"

Do the same for the linker options:
Common settings->Linker->Linker Options
2.png
1.png
3. Build in Release Mode (the little drop down
3.png
I have attached 3 screenshots to show what I meant.

Eran