help required to compile keedu-4.4.2

Alexander Neundorf neundorf at kde.org
Tue Apr 27 20:54:07 CEST 2010


On Tuesday 27 April 2010, lux-integ wrote:
> On Tuesday 27 April 2010 09:52:28 am David Faure wrote:
> > The name of the binary is missing before --slave.
> >
> > add_custom_target(renvvars COMMAND ${R_EXECUTABLE} --slave --
> > file=${CMAKE_CURRENT_SOURCE_DIR}/tools/envvars.r >
> > ${CMAKE_CURRENT_BINARY_DIR}/renvvars.h )
> >
> > So basically the problem is that R_EXECUTABLE is empty.
> >
> > ./modules/FindR.cmake:11:FIND_PROGRAM(R_EXECUTABLE R)
> > ./modules/FindR.cmake:13:IF(R_EXECUTABLE-NOTFOUND)
> > ./modules/FindR.cmake:15:ENDIF(R_EXECUTABLE-NOTFOUND)
> >
> > No abort on error when not found?
>
> I installed R in /usr/local.  It was not seen by the cmake script shipped
> with kdeedu-4.4.2.    I deleted it and installed R2 in its own directory
> (/usr/local/R-2.10.1)  and   did all the relevant settings in /etc/profile
> so that PATHS  etc were appropriately set. 


This is not necessary.
If R is installed into /usr/local/R-2.10.1, set the environment variable 
CMAKE_PREFIX_PATH accordingly:
$ export CMAKE_PREFIX_PATH=/usr/local/R-2.10.1:$CMAKE_PREFIX_PATH

If the FindR.cmake is more or less ok, it should then find R there.


> poet [ ~ ]$ ls /usr/local/R-2.10.1/bin
> R  Rscript
> poet [ ~ ]$
> poet [ ~ ]$
> poet [ ~ ]$ ls /usr/local/R-2.10.1/lib64/R/bin
> BATCH    INSTALL  R       Rcmd    Rdconv  Rprof    SHLIB  Stangle  build
> config  f77_f2c     libtool        pager
> COMPILE  LINK     REMOVE  Rd2dvi  Rdiff   Rscript  Sd2Rd  Sweave   check 
> exec javareconf  mkinstalldirs  rtags
> poet [ ~ ]$
> poet [ ~ ]$
>
>
>  AND   expecting that cmake would not find it I wrote my own FindR.cmake

Please don't do that.
Instead try to fix the existing FindR.cmake and post the patch here (diff -bup 
FindR.cmake.original FindR.cmake)

Alex


More information about the Kde-buildsystem mailing list