[zeromq-dev] Error While Building pyzmq

Gargi Das gargi.das at hotmail.com
Tue Apr 24 08:04:27 CEST 2012


Hello All,

I am facing a problem when i am trying to build pyzmq for a debug version of python.

I do the following steps:

1. build libzmq using visual studio the configuration selected is Win64 and debug.
2. cd into pyzmq directory and configure libzmq and pyzmq with command : python_d.exe setup.py configure --zmq="my zmq path"
3. now using the same python_d.exe i try to call: python_d.exe setup.py install

Step three gives me an error :



running install

running build

running build_py

copying zmq\libzmq.dll ->
build\lib.win-amd64-3.1-pydebug\zmq

running build_ext

building 'zmq.core.constants' extension

C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG
-Id:\Gargi\ZMQ\win64debug\zeromq

-2.1.11\zeromq-2.1.11\include -Izmq\utils -Izmq\core
-Izmq\devices
-ID:\dev\GDas\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debug

libs\bin\include
-ID:\dev\GDas\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debuglibs\bin\PC
/Tczmq\core\constants.c /Fobuild\temp.

win-amd64-3.1-pydebug\Release\zmq\core\constants.obj

constants.c

zmq\utils\zmq_compat.h(130) : warning C4067: unexpected
tokens following preprocessor directive - expected a newline

C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\amd64\link.exe /DLL /nologo /INCREMENTAL:NO
/LIBPATH:d:\Gargi\ZMQ\win64debug\zerom

q-2.1.11\zeromq-2.1.11\lib
/LIBPATH:D:\dev\GDas\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debuglibs\bin\libs
/LIBPATH:D:\dev\GDa

s\install\products\dotrox\main\windows-amd64-vc_9_0_sp1-debuglibs\bin\PCbuild\amd64
libzmq.lib /EXPORT:PyInit_constants build\temp.win-amd64

-3.1-pydebug\Release\zmq\core\constants.obj
/OUT:build\lib.win-amd64-3.1-pydebug\zmq\core\constants.pyd
/IMPLIB:build\temp.win-amd64-3.1-pyd

ebug\Release\zmq\core\constants.lib
/MANIFESTFILE:build\temp.win-amd64-3.1-pydebug\Release\zmq\core\constants.pyd.manifest

LINK : fatal error LNK1104: cannot open file 'python31.lib'

error: command '"C:\Program Files (x86)\Microsoft
Visual Studio 9.0\VC\BIN\amd64\link.exe"' failed with exit status 1104

[74795 refs]




Important line in above log is LINK : fatal error
LNK1104: cannot open file 'python31.lib'

 

Now my question is why setup.py is trying to open
python31.lib it should try to open python31_d.lib.  Do i need to do some changes in any of the config files i tried to find that but was not able to find it.
Just for saying i was able to build , libzmq and pyzmq for release version of python.
I will be grateful if anyone can help me on this ??
Regards,Gargi


  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120423/872636d6/attachment.htm>


More information about the zeromq-dev mailing list