User forums > Help

Error building SVN Revision 3885

(1/2) > >>

Harry Hataway:
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
--- End code ---

Should i disable the contrib build?
Thankx  :D

Xaviou:
Rev 3885 build is ok for me on Ubuntu (6.10 and 7.04)

Harry Hataway:
hmmm.. I'm Running Debian Etch...  :?

wxLearner:
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
--- End code ---

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

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

Harry Hataway:
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

--- End code ---

Thanks again for your time!

Navigation

[0] Message Index

[#] Next page

Go to full version