[SciPy-user] Help building CVXOPT for W32/Python 2.3

Lucas Barcelos de Oliveira lucas.barcelos@gmail....
Wed Mar 14 12:08:14 CDT 2007


Hello all,

It's been a week now since I started trying to build cvxopt for python
2.3under Win XP with no success. I've build ATLAS using Cygwin
(followed the
instructions in http://www.scipy.org/Installing_SciPy/Windows) and manage to
create the lib files, but when I try to compile, using the command
/cygdrive/c/Python23/python setup.py config --compiler=cygwin build
--compiler=cygwin, I get a lot undefined references to several functions:
C:\cygwin\bin\gcc.exe -mcygwin -shared -s build\temp.win32-
2.3\Release\c\base.o build\temp.win32-2.3\Release\c\dense.obuild\temp.win32-
2.3\Release\c\sparse.o
build\temp.win32-2.3\Release\c\base.def-L/cygdrive/c/BLAS-LAPACK/
-Lc:\Python23\libs -Lc:
\Python23\PCBuild -lm -llapack -lblas -lg2c -lpython23 -o build\lib.win32-
2.3\cvxopt\base.pyd
build\temp.win32-2.3\Release\c\base.o:base.c:(.text+0x587): undefined
reference to `_dscal'
build\temp.win32-2.3\Release\c\base.o:base.c:(.text+0x62f): undefined
reference to `_zscal'
...
build\temp.win32-2.3\Release\c\dense.o:dense.c:(.text+0x57cb): undefined
reference to `_cpow'
build\temp.win32-2.3\Release\c\dense.o:dense.c:(.text+0x5914): undefined
reference to `__assert'
...
build\temp.win32-2.3\Release\c\sparse.o:sparse.c:(.text+0xf8b6): undefined
reference to `__assert'
collect2: ld returned 1 exit status

Since I couldn't find a solution for this, I tried compiling with Borland
C++ compiler, here is the result;
C:\cvxopt-0.8.2\src>python setup.py build --compiler=bcpp
running build
running build_py
running build_ext
building 'base' extension
C:\Borland\BCC55\Bin\bcc32.exe -c /tWM /O2 /q /g0 -IC:\Python23\include
-IC:\Python23\PC  -obuild\temp.win32-2.3\Release\c\dense.obj C\dense.c
C\dense.c:
Fatal F1003 c:\Borland\Bcc55\include\stdcomp.h 5: Error directive: Must use
C++ for STDCOMP.H
*** 1 errors in Compile ***
error: command 'bcc32.exe' failed with exit status 1

My next attempt was to use Visual Studio 6. The result:
C:\cvxopt-0.8.2\src>python setup.py build
running build
running build_py
running build_ext
building 'base' extension
C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo /Ox /MD
/W3 /GX /DNDEBUG -IC:\Python23\include -IC:\Python23\PC /TcC/sparse.c
/Fobuild\temp.win32-2.3\Release\C/sparse.obj
sparse.c
C/cvxopt.h(13) : fatal error C1083: Cannot open include file: 'complex.h':
No such file or directory
error: command '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe"'
failed with exit status 2

I've checked MSVC6 include dir and there really isn't a complex.h file, but
there is a COMPLEX file, if I rename it to COMPLEX.H i get the error:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\eh.h(32) : fatal error
C1189: #error :  "eh.h is only for C++!"
error: command '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe"'
failed with exit status 2

So I am pretty lost and desperate, I wish I could upgrade my Python version
to use a win32 installer but I am stuck at 2.3 because of the traffic
simulator I use (AIMSUN). Any help will be really appreciated!

Best regards,

-- 
----------------------------------------------------------
         Lucas Barcelos de Oliveira
Pós Controle e Automação - UFSC
         lucas.barcelos@gmail.com
----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20070314/4e9cb6b2/attachment.html 


More information about the SciPy-user mailing list