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

2009-05-26 Thread I. Soumpasis
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
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA,  Big Spaceship. http://www.creativitycat.com ___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


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

2009-05-26 Thread Thomas Friedrichsmeier
Hm, somehow my mail below seems to have disappeared on its way, somewhere. 
Apologies, if you receive it twice.

--

Hi,

On Tuesday 26 May 2009, I. Soumpasis wrote:
 After the last update in svn cmake fails to find the R library folder. I am
 pasting the messages from the cmake.

ok, thanks for reporting this soon. I guess I'll have to back out that change. 
One question though:


 -- 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

What does
  R CMD sh -c 'echo $R_LIBS:$R_LIBS_SITE'
print?

 Linking CXX executable rkward.bin
 /usr/bin/ld: warning: libRblas.so, needed by /opt/R/lib/libR.so, not found
[...]
 This is strange because libR.so and libRblas.so are in the same folder.

Indeed, that's strange, and I don't quite understand, why we need to help ld, 
here. That's why I thought I could simply rip out the workaround code. Well, 
things should work again in a few minutes.

Regards
Thomas



signature.asc
Description: This is a digitally signed message part.
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


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

2009-05-26 Thread I. Soumpasis
Hi Thomas,

I checked the latest version of svn (2503) and both cmake and make worked
fine. :)

Regards,
Ilias

2009/5/26 I. Soumpasis nono@gmail.com



 2009/5/26 Thomas Friedrichsmeier 
 thomas.friedrichsme...@ruhr-uni-bochum.de




 ok, thanks for reporting this soon. I guess I'll have to back out that
 change.
 One question though:



  -- 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


 What does
 R CMD sh -c 'echo $R_LIBS:$R_LIBS_SITE'
 print?


 Hi Thomas

 Actually prints nothing.

 R CMD sh -c 'echo $R_LIBS:$R_LIBS_SITE'
 :

 I compiled R myself in the /opt directory and I made a link of the
 executable R in the /usr/bin directory. I assume that this makes rkward find
 the R directory. Still it is strange that finds correct the R directory the
 R/lib directory but fails with the R/library.

 Regards,
 Ilias


--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


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

2009-05-26 Thread Thomas Friedrichsmeier
Hi,

On Tuesday 26 May 2009, I. Soumpasis wrote:
 After the last update in svn cmake fails to find the R library folder. I am
 pasting the messages from the cmake.

ok, thanks for reporting this soon. I guess I'll have to back out that change. 
One question though:


 -- 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

What does
  R CMD sh -c 'echo $R_LIBS:$R_LIBS_SITE'
print?

 Linking CXX executable rkward.bin
 /usr/bin/ld: warning: libRblas.so, needed by /opt/R/lib/libR.so, not found
[...]
 This is strange because libR.so and libRblas.so are in the same folder.

Indeed, that's strange, and I don't quite understand, why we need to help ld, 
here. That's why I thought I could simply rip out the workaround code. Well, 
things should work again in a few minutes.

Regards
Thomas


signature.asc
Description: This is a digitally signed message part.
--
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers  brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing,  
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA,  Big Spaceship. http://p.sf.net/sfu/creativitycat-com ___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel