[rkward-devel] cmake fails to find R library folder

I. Soumpasis nono.231 at gmail.com
Tue May 26 10:35:00 UTC 2009


Hi all,

After the last update in svn cmake fails to find the R library folder. I am
pasting the messages from the cmake.

-- Found Qt-Version 4.4.3 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Found KDE 4.1 include dir: /usr/include
-- Found KDE 4.1 library dir: /usr/lib
-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Looking for R executable
-- Specified by user
-- Using R at /usr/bin/R
-- Quering R for CPP flags
-- CPP flags are '-I/opt/R/include'
-- Quering R for LD flags
-- LD flags are '-L/opt/R/lib -lR'
-- Checking for R package library location to use
-- Not detected and not specified.
CMake Error at rkward/rbackend/FindR.cmake:100 (MESSAGE):
  No existing library location found
Call Stack (most recent call first):
  rkward/rbackend/CMakeLists.txt:1 (INCLUDE)


-- Configuring done

I forced the path with -DR_LIBDIR and cmake worked.

cmake -DR_LIBDIR=/opt/R/library .
-- Found Qt-Version 4.4.3 (using /usr/bin/qmake)
-- Found X11: /usr/lib/libX11.so
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Found KDE 4.1 include dir: /usr/include
-- Found KDE 4.1 library dir: /usr/lib
-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Looking for R executable
-- Specified by user
-- Using R at /opt/R/bin/R
-- Quering R for CPP flags
-- CPP flags are '-I/opt/R/include'
-- Quering R for LD flags
-- LD flags are '-L/opt/R/lib -lR'
-- Checking for R package library location to use
-- Location specified by user
-- Will use /opt/R/library
-- Configuring done
-- Generating done

The make provided a new message:

[ 99%] Building CXX object
rkward/CMakeFiles/rkward.bin.dir/rkwardapplication.o
Linking CXX executable rkward.bin
/usr/bin/ld: warning: libRblas.so, needed by /opt/R/lib/libR.so, not found
(try using -rpath or -rpath-link)
/opt/R/lib/libR.so: undefined reference to `zgemm_'
/opt/R/lib/libR.so: undefined reference to `daxpy_'
/opt/R/lib/libR.so: undefined reference to `dscal_'
/opt/R/lib/libR.so: undefined reference to `dnrm2_'
/opt/R/lib/libR.so: undefined reference to `dgemm_'
/opt/R/lib/libR.so: undefined reference to `dtrsm_'
/opt/R/lib/libR.so: undefined reference to `dcopy_'
/opt/R/lib/libR.so: undefined reference to `dsyrk_'
/opt/R/lib/libR.so: undefined reference to `dasum_'
/opt/R/lib/libR.so: undefined reference to `ddot_'
/opt/R/lib/libR.so: undefined reference to `drotg_'
/opt/R/lib/libR.so: undefined reference to `drot_'
/opt/R/lib/libR.so: undefined reference to `dswap_'
collect2: ld returned 1 exit status
make[2]: *** [rkward/rkward.bin] Error 1
make[1]: *** [rkward/CMakeFiles/rkward.bin.dir/all] Error 2
make: *** [all] Error 2

This is strange because libR.so and libRblas.so are in the same folder.

Regards,
Ilias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20090526/315681ce/attachment.html>


More information about the Rkward-devel mailing list