Code::Blocks Forums

User forums => Help => Topic started by: oBFusCATed on July 04, 2007, 12:31:44 am

Title: Can't build wxSmith
Post by: oBFusCATed on July 04, 2007, 12:31:44 am
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'

I'm building a svn head version...

Thanks in advance,
Teodor


Title: Re: Can't build wxSmith
Post by: Auria on July 04, 2007, 12:53:36 am
Look at this thread i think it must be related
http://forums.codeblocks.org/index.php/topic,6339.0.html
Title: Re: Can't build wxSmith
Post by: Ceniza on July 04, 2007, 01:06:07 am
oBFusCATed: why don't you install wx 2.8.4? There's an ebuild right here (http://bugs.gentoo.org/show_bug.cgi?id=145884) 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.
Title: Re: Can't build wxSmith
Post by: MortenMacFly on July 04, 2007, 07:58:24 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'
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.
Title: Re: Can't build wxSmith
Post by: killerbot on July 04, 2007, 09:24:51 am
as questioned in the other thread. I think we should ditch wx26x.
It is becoming the limiting factor, too limiting.
Title: Re: Can't build wxSmith
Post by: mandrav on July 04, 2007, 11:18:20 am
Quote
'm on Gentoo ~amd64 with wx2.6, and for some time I can't build codeblocks with contribute plugins enabled.

wxSmith currently requires wx2.8. I 'd suggest you install it anyway because we 're planning on moving C::B completely to wx2.8.4.
Title: Re: Can't build wxSmith
Post by: MortenMacFly on July 04, 2007, 12:17:45 pm
wxSmith currently requires wx2.8.
Just for curiosity/interest: What makes you say so? I'm still running wxSmith fine with wx26.
Title: Re: Can't build wxSmith
Post by: mandrav on July 04, 2007, 12:39:41 pm
wxSmith currently requires wx2.8.
Just for curiosity/interest: What makes you say so? I'm still running wxSmith fine with wx26.

Hehe, I bet it runs fine for you:

Just comment these 4 lines in question and you're done.

That's what makes me say so :).
Title: Re: Can't build wxSmith
Post by: oBFusCATed on July 21, 2007, 08:25:25 pm
Okay,
today I found some time to upgrade my box and fix the problem with codeblocks.
I've emerged the wx2.8 (using the ebuild from bugs.gentoo.org) and now it compiles fine. :D :D :D :lol: :P

Thank to all of you for the great job :)