rev 4658 compile error on MAC

Discussion about CodeLite development process and patches
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

rev 4658 compile error on MAC

Post by frank_frl »

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
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: rev 4658 compile error on MAC

Post by eranif »

Its probably include order error.
Try to move the "#include <wx/imaglist.h>" to be last one on the include list

Eran
Make sure you have read the HOW TO POST thread
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: rev 4658 compile error on MAC

Post by frank_frl »

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
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: rev 4658 compile error on MAC

Post by eranif »

Committed a fix

Eran
Make sure you have read the HOW TO POST thread
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: rev 4658 compile error on MAC

Post by frank_frl »

Works now :D

Thanks,

Frank
Post Reply