Page 1 of 1

Default projet doesn't work (wxDialog, using wxCrafter)

Posted: Thu Jun 04, 2015 3:24 pm
by Driky
Hi, i just started looking into wxWidget, and when i use the wizard to create a default GUI application (wxDialog, using wxCrafter), i get errors that seems to indicate a broken template in the wizard. Is this the case ? If yes is there any working template out there ?
/bin/sh -c '/usr/bin/make -j8 -e -f Makefile'
----------Building project:[ wxHelloWorld - Debug ]----------
make[1]: wx-config: commande introuvable
make[1]: entrant dans le répertoire « /home/chatelain/perso/developpement/project/cppProject/WxTestWorkspace/WxTest/wxHelloWorld »
make[1]: wx-config: commande introuvable
/usr/bin/g++-4.8 -c "/home/chatelain/perso/developpement/project/cppProject/WxTestWorkspace/WxTest/wxHelloWorld/main.cpp" -g -O0 -Wall -o ./Debug/main.cpp.o -I. -I.
/usr/bin/g++-4.8 -c "/home/chatelain/perso/developpement/project/cppProject/WxTestWorkspace/WxTest/wxHelloWorld/wxcrafter.cpp" -g -O0 -Wall -o ./Debug/wxcrafter.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] Erreur 1
make[1]: *** Attente des tâches non terminées....
In file included from /home/chatelain/perso/developpement/project/cppProject/WxTestWorkspace/WxTest/wxHelloWorld/wxcrafter.cpp:1:0:
/home/chatelain/perso/developpement/project/cppProject/WxTestWorkspace/WxTest/wxHelloWorld/wxcrafter.h:4:25: fatal error: wx/settings.h: Aucun fichier ou dossier de ce type
#include <wx/settings.h>
^
compilation terminated.
/home/chatelain/perso/developpement/project/cppProject/WxTestWorkspace/WxTest/wxHelloWorld/main.cpp:1:20: fatal error: wx/app.h: Aucun fichier ou dossier de ce type
#include <wx/app.h>
^
compilation terminated.
make[1]: *** [Debug/wxcrafter.cpp.o] Erreur 1
make[1]: *** [Debug/main.cpp.o] Erreur 1
make[1]: quittant le répertoire « /home/chatelain/perso/developpement/project/cppProject/WxTestWorkspace/WxTest/wxHelloWorld »
make: *** [All] Erreur 2
3 errors, 1 warnings

Re: Default projet doesn't work (wxDialog, using wxCrafter)

Posted: Thu Jun 04, 2015 3:32 pm
by eranif
make[1]: wx-config: commande introuvable
It is not broken. You simply don't have wxWidgets installed ( or at least, wx-config is not available)

If you are under Linux, please install the wxWidgets development packages or install the one that we provide from here:
http://codelite.org/LiteEditor/WxWidgets30Binaries

Eran

Re: Default projet doesn't work (wxDialog, using wxCrafter)

Posted: Thu Jun 04, 2015 3:44 pm
by Driky
arf ! Thx for your help i missed that one.
EDIT: It worked, thx again ;-)