Author Topic: [SOLVED] Codeblocks SVN latest - fails compile  (Read 2642 times)

Offline Linux_dWiebe

  • Multiple posting newcomer
  • *
  • Posts: 17
[SOLVED] Codeblocks SVN latest - fails compile
« on: October 30, 2012, 02:04:53 am »
I'm not sure here if wxWidgets is the problem, or if it is CodeBlocks.
This is with the latest svn of both, on a GNU/Linux machine.
Code
...
make[6]: Entering directory `/usr/src/build/cb/src/plugins/contrib/wxContribItems/KWIC'
/bin/sh ../../../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC -I../../../../../src/include -I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/include  -Ulinux -Uunix  -O2 -ffast-math -DCB_AUTOCONF  -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT xh_kwxangularregulatorhandler.lo -MD -MP -MF .deps/xh_kwxangularregulatorhandler.Tpo -c -o xh_kwxangularregulatorhandler.lo `test -f './src/wx/xrc/xh_kwxangularregulatorhandler.cpp' || echo '../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/'`./src/wx/xrc/xh_kwxangularregulatorhandler.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC -I../../../../../src/include -I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/include -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT xh_kwxangularregulatorhandler.lo -MD -MP -MF .deps/xh_kwxangularregulatorhandler.Tpo -c ../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp  -fPIC -DPIC -o .libs/xh_kwxangularregulatorhandler.o
In file included from ../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp:26:0:
../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/include/wx/KWIC/AngularRegulator.h:27:36: error: invalid use of incomplete type 'class wxControl'
In file included from /usr/local/include/wx-2.9/wx/xrc/xmlreshandler.h:23:0,
                 from /usr/local/include/wx-2.9/wx/xrc/xmlres.h:31,
                 from ../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/include/wx/xrc/xh_kwxangularregulatorhandler.h:28,
                 from ../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp:25:
/usr/local/include/wx-2.9/wx/window.h:70:28: error: forward declaration of 'class wxControl'
../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp: In member function 'virtual wxObject* kwxAngularRegulatorHandler::DoCreateResource()':
../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp:69:24: error: no matching function for call to 'kwxAngularRegulatorHandler::SetupWindow(kwxAngularRegulator*&)'
../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp:69:24: note: candidate is:
In file included from /usr/local/include/wx-2.9/wx/xrc/xmlres.h:31:0,
                 from ../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/include/wx/xrc/xh_kwxangularregulatorhandler.h:28,
                 from ../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp:25:
/usr/local/include/wx-2.9/wx/xrc/xmlreshandler.h:325:10: note: void wxXmlResourceHandler::SetupWindow(wxWindow*)
/usr/local/include/wx-2.9/wx/xrc/xmlreshandler.h:325:10: note:   no known conversion for argument 1 from 'kwxAngularRegulator*' to 'wxWindow*'
../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp:71:12: error: cannot convert 'kwxAngularRegulator*' to 'wxObject*' in return
In file included from /usr/local/include/wx-2.9/wx/list.h:33:0,
                 from /usr/local/include/wx-2.9/wx/xrc/xmlres.h:22,
                 from ../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/include/wx/xrc/xh_kwxangularregulatorhandler.h:28,
                 from ../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp:25:
/usr/local/include/wx-2.9/wx/object.h: In instantiation of 'T* wxCheckCast(const void*, T*) [with T = kwxAngularRegulator]':
../../../../../../../codeblocks/src/plugins/contrib/wxContribItems/KWIC/./src/wx/xrc/xh_kwxangularregulatorhandler.cpp:47:5:   required from here
/usr/local/include/wx-2.9/wx/object.h:161:5: error: invalid static_cast from type 'kwxAngularRegulator*' to type 'const wxObject*'
make[6]: *** [xh_kwxangularregulatorhandler.lo] Error 1
make[6]: Leaving directory `/usr/src/build/cb/src/plugins/contrib/wxContribItems/KWIC'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/usr/src/build/cb/src/plugins/contrib/wxContribItems/KWIC'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/build/cb/src/plugins/contrib/wxContribItems'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/build/cb/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/build/cb/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/build/cb/src'
make: *** [all-recursive] Error 1
[webmaster@jwd cb]$
« Last Edit: October 30, 2012, 02:58:45 am by Linux_dWiebe »

Offline Linux_dWiebe

  • Multiple posting newcomer
  • *
  • Posts: 17
Re: Codeblocks SVN latest - fails compile
« Reply #1 on: October 30, 2012, 02:58:17 am »
I just now did rm -rf /usr/local and then reinstalled wxWidgets and now C::B is building fine...