Specifically I run cmake as:
Code: Select all
PATH=/usr/local/lib:$PATH cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_LLDB=0 .. -DCOPY_WX_LIBS=1
When it reaches ~56% I get this:
Code: Select all
X static library ../lib/libPHPParser.a
[ 56%] Built target PHPParser
Scanning dependencies of target PHPUnitTests
[ 56%] Building CXX object codelitephp/CMakeFiles/PHPUnitTests.dir/PHPParserUnitTests/main.cpp.o
[ 56%] Building CXX object codelitephp/CMakeFiles/PHPUnitTests.dir/PHPParserUnitTests/tester.cpp.o
Linking CXX executable ../bin/PHPUnitTests
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libstdc++.a when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: skipping incompatible /usr/local/lib/libgcc_s.so when searching for -lgcc_s
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::IsModified() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::HitTest(wxPoint const&, long*) const'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::push_back(wchar_t)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetLastPosition() const'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetLineLength(long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetEditable() const'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_mutate(unsigned long, unsigned long, wchar_t const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::EnableTextChangedEvents(bool)'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_assign(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetStyle(long, wxTextAttr&)'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::MarkDirty()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::DoSetValue(wxString const&, int)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::ShowPosition(long)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::PositionToXY(long, long*, long*) const'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Remove(long, long)'
/usr/local/lib/libwx_gtk2u_propgrid-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::resize(unsigned long, wchar_t)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetValue() const'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, wchar_t)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::DiscardEdits()'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace(unsigned long, unsigned long, wchar_t const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::reserve(unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetEntry() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetSelection(long, long)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::WriteText(wxString const&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetStyle(long, long, wxTextAttr const&)'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetNumberOfLines() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::XYToPosition(long, long) const'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(wchar_t const*)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find_last_not_of(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetValue() const'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::rfind(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::DoPositionToCoords(long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Cut()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetInsertionPoint() const'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::swap(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrlBase::SetHint(wxString const&)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetLineText(long) const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrlBase::SetDefaultStyle(wxTextAttr const&)'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find_first_of(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::IsEditable() const'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxGenericListCtrl::GetSizeAvailableForScrollTarget(wxSize const&)'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::push_back(char)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GTKIMFilterKeypress(_GdkEventKey*) const'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find_last_of(wchar_t const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetEditable(bool)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Copy()'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrlBase::overflow(int)'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::SetInsertionPoint(long)'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::GetSelection(long*, long*) const'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const@GLIBCXX_3.4.21'
/usr/local/lib/libwx_gtk2u_stc-3.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libwx_baseu-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::rfind(wchar_t, unsigned long) const@GLIBCXX_3.4.21'
../lib/libplugin.so: undefined reference to `non-virtual thunk to wxTextCtrl::Paste()'
/usr/local/lib/libwx_gtk2u_adv-3.0.so: undefined reference to `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_append(wchar_t const*, unsigned long)@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/PHPUnitTests] Error 1
make[1]: *** [codelitephp/CMakeFiles/PHPUnitTests.dir/all] Error 2
make: *** [all] Error 2
I am using gcc 5.1 to compile and I attach the output from the cmake, if it is helpful
Code: Select all
PATH=/usr/local/lib:$PATH cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DENABLE_LLDB=0 .. -DCOPY_WX_LIBS=1
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- SQLITE3_INCLUDE_DIR: /usr/include
-- SQLITE3_LIBRARY: /usr/lib64/libsqlite3.so
-- BUILD_DIRECTORY is set to /home/nlappas/Documents/codeliteSrc/codelite/build-release
-- OS name Linux
-- wx-config used is: /usr/local/bin/wx-config
-- wxWidgets version is: 3.0.2
-- gtk version is: 2
-- Disabling lldb support
-- LIBSSH_LIB is set to /usr/lib64/libssh.so
-- PLUGINS_DIR is set to /usr/lib64/codelite
-- Using wxAuiNotebook
-- Building in Release mode
-- CMAKE_INSTALL_DO_STRIP is TRUE
-- Executables will be written into /home/nlappas/Documents/codeliteSrc/codelite/build-release/bin
-- Shared Objects will be written into /home/nlappas/Documents/codeliteSrc/codelite/build-release/lib
-- Adding -DNDEBUG to definitions
-- CPACK_SYSTEM_NAME centos-core-x86_64
-- ARCH 64
-- ARCH_NAME x86_64
-- Find libClang result: clang_getCompletionBriefComment(CXCompletionString completion_string);
-- Found method clang_getCompletionBriefComment, enabling brief comments support
-- clang link line /usr/lib64/llvm/libclang.so
-- clang include path /usr/include
-- clang binary /usr/lib64/llvm/libclang.so
-- CL_SRC_ROOT is set to => /home/nlappas/Documents/codeliteSrc/codelite
-- PREFIX is set to => /usr
-- PREFIX/LIB_DIR is set to => /usr/lib64
-- PLUGINS_DIR is set to => /usr/lib64/codelite
-- wx-config is set to => /usr/local/bin/wx-config
-- USE_SFTP is set to 1
-- Found wxWidgets: TRUE
-- Flex support is disabled
-- Found Freetype: /usr/lib64/libfreetype.so (found version "2.4.11")
-- Found GTK2_GTK: /usr/lib64/libgtk-x11-2.0.so
-- Adding Valgrind Plugin
-- Found libhunspell: /usr/lib64/libhunspell-1.3.so, /usr/include/hunspell
-- Internal Web Browser is disabled
-- CL_SRC_ROOT is set to /home/nlappas/Documents/codeliteSrc/codelite
-- wxlibsdir is: /usr/local/lib
-- Including plugin.cmake module
-- CMAKE_SOURCE_DIR is set to /home/nlappas/Documents/codeliteSrc/codelite
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nlappas/Documents/codeliteSrc/codelite/build-release
g++ --version
g++ (GCC) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Any ideas?