wx project in CodeLite, Ubuntu 10.04 Lucid...

CodeLite installation/troubleshooting forum
jiapei100
CodeLite Expert
Posts: 115
Joined: Wed Dec 30, 2009 8:29 am
Genuine User: Yes
IDE Question: C++
Location: Surrey, BC, Canada
Contact:

wx project in CodeLite, Ubuntu 10.04 Lucid...

Post by jiapei100 »

Since CodeLite is not willing to work under Ubuntu 9.10 last week,
i did a thorough upgrading yesterday, to Ubuntu 10.04 Lucid.

The default package in the repository is "CodeLite 2.5.2.4031~dfsg-1",
which I believe it's the newest stable version of CodeLite compatible with Ubuntu 10.04.

However, my former "wx" projects are now confronting new problems:
Even after I freshly created a wx-GUI project, I still got the following error messages:

Code: Select all

In file included from /home/jiapei/MyPrograms/C++/CodeLite/aam/WXBuildStatisticalModels/src/gui/buildinggui.cpp:2:
./include/gui/WXBuildGUIFrame.h:9:19: error: wx/wx.h: No such file or directory
In file included from /home/jiapei/MyPrograms/C++/CodeLite/aam/WXBuildStatisticalModels/src/gui/WXBuildGUIFrame.cpp:25:
./include/gui/AboutDialog.h:5:19: error: wx/wx.h: No such file or directory
./include/gui/AboutDialog.h:6:26: error: wx/hyperlink.h: No such file or directory
In file included from /home/jiapei/MyPrograms/C++/CodeLite/aam/WXBuildStatisticalModels/src/gui/WXBuildGUIFrame.cpp:25:
./include/gui/AboutDialog.h:10: error: expected class-name before ‘{’ token
./include/gui/AboutDialog.h:12: error: ISO C++ forbids declaration of ‘wxStaticBox’ with no type
./include/gui/AboutDialog.h:12: error: expected ‘;’ before ‘*’ token
./include/gui/AboutDialog.h:13: error: ISO C++ forbids declaration of ‘wxStaticText’ with no type
./include/gui/AboutDialog.h:13: error: expected ‘;’ before ‘*’ token
./include/gui/AboutDialog.h:14: error: ISO C++ forbids declaration of ‘wxHyperlinkCtrl’ with no type
./include/gui/AboutDialog.h:14: error: expected ‘;’ before ‘*’ token
......

My compiler options in tab compiler is

Code: Select all

-g;$(shell wx-config --cxxflags --unicode=yes --debug=yes)
and preprocessor:

Code: Select all

__WX__
Linker options:

Code: Select all

-mwindows;$(shell wx-config --debug=yes --libs --unicode=yes)

the default wx-2.8 is install to
/usr/include/wx-2.8 (for headers)
/usr/lib (for libraries)


Any suggestions Eran?

Best Regards
JIA
Welcome to Vision Open
http://www.visionopen.com
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: wx project in CodeLite, Ubuntu 10.04 Lucid...

Post by eranif »

Please post the *build commands* not the errors.
I need to view the commands / switches sent to the compiler. The errors you pasted here are irrelevant

Eran
Make sure you have read the HOW TO POST thread
jiapei100
CodeLite Expert
Posts: 115
Joined: Wed Dec 30, 2009 8:29 am
Genuine User: Yes
IDE Question: C++
Location: Surrey, BC, Canada
Contact:

Re: wx project in CodeLite, Ubuntu 10.04 Lucid...

Post by jiapei100 »

Hi, Eran:

Basically, I just right clicked on the project's name, and select "Build" or "Rebuild".
You may ask for the information below I guess:

Code: Select all

----------Build Started--------
/bin/sh -c '"make"  -j 2 -f "aam_wsp.mk"'
----------Building project:[ WXBuildStatisticalModels - Debug ]----------

  Warning: No config found to match: /usr/bin/wx-config --cxxflags --unicode=yes --debug=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.


  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.

make[1]: Entering directory `/home/jiapei/MyPrograms/C++/CodeLite/aam/WXBuildStatisticalModels'
g++ -c  "/home/jiapei/MyPrograms/C++/CodeLite/aam/WXBuildStatisticalModels/src/gui/buildinggui.cpp" -g  -D__WX__  -o ./Debug/gui_buildinggui.o "-I/usr/local/include/opencv" "-I/usr/local/include/yaml-cpp"  "-I." "-I." "-I./include" "-I../utils/include" "-I../cvcommon/include" "-I../comalgs/include" "-I../VO2DSMBuilding/include" "-I../VO3DSMBuilding/include" "-I../featureextraction/include" 
g++ -c  "/home/jiapei/MyPrograms/C++/CodeLite/aam/WXBuildStatisticalModels/src/gui/AboutDialog.cpp" -g  -D__WX__  -o ./Debug/gui_AboutDialog.o "-I/usr/local/include/opencv" "-I/usr/local/include/yaml-cpp"  "-I." "-I." "-I./include" "-I../utils/include" "-I../cvcommon/include" "-I../comalgs/include" "-I../VO2DSMBuilding/include" "-I../VO3DSMBuilding/include" "-I../featureextraction/include" 
In file included from /home/jiapei/MyPrograms/C++/CodeLite/aam/WXBuildStatisticalModels/src/gui/AboutDialog.cpp:3:
./include/gui/AboutDialog.h:5:19: error: wx/wx.h: No such file or directory
./include/gui/AboutDialog.h:6:26: error: wx/hyperlink.h: No such file or directory
...
Is this the build command??

BTW, I did a "wx-config --list" in bash, and got:

Code: Select all

jiapei@jiapei-laptop:~$ wx-config --list

    Default config is gtk2-unicode-release-2.8

  Default config will be used for output

  Alternate matches:
    base-unicode-release-2.8

jiapei@jiapei-laptop:~$ 


Cheers
JIA
Welcome to Vision Open
http://www.visionopen.com
wgf08062000
CodeLite Enthusiast
Posts: 10
Joined: Mon May 31, 2010 9:46 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: wx project in CodeLite, Ubuntu 10.04 Lucid...

Post by wgf08062000 »

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

Re: wx project in CodeLite, Ubuntu 10.04 Lucid...

Post by eranif »

jiapei100 wrote: Warning: No config found to match: /usr/bin/wx-config --cxxflags --unicode=yes --debug=yes
in /usr/lib/wx/config
This says it all: you dont have wxWidgets UNICODE-DEBUG installed
jiapei100 wrote:Basically, I just right clicked on the project's name, and select "Build" or "Rebuild".
If you want to work with wxWidgets, make sure you have wxWidgets installed on your machine.
If you want to compile wxWidgets in debug mode, you need to have wxWidgets built in debug mode

Eran
Make sure you have read the HOW TO POST thread
jiapei100
CodeLite Expert
Posts: 115
Joined: Wed Dec 30, 2009 8:29 am
Genuine User: Yes
IDE Question: C++
Location: Surrey, BC, Canada
Contact:

Re: wx project in CodeLite, Ubuntu 10.04 Lucid...

Post by jiapei100 »

Terrific !!
Thanks Eran. Now, it's working.

Thank you.

Best Regards
JIA
Welcome to Vision Open
http://www.visionopen.com
Post Reply