Help for a new Ubuntu user

CodeLite installation/troubleshooting forum
WeekendWarrior
CodeLite Curious
Posts: 2
Joined: Sat Jan 10, 2015 2:42 am
Genuine User: Yes
IDE Question: C++
Contact:

Help for a new Ubuntu user

Post by WeekendWarrior » Sat Jan 10, 2015 3:04 am

Hi all.

I am, for all intents and purposes, a 'new to linux' user. I am working with a fresh install of Ubuntu 14.04. I am working with Codelite 6.1 from the repository and have also installed build-dep packages using:

Code: Select all

sudo apt-get build-dep codelite
I am trying to follow the initial 'hello world' tutorial found here - http://codelite.org/LiteEditor/WxCrafterHelloWorld

Following this tutorial brings up the following errors on compilation:

Code: Select all

/bin/sh -c '/usr/bin/make -j4 -e -f  Makefile'
----------Building project:[ test - 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/warrior/Documents/Code/test'
/usr/bin/g++   -c  "/home/warrior/Documents/Code/test/main.cpp" -g -O0 -Wall   -o ./Debug/main.cpp.o -I. -I.
/usr/bin/g++   -c  "/home/warrior/Documents/Code/test/wxcrafter.cpp" -g -O0 -Wall   -o ./Debug/wxcrafter.cpp.o -I. -I.
/usr/bin/g++   -c  "/home/warrior/Documents/Code/test/MainDialog.cpp" -g -O0 -Wall   -o ./Debug/MainDialog.cpp.o -I. -I.
wxcrafter_bitmaps.cpp:16:20: error: missing binary operator before token "("
 #if wxCHECK_VERSION(2,8,5) && wxABI_VERSION >= 20805
                    ^
make[1]: *** [Debug/wxcrafter_bitmaps.cpp.o.d] Error 1
make[1]: *** Waiting for unfinished jobs....
/home/warrior/Documents/Code/test/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/warriro/Documents/Code/test/wxcrafter.cpp:1:0:
/home/warrior/Documents/Code/test/wxcrafter.h:4:25: fatal error: wx/settings.h: No such file or directory
 #include <wx/settings.h>
                         ^
compilation terminated.
In file included from /home/warrior/Documents/Code/test/MainDialog.h:3:0,
                 from /home/warrior/Documents/Code/test/MainDialog.cpp:1:
/home/warrior/Documents/Code/test/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]: *** [Debug/wxcrafter.cpp.o] Error 1
make[1]: *** [Debug/MainDialog.cpp.o] Error 1
make[1]: Leaving directory `/home/warrior/Documents/Code/test'
make: *** [All] Error 2
5 errors, 2 warnings
I have tried to follow the through multiple times reading various forum posts and websites as it seems like a common initial problem, but I just can't figure out what I'm doing wrong. Can comeone please help me with this issue?

Thank you in advance.

DavidGH
CodeLite Plugin
Posts: 635
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Help for a new Ubuntu user

Post by DavidGH » Sat Jan 10, 2015 1:49 pm

Hi,
Warning: No config found to match: /usr/bin/wx-config --libs --debug
You're trying to make a 'debug' build of the project. However that isn't available on your system, so calls to the wx-config script asking for debug wx-libs will fail.

One solution is to build in 'release' mode. At the top of the Workspace View, which is probably on the left of CodeLite, you'll see a wxChoice which contains 'Debug' and 'Release'. Yours is set to 'Debug', so...

Alternatively install the CodeLite debug packages.

Regards,

David

WeekendWarrior
CodeLite Curious
Posts: 2
Joined: Sat Jan 10, 2015 2:42 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help for a new Ubuntu user

Post by WeekendWarrior » Sat Jan 10, 2015 4:03 pm

Hi DavidGH,

Thank you for your fast and clear reply to my question :)

I can confirm that, running in release mode, the source compiled correctly and I am up and running.

Thank you very much!

Post Reply