Rev. 5449 fails to build

Discussion about CodeLite development process and patches
tankist02
CodeLite Veteran
Posts: 56
Joined: Thu Sep 22, 2011 11:29 pm
Genuine User: Yes
IDE Question: c++
Contact:

Rev. 5449 fails to build

Post by tankist02 »

Red Hat 6.2 x86_64

svn update
At revision 5449.

./configure
Generating svninfo file...
Generating Makefile...
Generating sdk/codelite_indexer/Makefile...
Generating sdk/codelite_cppcheck/Makefile...
Generating Debugger/Makefile...
Generating Gizmos/Makefile...
Generating cscope/Makefile...
Generating Subversion2/Makefile...
Generating CodeFormatter/Makefile...
Generating Copyright/Makefile...
Generating UnitTestCPP/Makefile...
Generating ExternalTools/Makefile...
Generating SnipWiz/Makefile...
Generating wxformbuilder/Makefile...
Generating abbreviation/Makefile...
Generating SymbolView/Makefile...
Generating ContinuousBuild/Makefile...
Generating QmakePlugin/Makefile...
Generating git/Makefile...
Generating cppchecker/Makefile...
Generating DatabaseExplorer/Makefile...


make
...
g++ -DON_64_BIT -O3 -DREGEXP_UNICODE -c Plugin/event_notifier.cpp -fPIC -DHAS_LIBCLANG -I./sdk/clang/Linux/x86_64/include -Wall -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -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\"" -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -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./sdk/wxshapeframework/include -I./sdk/databaselayer/include/wx/dblayer/include -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite -I./PCH -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -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./sdk/wxshapeframework/include -I./sdk/databaselayer/include/wx/dblayer/include -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite -I./PCH -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -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./sdk/wxshapeframework/include -I./sdk/databaselayer/include/wx/dblayer/include -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite -I./PCH -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -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./sdk/wxshapeframework/include -I./sdk/databaselayer/include/wx/dblayer/include -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite -I./PCH -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -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./sdk/wxshapeframework/include -I./sdk/databaselayer/include/wx/dblayer/include -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite -I./PCH -I./sdk/wxshapeframework/src -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -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./sdk/wxshapeframework/include -I./sdk/databaselayer/include/wx/dblayer/include -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite -I./PCH -I./sdk/databaselayer/src/sqlite3 -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -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./sdk/wxshapeframework/include -I./sdk/databaselayer/include/wx/dblayer/include -I./Interfaces -I./Debugger -I./Plugin -I./CodeLite -I./PCH -o Release_gcc_unicode/SDKObjects_event_notifier.o
Plugin/event_notifier.cpp: In member function \u2018wxFrame* EventNotifier::TopFrame()\u2019:
Plugin/event_notifier.cpp:61: error: \u2018wxTheApp\u2019 was not declared in this scope
make: *** [Release_gcc_unicode/SDKObjects_event_notifier.o] Error 1
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Rev. 5449 fails to build

Post by eranif »

Fixed in trunk. This happens since you don't use the pre-compiled switch.

You can use:

Code: Select all

./configure --enable-pch
to speed build up (and avoid such problems in the future)

Andways, this is now fixed in trunk

Eran
Make sure you have read the HOW TO POST thread
tankist02
CodeLite Veteran
Posts: 56
Joined: Thu Sep 22, 2011 11:29 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Rev. 5449 fails to build

Post by tankist02 »

Hi Eran,

Thanks for the quick fix - now it builds with or without pch.

BTW I compared build time with and without pch (did a few iterations of below):

./configure --without-clang
make clean
time (make -j4)
...
real 1m6s



./configure --enable-pch --without-clang
make clean
time (make -j4)
...
real 1m20s
Post Reply