On Wed, Apr 14, 2010 at 5:24 PM, Peter <rpy-l...@maubp.freeserve.co.uk> wrote:
> On Wed, Apr 14, 2010 at 5:14 PM, Peter <rpy-l...@maubp.freeserve.co.uk> wrote:
>>
>> 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).
>>
>
> I thought this seemed familiar - Laurent Oget had the same issue with
> rpy2 back in 2008 (that and a clash with an rpy header file which used
> to have the same name except for the case - since renamed). R does
> not install this header and it has to be acquired manually. This should
> be mentioned in the README file (might be worth adding a whole
> section for Windows once we have it running again).
>

I downloaded the R 2.10.1 tar ball and extracted the missing header to
C:\Program Files\R\R-2.10.1\include\Rinterface.h and tried again:

C:\Downloads\rpy2-2.1.0rc>c:\python26\python setup.py bdist_wininst | more
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\rinterfa
ce.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'
C:/PROGRA~1/R/R-210~1.1/include\Rembedded.h(49) : error C2370:
'R_DirtyImage' : redefinition; different storage class
        C:/PROGRA~1/R/R-210~1.1/include\Rinterface.h(50) : see
declaration of 'R_DirtyImage'
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.h(4) : warning
C4114: same type qualifier used more than once
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.h(5) : warning
C4114: same type qualifier used more than once
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(5) : warning
C4114: same type qualifier used more than once
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(6) : warning
C4114: same type qualifier used more than once
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(11) : error
C2054: expected '(' to follow 'inline'
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(11) : error
C2082: redefinition of formal parameter 'embeddedR_setlock'
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(11) : error
C2143: syntax error : missing ';' before '{'
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(14) : error
C2054: expected '(' to follow 'inline'
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(14) : error
C2082: redefinition of formal parameter 'embeddedR_freelock'
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(14) : error
C2143: syntax error : missing ';' before '{'
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(17) : error
C2054: expected  '(' to follow 'inline'
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\embeddedr.c(17) : error
C2082: redefinition of formal parameter 'rpy_has_status'
...
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\sexp.c(383) : warning C4024: 'Rf_protec
t' : different types for formal and actual parameter 1
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\sexp.c(387) : error C2275: 'Py_ssize_t'
 : illegal use of this type as an expression
        c:\python26\include\pyport.h(113) : see declaration of 'Py_ssize_t'
c:\downloads\rpy2-2.1.0rc\rpy\rinterface\sexp.c(387) : fatal error
C1003: error count exceeds 100; stopping compilation
error: command '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\cl.exe"' failed with exit status 2

A whole load of errors and warnings, but other than the na_values.c
comment complaint (see separate email thread), I don't know what to
concentrate on next.

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