On 14/04/10 18:43, Peter wrote:
> On Wed, Apr 14, 2010 at 5:40 PM, Peter<rpy-l...@maubp.freeserve.co.uk>  wrote:
>> 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:
>
> The previous email was using the MS compiler with Python 2.6.
>
> I also tried the cygwn mingw32 compiler with Python 2.5 (a combination
> I use to build other Python C extensions successfully). This also fails
> but the error log is much shorter:
>
> 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'
>

I am confused the output seems to tell that your using MSVS, not mingw32 
to compile as you indicate before.
In any case, there nothing obvious I can tell from it. Compiling on 
Windows is mostly a pain because of setting up everything, and this kind 
of message mostly indicate that the setup is not right.


------------------------------------------------------------------------------
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to