On Wednesday 21 March 2012, Křištof Želechovski wrote: > The following commands are used to build the executable cantor_rserver: > > Linking CXX executable cantor_rserver > cd /home/abuild/rpmbuild/BUILD/cantor-4.7.2/build/src/backends/R/rserver && > /usr/bin/cmake -E cmake_link_script CMakeFiles/cantor_rserver.dir/link.txt > -- verbose=1 > /usr/bin/c++ -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack- > protector -funwind-tables -fasynchronous-unwind-tables -g > -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align > -Wchar-subscripts -Wall -W - Wpointer-arith -Wformat-security > -fno-exceptions -DQT_NO_EXCEPTIONS -fno- check-new -fno-common > -Woverloaded-virtual -fno-threadsafe-statics - fvisibility=hidden > -Werror=return-type -fvisibility-inlines-hidden -O2 - DNDEBUG > -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,-Bsymbolic-functions > CMakeFiles/cantor_rserver.dir/cantor_rserver_automoc.o > CMakeFiles/cantor_rserver.dir/rserver.o > CMakeFiles/cantor_rserver.dir/rcallbacks.o > CMakeFiles/cantor_rserver.dir/main.o > CMakeFiles/cantor_rserver.dir/settings.o > CMakeFiles/cantor_rserver.dir/radaptor.o -o cantor_rserver -rdynamic - > L/usr/lib64/R/lib -L/home/abuild/rpmbuild/BUILD/cantor-4.7.2/build/lib > /usr/lib64/libkdeui.so.5.7.0 ../../../../lib/libcantorlibs.so.0.0.2 -lR - > lRlapack -lgfortran -lRblas /usr/lib64/libkio.so.5.7.0 > /usr/lib64/libQtNetwork.so /usr/lib64/libQtXml.so > /usr/lib64/libkdeui.so.5.7.0 /usr/lib64/libQtGui.so /usr/lib64/libQtSvg.so > /usr/lib64/libkdecore.so.5.7.0 /usr/lib64/libQtDBus.so > /usr/lib64/libQtCore.so -lpthread > /usr/bin/cmake -E cmake_progress_report > /home/abuild/rpmbuild/BUILD/cantor-4.7.2/build/CMakeFiles 46 > > The result of the build is broken and fails to execute: > > /usr/bin/cantor_rserver: error while loading shared libraries: libR.so: > cannot open shared object file: No such file or directory > > Here is the important part of the build command: > > /usr/bin/c++ -L/usr/lib64/R/lib -lR -lRblas
How did you get those ? Why are they not linked using the full absolute path ? How are your RPATH settings ? Can you please also post the CMakeLists.txt or relevant excerpts from it ? Actually this looks more suitable for the general cmake mailing list. Alex _______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
