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

CodeLite installation/troubleshooting forum
Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Last edited by Landslyde on Sun Sep 07, 2014 9:29 am, edited 2 times in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Make sure you have read the HOW TO POST thread
Landslyde
CodeLite Enthusiast
Posts: 17
Joined: Tue Dec 11, 2012 1:06 am
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
Post Reply