User forums > Help
Can't build wxSmith
oBFusCATed:
Hi,
I'm on Gentoo ~amd64 with wx2.6, and for some time I can't build codeblocks with contribute plugins enabled.
The error message is:
--- Code: ---make[6]: Entering directory `/var/tmp/portage/dev-util/codeblocks-9999-r19/work/codeblocks-9999/src/plugins/contrib/wxSmith/wxwidgets/defitems'
if /bin/sh ../../../../../../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../../../../src/include -I../../../../../../src/include/wxFlatNotebook/include -I../../../../../../src/include/wxscintilla/include -I../../../../../../src/include/wxFlatNotebook -I../../../../../../src/include/propgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_COMPATIBILITY_1_0_0 -Ulinux -Uunix -O2 -ffast-math -march=opteron -fweb -frename-registers -O2 -pipe -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxstoolbar.lo -MD -MP -MF ".deps/wxstoolbar.Tpo" -c -o wxstoolbar.lo `test -f './wxstoolbar.cpp' || echo './'`./wxstoolbar.cpp; \
then mv -f ".deps/wxstoolbar.Tpo" ".deps/wxstoolbar.Plo"; else rm -f ".deps/wxstoolbar.Tpo"; exit 1; fi
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../../../../src/include -I../../../../../../src/include/wxFlatNotebook/include -I../../../../../../src/include/wxscintilla/include -I../../../../../../src/include/wxFlatNotebook -I../../../../../../src/include/propgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_COMPATIBILITY_1_0_0 -Ulinux -Uunix -O2 -ffast-math -march=opteron -fweb -frename-registers -O2 -pipe -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxstoolbar.lo -MD -MP -MF .deps/wxstoolbar.Tpo -c ./wxstoolbar.cpp -fPIC -DPIC -o .libs/wxstoolbar.o
./wxstoolbar.cpp: In function 'const wxsStyleSet*<unnamed>::GetwxsToolBarStylesStyleSet()':
./wxstoolbar.cpp:77: error: 'wxTB_TOP' was not declared in this scope
./wxstoolbar.cpp:78: error: 'wxTB_LEFT' was not declared in this scope
./wxstoolbar.cpp:79: error: 'wxTB_RIGHT' was not declared in this scope
./wxstoolbar.cpp:80: error: 'wxTB_BOTTOM' was not declared in this scope
make[6]: *** [wxstoolbar.lo] Error 1
make[6]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r19/work/codeblocks-9999/src/plugins/contrib/wxSmith/wxwidgets/defitems'
--- End code ---
I'm building a svn head version...
Thanks in advance,
Teodor
Auria:
Look at this thread i think it must be related
http://forums.codeblocks.org/index.php/topic,6339.0.html
Ceniza:
oBFusCATed: why don't you install wx 2.8.4? There's an ebuild right here which installs in another slot.
That's what I'm using right now in my Gentoo amd64 (with many packages ~amd64) and it's working lovely, even better than with 2.6.3.
MortenMacFly:
--- Quote from: oBFusCATed on July 04, 2007, 12:31:44 am ---
--- Code: ---make[6]: Entering directory `/var/tmp/portage/dev-util/codeblocks-9999-r19/work/codeblocks-9999/src/plugins/contrib/wxSmith/wxwidgets/defitems'
if /bin/sh ../../../../../../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../../../../src/include -I../../../../../../src/include/wxFlatNotebook/include -I../../../../../../src/include/wxscintilla/include -I../../../../../../src/include/wxFlatNotebook -I../../../../../../src/include/propgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_COMPATIBILITY_1_0_0 -Ulinux -Uunix -O2 -ffast-math -march=opteron -fweb -frename-registers -O2 -pipe -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxstoolbar.lo -MD -MP -MF ".deps/wxstoolbar.Tpo" -c -o wxstoolbar.lo `test -f './wxstoolbar.cpp' || echo './'`./wxstoolbar.cpp; \
then mv -f ".deps/wxstoolbar.Tpo" ".deps/wxstoolbar.Plo"; else rm -f ".deps/wxstoolbar.Tpo"; exit 1; fi
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../../../../src/include -I/usr/lib64/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -I../../../../../../src/include -I../../../../../../src/include/wxFlatNotebook/include -I../../../../../../src/include/wxscintilla/include -I../../../../../../src/include/wxFlatNotebook -I../../../../../../src/include/propgrid/include -DWXMAKINGLIB_PROPGRID -DwxPG_COMPATIBILITY_1_0_0 -Ulinux -Uunix -O2 -ffast-math -march=opteron -fweb -frename-registers -O2 -pipe -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxstoolbar.lo -MD -MP -MF .deps/wxstoolbar.Tpo -c ./wxstoolbar.cpp -fPIC -DPIC -o .libs/wxstoolbar.o
./wxstoolbar.cpp: In function 'const wxsStyleSet*<unnamed>::GetwxsToolBarStylesStyleSet()':
./wxstoolbar.cpp:77: error: 'wxTB_TOP' was not declared in this scope
./wxstoolbar.cpp:78: error: 'wxTB_LEFT' was not declared in this scope
./wxstoolbar.cpp:79: error: 'wxTB_RIGHT' was not declared in this scope
./wxstoolbar.cpp:80: error: 'wxTB_BOTTOM' was not declared in this scope
make[6]: *** [wxstoolbar.lo] Error 1
make[6]: Leaving directory `/var/tmp/portage/dev-util/codeblocks-9999-r19/work/codeblocks-9999/src/plugins/contrib/wxSmith/wxwidgets/defitems'
--- End code ---
--- End quote ---
I had the same issue on Windows with wx26. Just comment these 4 lines in question and you're done. Byo will (hopefully) take care of it and create a wx28 guard around these things.
With regards, Morten.
killerbot:
as questioned in the other thread. I think we should ditch wx26x.
It is becoming the limiting factor, too limiting.
Navigation
[0] Message Index
[#] Next page
Go to full version