Hello,<br><br>I am trying to compile SIP since a few days in order to install PyQt.<br>I can't find lead on the web so I thought I'd better ask for help here.<br><br>I unzipped the latest sip archive (4.12.1)and run the configure command. <br>
Then when I tried to run nmake it gives me the following error : <br><br>.\voidptr.c(513) : error C2039: 'obj' : is not a member of 'bufferinfo'<br>D:\ProgramFiles\Python26\include\object.h(164) : see declaration of 'bufferinfo'<br>
Generating Code...<br>NMAKE : fatal error U1077: '"D:\ProgramFiles\Microsoft Visual Studio 9.0\VC\bin\cl.EXE"' : return code '0x2'<br>Stop.<br>NMAKE : fatal error U1077: '"D:\ProgramFiles\Microsoft Visual Studio 9.0\VC\bin\nmake.exe"' : return code '0x2'<br>
Stop.<br><br>The declaration of bufferinfo in object.h is the following : <br><br>typedef struct bufferinfo {<br>    void *buf;         <br>        Py_ssize_t len;<br>        Py_ssize_t itemsize;  /* This is Py_ssize_t so it can be <br>
                                 pointed to by strides in simple case.*/<br>        int readonly;<br>        int ndim;<br>        char *format;<br>        Py_ssize_t *shape;<br>        Py_ssize_t *strides;<br>        Py_ssize_t *suboffsets;<br>
        void *internal;<br>} Py_buffer;<br><br>And the code at line 513 of voidptr.c is :<br><br>PyErr_Format(PyExc_TypeError, "'%s' must have an item size of 1",<br>                Py_TYPE(value_view.obj)->tp_name);<br>
<br>I am on windows XP 64bits, with Python 2.6 and visual studio 2008 (I run the commands from visual studio <br>command prompt).<br><br>Thank you for you consideration.<br><br>Johanna<br>