Kornel Benko wrote:

> Monolithic build on Cmake has still errors.  Don't know if it is worth the
> effort.

I fixed the one from your log. However, I do now get others for each unit 
test:


Linking CXX executable ../../../bin/check_convert
cd lyx-2-2-build/src/support/tests && /usr/bin/cmake -E cmake_link_script 
CMakeFiles/check_convert.dir/link.txt --verbose=1
c++   -Wall -Wunused-parameter --std=c++11 -fno-strict-aliasing  -Wall -
Wunused-parameter --std=c++11 -fno-strict-aliasing -O0 -g3 -D_DEBUG    
CMakeFiles/check_convert.dir/check_convert.cpp.o 
CMakeFiles/check_convert.dir/dummy_functions.cpp.o 
CMakeFiles/check_convert.dir/boost.cpp.o  -o ../../../bin/check_convert -
rdynamic ../../../lib/libsupport.a ../../../lib/libboost_signals.a 
../../../lib/libboost_regex.a -lz -lmagic /usr/lib/x86_64-linux-
gnu/libQt5Core.so.5.3.2 /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5.3.2 
/usr/lib/x86_64-linux-gnu/libQt5Core.so.5.3.2 
../../../lib/libsupport.a(_allinone_const.C.o): In function 
`applescript_execute_command':
lyx-2-2/src/support/AppleScriptProxy.cpp:30: undefined reference to 
`lyx::lyxaction'
lyx-2-2/src/support/AppleScriptProxy.cpp:30: undefined reference to 
`lyx::LyXAction::lookupFunc(std::string const&) const'
lyx-2-2/src/support/AppleScriptProxy.cpp:30: undefined reference to 
`lyx::FuncRequest::FuncRequest(lyx::FuncRequest const&, std::string const&, 
lyx::FuncRequest::Origin)' 
lyx-2-2/src/support/AppleScriptProxy.cpp:33: undefined reference to 
`lyx::theApp()'
collect2: error: ld returned 1 exit status
src/support/tests/CMakeFiles/check_convert.dir/build.make:146: recipe for 
target 'bin/check_convert' failed
make[2]: *** [bin/check_convert] Error 1
make[2]: Leaving directory 'lyx-2-2-build'
CMakeFiles/Makefile2:880: recipe for target 
'src/support/tests/CMakeFiles/check_convert.dir/all' failed
make[1]: *** [src/support/tests/CMakeFiles/check_convert.dir/all] Error 2
make[1]: Leaving directory 'lyx-2-2-build'
Makefile:130: recipe for target 'all' failed
make: *** [all] Error 2


This looks like a bug in the cmake setup to me. It should not build 
AppleScriptProxy.cpp on linux.


Georg


Reply via email to