Page 1 of 1

compiling codelite, symbol lookup error, undefined symbol.

Posted: Sun Jun 08, 2014 1:11 am
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?

Re: compiling codelite, symbol lookup error, undefined symbo

Posted: Sun Jun 08, 2014 8:07 am
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

Re: compiling codelite, symbol lookup error, undefined symbo

Posted: Sun Jun 08, 2014 9:55 am
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 (:

Re: compiling codelite, symbol lookup error, undefined symbo

Posted: Sun Jun 08, 2014 10:04 am
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