[PyQt] nmake fatal error while compiling SIP - voidptr.c: error C2039
Phil Thompson
phil at riverbankcomputing.com
Mon May 2 11:48:02 BST 2011
On Mon, 2 May 2011 11:53:14 +0200, Johanna <johanna.royer at gmail.com>
wrote:
> Hello,
>
> I am trying to compile SIP since a few days in order to install PyQt.
> I can't find lead on the web so I thought I'd better ask for help here.
>
> I unzipped the latest sip archive (4.12.1)and run the configure command.
> Then when I tried to run nmake it gives me the following error :
>
> .\voidptr.c(513) : error C2039: 'obj' : is not a member of 'bufferinfo'
> D:\ProgramFiles\Python26\include\object.h(164) : see declaration of
> 'bufferinfo'
> Generating Code...
> NMAKE : fatal error U1077: '"D:\ProgramFiles\Microsoft Visual Studio
> 9.0\VC\bin\cl.EXE"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"D:\ProgramFiles\Microsoft Visual Studio
> 9.0\VC\bin\nmake.exe"' : return code '0x2'
> Stop.
>
> The declaration of bufferinfo in object.h is the following :
>
> typedef struct bufferinfo {
> void *buf;
> Py_ssize_t len;
> Py_ssize_t itemsize; /* This is Py_ssize_t so it can be
> pointed to by strides in simple case.*/
> int readonly;
> int ndim;
> char *format;
> Py_ssize_t *shape;
> Py_ssize_t *strides;
> Py_ssize_t *suboffsets;
> void *internal;
> } Py_buffer;
That's not the declaration from Python v2.6.
> And the code at line 513 of voidptr.c is :
>
> PyErr_Format(PyExc_TypeError, "'%s' must have an item size of 1",
> Py_TYPE(value_view.obj)->tp_name);
>
> I am on windows XP 64bits, with Python 2.6 and visual studio 2008 (I run
> the
> commands from visual studio
> command prompt).
>
> Thank you for you consideration.
>
> Johanna
Maybe you are using a 2.6 beta?
Phil
More information about the PyQt
mailing list