compiling a wxwidgets program prob.

CodeLite installation/troubleshooting forum
skreamz
CodeLite Curious
Posts: 4
Joined: Sat Nov 14, 2009 11:31 am
Genuine User: Yes
IDE Question: c++
Contact:

compiling a wxwidgets program prob.

Post by skreamz »

hi there, im a bit stuck with this prob. i built codelite from source (which requires wxwidgets?) with no problems. but when i compile a a wxwidgets project within codelite i get the following errors. im using ubuntu 9.10.

----------Build Started--------
/bin/sh -c '"make" -j 2 -f "Comparer_wsp.mk"'
----------Building project:[ Comparer - Debug ]----------
Warning: No config found to match: /usr/bin/wx-config --cxxflags --unicode=yes --debug=yes
g++ -c "/home/lee/.codelite/workspace/Comparer/gui.cpp" -g -D__WX__ -o ./Debug/gui.o "-I."
in /usr/lib/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 --debug=yes --libs --unicode=yes
in /usr/lib/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.
In file included from /home/lee/.codelite/workspace/Comparer/gui.cpp:8:
/home/lee/.codelite/workspace/Comparer/gui.h:11:21: error: wx/intl.h: No such file or directory
/home/lee/.codelite/workspace/Comparer/gui.h:13:25: error: wx/statline.h: No such file or directory
/home/lee/.codelite/workspace/Comparer/gui.h:14:23: error: wx/gdicmn.h: No such file or directory
/home/lee/.codelite/workspace/Comparer/gui.h:15:21: error: wx/font.h: No such file or directory
/home/lee/.codelite/workspace/Comparer/gui.h:16:23: error: wx/colour.h: No such file or directory
/home/lee/.codelite/workspace/Comparer/gui.h:17:25: error: wx/settings.h: No such file or directory
/home/lee/.codelite/workspace/Comparer/gui.h:18:23: error: wx/string.h: No such file or directory
/home/lee/.codelite/workspace/Comparer/gui.h:19:22: error: wx/sizer.h: No such file or directory
/home/lee/.codelite/workspace/Comparer/gui.h:20:23: error: wx/button.h: No such file or directory
/home/lee/.codelite/workspace/Comparer/gui.h:21:23: error: wx/dialog.h: No such file or directory
In file included from /home/lee/.codelite/workspace/Comparer/gui.cpp:8:
/home/lee/.codelite/workspace/Comparer/gui.h:30: error: expected class-name before ‘{’ token
/home/lee/.codelite/workspace/Comparer/gui.h:35: error: ISO C++ forbids declaration of ‘wxStaticLine’ with no type
/home/lee/.codelite/workspace/Comparer/gui.h:35: error: expected ‘;’ before ‘*’ token
/home/lee/.codelite/workspace/Comparer/gui.h:36: error: ISO C++ forbids declaration of ‘wxStdDialogButtonSizer’ with no type
/home/lee/.codelite/workspace/Comparer/gui.h:36: error: expected ‘;’ before ‘*’ token
/home/lee/.codelite/workspace/Comparer/gui.h:37: error: ISO C++ forbids declaration of ‘wxButton’ with no type
/home/lee/.codelite/workspace/Comparer/gui.h:37: error: expected ‘;’ before ‘*’ token
/home/lee/.codelite/workspace/Comparer/gui.h:38: error: ISO C++ forbids declaration of ‘wxButton’ with no type
/home/lee/.codelite/workspace/Comparer/gui.h:38: error: expected ‘;’ before ‘*’ token
/home/lee/.codelite/workspace/Comparer/gui.h:41: error: ‘wxCloseEvent’ has not been declared
/home/lee/.codelite/workspace/Comparer/gui.h:42: error: ‘wxCommandEvent’ has not been declared
/home/lee/.codelite/workspace/Comparer/gui.h:43: error: ‘wxCommandEvent’ has not been declared
/home/lee/.codelite/workspace/Comparer/gui.h:48: error: expected ‘)’ before ‘*’ token
/home/lee/.codelite/workspace/Comparer/gui.h: In member function ‘virtual void MainDialogBase::OnCloseDialog(int&)’:
/home/lee/.codelite/workspace/Comparer/gui.h:41: error: request for member ‘Skip’ in ‘event’, which is of non-class type ‘int’
/home/lee/.codelite/workspace/Comparer/gui.h: In member function ‘virtual void MainDialogBase::OnCancelClick(int&)’:
/home/lee/.codelite/workspace/Comparer/gui.h:42: error: request for member ‘Skip’ in ‘event’, which is of non-class type ‘int’
/home/lee/.codelite/workspace/Comparer/gui.h: In member function ‘virtual void MainDialogBase::OnOKClick(int&)’:
/home/lee/.codelite/workspace/Comparer/gui.h:43: error: request for member ‘Skip’ in ‘event’, which is of non-class type ‘int’
/home/lee/.codelite/workspace/Comparer/gui.cpp: At global scope:
/home/lee/.codelite/workspace/Comparer/gui.cpp:12: error: expected ‘)’ before ‘*’ token
/home/lee/.codelite/workspace/Comparer/gui.cpp: In destructor ‘MainDialogBase::~MainDialogBase()’:
/home/lee/.codelite/workspace/Comparer/gui.cpp:47: error: ‘class MainDialogBase’ has no member named ‘Disconnect’
/home/lee/.codelite/workspace/Comparer/gui.cpp:47: error: ‘wxEVT_CLOSE_WINDOW’ was not declared in this scope
/home/lee/.codelite/workspace/Comparer/gui.cpp:47: error: ‘wxCloseEventHandler’ was not declared in this scope
/home/lee/.codelite/workspace/Comparer/gui.cpp:48: error: ‘m_sdbSizerCancel’ was not declared in this scope
/home/lee/.codelite/workspace/Comparer/gui.cpp:48: error: ‘wxEVT_COMMAND_BUTTON_CLICKED’ was not declared in this scope
/home/lee/.codelite/workspace/Comparer/gui.cpp:48: error: ‘wxCommandEventHandler’ was not declared in this scope
/home/lee/.codelite/workspace/Comparer/gui.cpp:48: error: ‘NULL’ was not declared in this scope
/home/lee/.codelite/workspace/Comparer/gui.cpp:49: error: ‘m_sdbSizerOK’ was not declared in this scope
make[1]: *** [Debug/gui.o] Error 1
make: *** [All] Error 2
----------Build Ended----------
25 errors, 0 warnings



wxwidgets is def installed.

any ideas?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: compiling a wxwidgets program prob.

Post by eranif »

wxWidgets is installed, but do you have wxWidgets-dbg installed?

Code: Select all

sudo apt-get install libwxgtk2.8-dbg
Eran
Make sure you have read the HOW TO POST thread
skreamz
CodeLite Curious
Posts: 4
Joined: Sat Nov 14, 2009 11:31 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: compiling a wxwidgets program prob.

Post by skreamz »

thank you.

*facepalms self* (compiling in debug, needs debug librarys D'oh).
Post Reply