compiling codelite, symbol lookup error, undefined symbol.

CodeLite installation/troubleshooting forum
User avatar
caibbor
CodeLite Veteran
Posts: 78
Joined: Thu Jan 10, 2013 10:37 pm
Genuine User: Yes
IDE Question: c++
Contact:

compiling codelite, symbol lookup error, undefined symbol.

Post by caibbor »

Code: Select all

[ 99%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/lib/checkinternal.cpp.o
[ 99%] Building CXX object sdk/codelite_cppcheck/CMakeFiles/codelite_cppcheck.dir/externals/tinyxml/tinyxml2.cpp.o
Linking CXX executable ../../bin/codelite_cppcheck
[ 99%] Built target codelite_cppcheck
Scanning dependencies of target codelite-echo
[100%] Building C object codelite_echo/CMakeFiles/codelite-echo.dir/main.c.o
Linking C executable ../bin/codelite-echo
[100%] Built target codelite-echo
Scanning dependencies of target codelite-clang
[100%] Building CXX object codelite_clang/CMakeFiles/codelite-clang.dir/clang_utils.cpp.o
[100%] Building CXX object codelite_clang/CMakeFiles/codelite-clang.dir/cpp_scanner.cpp.o
[100%] Building CXX object codelite_clang/CMakeFiles/codelite-clang.dir/clang.cpp.o
[100%] Building CXX object codelite_clang/CMakeFiles/codelite-clang.dir/main.cpp.o
[100%] Building CXX object codelite_clang/CMakeFiles/codelite-clang.dir/lex.yy.cpp.o
Linking CXX executable ../bin/codelite-clang
[100%] Built target codelite-clang


./codelite: symbol lookup error: ./codelite: undefined symbol: wxEVT_PARSE_THREAD_SUGGEST_COLOUR_TOKENS
Google returns no results when searching for wxEVT_PARSE_THREAD_SUGGEST_COLOUR_TOKENS

ideas?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: compiling codelite, symbol lookup error, undefined symbo

Post by eranif »

You need run

Code: Select all

make install
after the build is done.
Otherwise, the shared objects loaded are still the old one, but the executable is the new one

Eran
Make sure you have read the HOW TO POST thread
User avatar
caibbor
CodeLite Veteran
Posts: 78
Joined: Thu Jan 10, 2013 10:37 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: compiling codelite, symbol lookup error, undefined symbo

Post by caibbor »

ah, okay. I just need to figure out how to configure cmake with the gool 'ol "--prefix=/opt" thing now...

found it ( http://stackoverflow.com/questions/6003 ... ll-install )

Thanks (:
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: compiling codelite, symbol lookup error, undefined symbo

Post by eranif »

Assuming you are following the build orders from here:
http://codelite.org/Developers/Linux#toc3

Create an installation root folder:

Code: Select all

mkdir -p /home/you/codelite-install
And then run cmake like this:

Code: Select all

cmake .. -DPREFIX=/home/you/codelite-install -DCMAKE_BUILD_TYPE=Release
And at the end:

Code: Select all

make install
And you can run codelite like this:

Code: Select all

/home/you/codelite-install/bin/codelite
Eran
Make sure you have read the HOW TO POST thread
Post Reply