Author Topic: Can't build wxSmith  (Read 7198 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Can't build wxSmith
« 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


(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Auria

  • Almost regular
  • **
  • Posts: 152
Re: Can't build wxSmith
« Reply #1 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

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: Can't build wxSmith
« Reply #2 on: July 04, 2007, 01:06:07 am »
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Can't build wxSmith
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Can't build wxSmith
« Reply #4 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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Can't build wxSmith
« Reply #5 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.
Be patient!
This bug will be fixed soon...

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Can't build wxSmith
« Reply #6 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Can't build wxSmith
« Reply #7 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 :).
Be patient!
This bug will be fixed soon...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Can't build wxSmith
« Reply #8 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 :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]