Author Topic: Error building SVN Revision 3885  (Read 7165 times)

Harry Hataway

  • Guest
Error building SVN Revision 3885
« on: April 24, 2007, 09:04:05 pm »
Hi guys!

When trying to build Codeblock's SVN rev 3885 , i got the following errors :

When compiling :

g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -DPNG_NO_MMX_CODE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I../../../../src/include -I../../../../src/include/wxscintilla/include -I../../../../src/include/wxFlatNotebook/include -Ulinux -Uunix -O2 -ffast-math -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT codesnippets.lo -MD -MP -MF .deps/codesnippets.Tpo -c codesnippets.cpp  -fPIC -DPIC -o .libs/codesnippets.o

Code
 codesnippets.cpp: In member function 'void CodeSnippets::OnTreeCtrlEvent(wxTreeEvent&)':
codesnippets.cpp:854: error: 'GDK_WINDOW_XDISPLAY' was not declared in this scope
codesnippets.cpp:855: error: 'None' was not declared in this scope
codesnippets.cpp:856: error: 'GDK_WINDOW_XID' was not declared in this scope
codesnippets.cpp:858: error: 'XWarpPointer' was not declared in this scope

Should i disable the contrib build?
Thankx  :D


Offline Xaviou

  • Regular
  • ***
  • Posts: 402
    • X@v's wxStuff
Re: Error building SVN Revision 3885
« Reply #1 on: April 24, 2007, 09:15:20 pm »
Rev 3885 build is ok for me on Ubuntu (6.10 and 7.04)
The french wxWidgets site : http://www.wxdev.fr
My wxWidgets's stuff : https://wxstuff.xaviou.fr/

Harry Hataway

  • Guest
Re: Error building SVN Revision 3885
« Reply #2 on: April 24, 2007, 09:27:20 pm »
hmmm.. I'm Running Debian Etch...  :?

wxLearner

  • Guest
Re: Error building SVN Revision 3885
« Reply #3 on: April 24, 2007, 10:19:28 pm »
I have had the same problem on Ubuntu 7.04 with wxGTK-2.8.3. It can be solved by including <gdk/gdkx.h> into codesnippets.cpp and codesnippetstreectrl.cpp:

Code: codesnippets.cpp, line 41
#if defined(__WXGTK__)

    #include "wx/gtk/win_gtk.h"
    #include <gdk/gdkx.h>

#endif
Code: codesnippetstreectrl.cpp, line 49
#if defined(__WXGTK__)
    #include "wx/gtk/win_gtk.h"
    #include <gdk/gdkx.h>
#endif

It looks like wxWidgets 2.6 includes files, that aren't included by wxWidgets 2.8.


Harry Hataway

  • Guest
Re: Error building SVN Revision 3885
« Reply #4 on: April 24, 2007, 11:25:55 pm »
Thanks! The codesnippet was built successfully! But another problem rised... now on the wxsnotebook.cpp

Code
./wxsnotebook.cpp: In function 'const wxsStyleSet*<unnamed>::GetwxsNotebookStylesStyleSet()':
./wxsnotebook.cpp:166: error: 'wxNB_DEFAULT' was not declared in this scope
./wxsnotebook.cpp:167: error: 'wxNB_LEFT' was not declared in this scope
./wxsnotebook.cpp:168: error: 'wxNB_RIGHT' was not declared in this scope
./wxsnotebook.cpp:169: error: 'wxNB_TOP' was not declared in this scope
./wxsnotebook.cpp:170: error: 'wxNB_BOTTOM' was not declared in this scope
./wxsnotebook.cpp:171: error: 'wxNB_FIXEDWIDTH' was not declared in this scope
./wxsnotebook.cpp:172: error: 'wxNB_MULTILINE' was not declared in this scope
./wxsnotebook.cpp:173: error: 'wxNB_NOPAGETHEME' was not declared in this scope
./wxsnotebook.cpp:175: error: 'wxNB_FLAT' was not declared in this scope

Thanks again for your time!
« Last Edit: April 25, 2007, 12:11:32 am by Harry Hataway »

diilbert

  • Guest
Re: Error building SVN Revision 3885
« Reply #5 on: April 26, 2007, 04:28:36 am »
Ditto on that. 

Any thoughts would be appreciated ;)

diilbert

  • Guest
Re: Error building SVN Revision 3885
« Reply #6 on: April 27, 2007, 04:57:14 am »
Are there any suggestions for a solution to this issue?  I have tried building wxGTK 2.8.0 w/ --enable-compat26 w/o success.


wxLearner

  • Guest
Re: Error building SVN Revision 3885
« Reply #7 on: April 27, 2007, 09:44:22 am »
Including <wx/notebook.h> in wxsnotebook.cpp should be a solution.

diilbert

  • Guest
Re: Error building SVN Revision 3885
« Reply #8 on: April 27, 2007, 11:55:15 am »
Another error from wxSmith ... this time with wxslistbook.cpp:

Code
g++ -DHAVE_CONFIG_H -I. -I. -I../../../../../../src/include -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread -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 -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT wxslistbook.lo -MD -MP -MF .deps/wxslistbook.Tpo -c ./wxslistbook.cpp  -fPIC -DPIC -o .libs/wxslistbook.o
/usr/include/wx-2.8/wx/listbook.h: In member function 'virtual bool wxsListbook::OnMouseClick(wxWindow*, int, int)':
/usr/include/wx-2.8/wx/listbook.h:94: error: 'virtual int wxListbook::HitTest(const wxPoint&, long int*) const' is protected
./wxslistbook.cpp:301: error: within this context
make[6]: *** [wxslistbook.lo] Error 1
make[6]: Leaving directory `/home/hillsro/svn/codeblocks/src/plugins/contrib/wxS                                                                                                                        mith/wxwidgets/defitems'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/hillsro/svn/codeblocks/src/plugins/contrib/wxS                                                                                                                        mith/wxwidgets'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/hillsro/svn/codeblocks/src/plugins/contrib/wxS                                                                                                                        mith'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/hillsro/svn/codeblocks/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hillsro/svn/codeblocks/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hillsro/svn/codeblocks/src'
make: *** [all-recursive] Error 1

And this is the line in wxslistbook.cpp that is causing the issue

Code
From function:  bool wxsListbook::OnMouseClick(wxWindow* Preview,int PosX,int PosY)

int Hit = Listbook->HitTest(wxPoint(PosX,PosY));


Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: Error building SVN Revision 3885
« Reply #9 on: April 27, 2007, 09:09:03 pm »
Can't be, I've checked wx headers (wx2.8.3) and it's public function. Please check if you have the latest wx headers

BYO