[Gdal-dev] w32 ng-python bindings problem

Didrik Pinte dpinte at itae.be
Thu Apr 26 09:23:50 EDT 2007


Hi,

I'm trying to compile the new generation bindings with the latest
official 1.4.1 version.

Here is the error I get :

        "C:\Python24"/python.exe setup.py build
numpy include C:\Python24\lib\site-packages\numpy\core\include
running build
running build_py
copying gdal.py -> build\lib.win32-2.4
copying ogr.py -> build\lib.win32-2.4
copying osr.py -> build\lib.win32-2.4
copying gdalconst.py -> build\lib.win32-2.4
running build_ext
building '_gdal' extension
C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\cl.exe /c /nologo
/Ox /MD
 /W3 /GX /DNDEBUG -I../../port -I../../gcore -I../../alg -I../../ogr
 -IC:\Python
24\lib\site-packages\numpy\core\include -IC:\Python24\include
-IC:\Python24\PC /
Tpgdal_wrap.cpp /Fobuild\temp.win32-2.4\Release\gdal_wrap.obj
gdal_wrap.cpp
c:\build\thuban\gdal-1.4.1\port\cpl_config.h(8) : warning C4005:
'HAVE_SNPRINTF'
 : macro redefinition
        c:\Python24\include\pyerrors.h(220) : see previous definition of
        'HAVE_S
NPRINTF'
C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin\link.exe /DLL
/nologo /IN
CREMENTAL:NO /LIBPATH:"C:\build\thuban\gdal-1.4.1\build\"
/LIBPATH:C:\Python24\l
ibs /LIBPATH:C:\Python24\PCBuild gdal_i.lib /EXPORT:init_gdal
build\temp.win32-2
.4\Release\gdal_wrap.obj /OUT:build\lib.win32-2.4\_gdal.pyd
/IMPLIB:build\temp.w
in32-2.4\Release\_gdal.lib
LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
LINK : fatal error LNK1159: no output file specified
error: command '"C:\Program Files\Microsoft Visual C++ Toolkit
2003\bin\link.exe
"' failed with exit status 1159
NMAKE : fatal error U1077: '"C:\Python24"/python.exe'á: code retour
'0x1'
Stop.

My environment is MSVC Toolkit 2003 (VC 7.1) with Python 2.4 and numpy
1.0.2. 

The message is not really clear for me. Any help would be greatly
appreciated ;-)

Thanks

Didrik




More information about the Gdal-dev mailing list