Again: building problems with MSVC

147 views
Skip to first unread message

Günther Weidenholzer

unread,
Dec 17, 2015, 2:51:57 AM12/17/15
to Jep Project

Hello everybody!

I would be glad if you could help me with my problem:

I tried to build the acual source code (commit 3d33ea0) using MSVC by typing "pyhon setup.py build" on the Visual Studio Command Prompt (2010).
Unfortunately I got the following linker error:
python34.lib(python34.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

See the detailled output attached (build.txt)

My situation is as follows:

* Windows 7 Professional, SP1, 64 bit
* jdk1.8.0_25, 64 bit
* Python 3.4.3 |Anaconda 2.2.0 (64-bit)| (default, Mar  6 2015, 12:06:10) [MSC v.1600 64 bit (AMD64)] on win32
* Windows SDK 7.1 and Visual Studio Express 2010, details see msvc.png

It would be great if you have a tip to solve this problem.

Thanks in advance.

Best regards,
Günther
build.txt
msvc.png

Nathan Jensen

unread,
Dec 17, 2015, 1:14:38 PM12/17/15
to Jep Project
The error indicates a problem with 32 bit vs 64 bit, though I'm not quite sure what is wrong there.  Since you're building with Python 3, did you follow all the steps on the wiki?


For 64 bit support you need to install a specific version of Windows SDK and then you need to build with a special command prompt.

--
You received this message because you are subscribed to the Google Groups "Jep Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jep-project...@googlegroups.com.
To post to this group, send email to jep-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jep-project/f202c07b-c25f-4664-b101-1553c9c9dd4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Günther Weidenholzer

unread,
Dec 21, 2015, 9:13:34 AM12/21/15
to Jep Project
Hi Nathan!

Thank you for your answer. It's quite tricky....

My mistake was that I used the Visual Studio Command Prompt (2010) rather than the Windows SDK 7.1 Command Prompt from the Windows start menu!

Then it is necessary to set the following envs:

set DISTUTILS_USE_SDK=1
setenv /x64 /release

I got this info here: https://github.com/cython/cython/wiki/CythonExtensionsOnWindows

At the end I was able to build jep (commit 3d33ea0) with those commands:

python setup.py build
python setup.py install

Thanky you very much! I wish you merry christmas and a happy new year!
Günther
Reply all
Reply to author
Forward
0 new messages