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
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
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:
#if defined(__WXGTK__)
#include "wx/gtk/win_gtk.h"
#include <gdk/gdkx.h>
#endif
#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.
Thanks! The codesnippet was built successfully! But another problem rised... now on the wxsnotebook.cpp
./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!
Another error from wxSmith ... this time with wxslistbook.cpp:
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
From function: bool wxsListbook::OnMouseClick(wxWindow* Preview,int PosX,int PosY)
int Hit = Listbook->HitTest(wxPoint(PosX,PosY));