User forums > Help
Building Code::Blocks Error
sarun:
I've just install Ubuntu 12.04 LTS and checkout the Code::Blocks SVN 8034. Run ./bootstrap and ./configure --with-contrib-plugins=all. It's OK. But when I run make, I got an error:
--- Quote ---./gizmosled/src/ledctrl.cpp:17:31: fatal error: wx/gizmos/ledctrl.h: No such file or directory
compilation terminated.
make[6]: *** [ledctrl.lo] Error 1
make[5]: *** [all-recursive] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
--- End quote ---
After looking through the source tree and wxWidgets include files, I think that it's selected the wrong "include" directory for building. It should use wx in source tree (trunk/src/plugins/contrib/wxContribItems/wxled/gizmosled/include/wx/gizmos) but it's looking for include files in wxWidget installation directory, so the "gizmos" directory not found and cause the error. How could I fix this problem?
[attachment deleted by admin]
xunxun:
Did /usr/local/include/wx-2.8/wx/gizmos/ledctrl.h exist?
Because you set the wx include path : /usr/local/include/wx-2.8
sarun:
--- Quote from: xunxun on June 09, 2012, 03:11:50 pm ---Did /usr/local/include/wx-2.8/wx/gizmos/ledctrl.h exist?
Because you set the wx include path : /usr/local/include/wx-2.8
--- End quote ---
No, it's in source tree trunk/src/plugins/contrib/wxContribItems/wxled/gizmosled/include/wx/gizmos/ledctrl.h.
Do you mean I need to move that include folder to /usr/local/include?
xunxun:
Well, sorry, I thought it was wx's include file.
You can add trunk/src/plugins/contrib/wxContribItems/wxled/gizmosled/include/ to include path.
I think build system lack it with some reasons.
Jenna:
I will commit a fix soon (currently testing it).
Sorry for the inconvenience.
Navigation
[0] Message Index
[#] Next page
Go to full version