Hi all,<br><br>After the last update in svn cmake fails to find the R library folder. I am pasting the messages from the cmake.<br><br>-- Found Qt-Version 4.4.3 (using /usr/bin/qmake)<br>-- Found X11: /usr/lib/libX11.so<br>
-- Found Automoc4: /usr/bin/automoc4<br>-- Found Perl: /usr/bin/perl<br>-- Found KDE 4.1 include dir: /usr/include<br>-- Found KDE 4.1 library dir: /usr/lib<br>-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler<br>
-- Found automoc4: /usr/bin/automoc4<br>-- Looking for R executable<br>-- Specified by user<br>-- Using R at /usr/bin/R<br>-- Quering R for CPP flags<br>-- CPP flags are '-I/opt/R/include'<br>-- Quering R for LD flags<br>
-- LD flags are '-L/opt/R/lib -lR'<br>-- Checking for R package library location to use<br>-- Not detected and not specified.<br>CMake Error at rkward/rbackend/FindR.cmake:100 (MESSAGE):<br> No existing library location found<br>
Call Stack (most recent call first):<br> rkward/rbackend/CMakeLists.txt:1 (INCLUDE)<br><br><br>-- Configuring done<br><br>I forced the path with -DR_LIBDIR and cmake worked. <br><br>cmake -DR_LIBDIR=/opt/R/library .<br>-- Found Qt-Version 4.4.3 (using /usr/bin/qmake)<br>
-- Found X11: /usr/lib/libX11.so<br>-- Found Automoc4: /usr/bin/automoc4<br>-- Found Perl: /usr/bin/perl<br>-- Found KDE 4.1 include dir: /usr/include<br>-- Found KDE 4.1 library dir: /usr/lib<br>-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler<br>
-- Found automoc4: /usr/bin/automoc4<br>-- Looking for R executable<br>-- Specified by user<br>-- Using R at /opt/R/bin/R<br>-- Quering R for CPP flags<br>-- CPP flags are '-I/opt/R/include'<br>-- Quering R for LD flags<br>
-- LD flags are '-L/opt/R/lib -lR'<br>-- Checking for R package library location to use<br>-- Location specified by user<br>-- Will use /opt/R/library<br>-- Configuring done<br>-- Generating done<br><br>The make provided a new message:<br>
<br>[ 99%] Building CXX object rkward/CMakeFiles/rkward.bin.dir/rkwardapplication.o<br>Linking CXX executable rkward.bin<br>/usr/bin/ld: warning: libRblas.so, needed by /opt/R/lib/libR.so, not found (try using -rpath or -rpath-link)<br>
/opt/R/lib/libR.so: undefined reference to `zgemm_'<br>/opt/R/lib/libR.so: undefined reference to `daxpy_'<br>/opt/R/lib/libR.so: undefined reference to `dscal_'<br>/opt/R/lib/libR.so: undefined reference to `dnrm2_'<br>
/opt/R/lib/libR.so: undefined reference to `dgemm_'<br>/opt/R/lib/libR.so: undefined reference to `dtrsm_'<br>/opt/R/lib/libR.so: undefined reference to `dcopy_'<br>/opt/R/lib/libR.so: undefined reference to `dsyrk_'<br>
/opt/R/lib/libR.so: undefined reference to `dasum_'<br>/opt/R/lib/libR.so: undefined reference to `ddot_'<br>/opt/R/lib/libR.so: undefined reference to `drotg_'<br>/opt/R/lib/libR.so: undefined reference to `drot_'<br>
/opt/R/lib/libR.so: undefined reference to `dswap_'<br>collect2: ld returned 1 exit status<br>make[2]: *** [rkward/rkward.bin] Error 1<br>make[1]: *** [rkward/CMakeFiles/rkward.bin.dir/all] Error 2<br>make: *** [all] Error 2<br>
<br>This is strange because libR.so and libRblas.so are in the same folder.<br><br>Regards,<br>Ilias<br><br>