Discussion about CodeLite development process and patches
frank_frl
CodeLite Expert
Posts: 176 Joined: Sun Aug 17, 2008 2:45 pm
Contact:
Post
by frank_frl » Fri Dec 17, 2010 1:04 pm
Hi Eran,
can not build rev 4658 on my MAC:
Code: Select all
In file included from LiteEditor/acceltabledlg.cpp:25:
/usr/local/include/wx-2.8/wx/imaglist.h:48:37: error: wx/generic/imaglist.h: No such file or directory
make: *** [Release_gcc_unicode/acceltabledlg.o.d] Error 1
From 'imaglist.h'
Code: Select all
#if defined(__WXMSW__) || defined(__WXMAC_CARBON__)
#define wxHAS_NATIVE_IMAGELIST
#endif
#if !defined(wxHAS_NATIVE_IMAGELIST)
#include "wx/generic/imaglist.h"
#elif defined(__WXMSW__)
#include "wx/msw/imaglist.h"
#elif defined(__WXMAC_CARBON__)
#include "wx/mac/imaglist.h"
#endif
The SymbolView plugin, which did build before and is also inluding 'wx/imaglist.h' did not tried to load "wx/generic/imaglist.h"
Frank
eranif
CodeLite Plugin
Posts: 6375 Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:
Post
by eranif » Fri Dec 17, 2010 1:36 pm
Its probably include order error.
Try to move the "#include <wx/imaglist.h>" to be last one on the include list
Eran
frank_frl
CodeLite Expert
Posts: 176 Joined: Sun Aug 17, 2008 2:45 pm
Contact:
Post
by frank_frl » Fri Dec 17, 2010 7:19 pm
Hi Eran,
if I put the include at the end or just as second after '#include <wx/debug.h>' I get following errors:
Code: Select all
g++ -m32 -O3 -DREGEXP_UNICODE -c LiteEditor/acceltabledlg.cpp -Wall -I/usr/local/lib/wx/include/mac-unicode-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ -fno-strict-aliasing -DASTYLE_LIB -DYY_NEVER_INTERACTIVE=1 -DGTK -DSCI_LEXER -DLINK_LEXERS -D__WX__ -DINSTALL_DIR=\"/usr/share/codelite\" -DPLUGINS_DIR=\"/usr/lib/codelite\" -D__APPLE__ -DMACOSX -I. -I./sdk/codelite_indexer/network -I./sdk/wxsqlite3/include -I./sdk/wxsqlite3/sqlite3/include -I./sdk/wxscintilla/include -I./sdk/wxscintilla/src/scintilla/include -I./sdk/wxscintilla/src/scintilla/src -I./sdk/wxscintilla/src/scintilla/lexlib -I./sdk/wxscintilla/src/scintilla/lexers -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite -o Release_gcc_unicode/acceltabledlg.o
/usr/local/include/wx-2.8/wx/wxchar.h:1012: error: expected initializer before ‘ATTRIBUTE_PRINTF_3’
/usr/local/include/wx-2.8/wx/wxchar.h:1052: error: expected initializer before ‘ATTRIBUTE_PRINTF_1’
/usr/local/include/wx-2.8/wx/wxchar.h:1053: error: expected initializer before ‘ATTRIBUTE_PRINTF_2’
/usr/local/include/wx-2.8/wx/wxchar.h:1054: error: expected initializer before ‘ATTRIBUTE_PRINTF_2’
/usr/local/include/wx-2.8/wx/wxchar.h:1056: error: expected initializer before ‘ATTRIBUTE_PRINTF_1’
/usr/local/include/wx-2.8/wx/wxchar.h:1057: error: expected initializer before ‘ATTRIBUTE_PRINTF_2’
/usr/local/include/wx-2.8/wx/wxchar.h:1058: error: expected initializer before ‘ATTRIBUTE_PRINTF_2’
/usr/local/include/wx-2.8/wx/wxchar.h:1071: error: expected initializer before ‘ATTRIBUTE_PRINTF_3’
make: *** [Release_gcc_unicode/acceltabledlg.o] Error 1
So it seems indeed to be an include order problem
Frank
eranif
CodeLite Plugin
Posts: 6375 Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:
Post
by eranif » Fri Dec 17, 2010 8:16 pm
Committed a fix
Eran
frank_frl
CodeLite Expert
Posts: 176 Joined: Sun Aug 17, 2008 2:45 pm
Contact:
Post
by frank_frl » Fri Dec 17, 2010 9:21 pm
Works now
Thanks,
Frank