On Mon, Apr 12, 2010 at 7:33 PM, Peter <rpy-l...@maubp.freeserve.co.uk> wrote:
>
> Any idea how calling "R CMD config --cppflags" behaved? That seems to
> be the stumbling block at the moment and has nothing to do with Python
> or the compiler for rpy2. It could be something funny on my machine...
>

I solved this - R seems to want both sh and make on the PATH, I didn't
have make installed (done now via cygwin) and I get this:

C:\Downloads\rpy2-2.1.0rc>"c:\Program Files\r\R-2.10.1\bin\R.exe" CMD
config --cppflags
-Ic:/PROGRA~1/r/R-210~1.1/include

C:\Downloads\rpy2-2.1.0rc>"c:\Program Files\r\R-2.10.1\bin\R.exe" CMD
config --ldflags
-Lc:/PROGRA~1/r/R-210~1.1/bin -lR

C:\Downloads\rpy2-2.1.0rc>"c:\Program Files\r\R-2.10.1\bin\R.exe" CMD
config BLAS_LIBS
-Lc:/PROGRA~1/r/R-210~1.1/bin -lRblas

(Ignoring a cygwin warning on stderr about R's config.sh being called
by a Windows path which can be disabled by creating an environment
variable CYGWIN=nodosfilewarning)

So progress:

C:\Downloads\rpy2-2.1.0rc>c:\python26\python setup.py bdist_wininst
c:\python26\lib\distutils\dist.py:266: UserWarning: Unknown distribution option:
 'install_requires'
  warnings.warn(msg)
running bdist_wininst
running build
running build_py
running build_ext
building 'rpy2.rinterface.rinterface' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
creating build\temp.win32-2.6\Release\rpy
creating build\temp.win32-2.6\Release\rpy\rinterface
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W
3 /GS- /DNDEBUG -DWin32=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 -Irpy\rinterface
 -Ic:\python26\include -Ic:\python26\PC
-IC:/PROGRA~1/R/R-210~1.1/include /Tcrpy\rinterface\rinterface.c
/Fobuild\temp.win32-2.6\Release\rpy\rinterface\rinterface.obj
-LC:/PROGRA~1/R/R-210~1.1/bin -lR -LC:/PROGRA~1/R/R-210~1.1/bin
-lRlapack -LC:/PROGRA~1/R/R-210~1.1/bin -lRblas
cl : Command line warning D9002 : ignoring unknown option
'-LC:/PROGRA~1/R/R-210~1.1/bin'
cl : Command line warning D9002 : ignoring unknown option '-lR'
cl : Command line warning D9002 : ignoring unknown option
'-LC:/PROGRA~1/R/R-210~1.1/bin'
cl : Command line warning D9002 : ignoring unknown option '-lRlapack'
cl : Command line warning D9002 : ignoring unknown option
'-LC:/PROGRA~1/R/R-210~1.1/bin'
cl : Command line warning D9002 : ignoring unknown option '-lRblas'
rinterface.c
C:/PROGRA~1/R/R-210~1.1/include\R_ext/RS.h(43) : warning C4005:
'ERROR' : macro redefinition
        C:\Program Files\Microsoft
SDKs\Windows\v6.0A\include\wingdi.h(104) : see previous definition of
'ERROR'
rpy\rinterface\rinterface.c(65) : fatal error C1083: Cannot open
include file: 'Rinterface.h': No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\cl.exe"' failed with exit status 2

There is no Rinterface.h file under C:\Program
Files\R\R-2.10.1\include (nor C:\Program Files\R\R-2.9.2\include or
C:\Program Files\R\R-2.8.1\include either).

Where I'm guessing it could be under
C:\Downloads\rpy2-2.1.0rc\rpy\rinterface but its not there either.

Peter

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to