[Scons-users] Microsoft SDK not configured correctly when run with 64-bit python.
Monson, Kyle E
Kyle.Monson at pnnl.gov
Wed Sep 17 13:32:55 EDT 2014
If it’s any help. I did see something that suggests that scons will look in the incorrect spot in the registry for the windows SDK if run with 64-bit version of python.
From: Monson, Kyle E
Sent: Tuesday, September 09, 2014 17:25
To: SCons users mailing list
Subject: RE: [Scons-users] Microsoft SDK not configured correctly when run with 64-bit python.
Bill,
Both.
As a convenience you run scons with the python you want to build the python libraries against. It saves us from having to add a “which python” build argument. It’s also much easier way to locate libs and headers needed to build.
Kyle
From: Scons-users [mailto:scons-users-bounces at scons.org] On Behalf Of Bill Deegan
Sent: Tuesday, September 09, 2014 12:40
To: SCons users mailing list
Subject: Re: [Scons-users] Microsoft SDK not configured correctly when run with 64-bit python.
Kyle,
So when you say you are trying to compile your project with Python 2.7 64 bit, do you mean run SCons with that, or that your program will link with that version of python?
-Bill
On Tue, Sep 9, 2014 at 9:21 AM, Monson, Kyle E <Kyle.Monson at pnnl.gov<mailto:Kyle.Monson at pnnl.gov>> wrote:
Does anyone have any ideas?
From: Scons-users [mailto:scons-users-bounces at scons.org<mailto:scons-users-bounces at scons.org>] On Behalf Of Monson, Kyle E
Sent: Tuesday, September 02, 2014 17:30
To: scons-users at scons.org<mailto:scons-users at scons.org>
Subject: [Scons-users] Microsoft SDK not configured correctly when run with 64-bit python.
When I try to compile my project with the python 2.7 64-bit it fails to setup the Windows SDK properly.
The error I am getting is c:\python27_64\include\pyconfig.h(227) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
Attached is the output from SCONS_MSCOMMON_DEBUG for both the 32 and 64 bit versions of python as well as corresponding env.Dump()s. As you can see, both versions find the SDK but for some reason the 64 bit version does not make the same changes to the environment at the end. In both cases I’m using the same target architecture with both interpreters. (I get linker errors in the 32 bit python but that is because of what we are building. Switching to a 32 bit target fixes this when building with 32 bit python, see below.)
“Well, just compile with the 32-bit version.”
I’m using scons to compile two python modules and configure a python program (something we previously did with the automake toolchain… shudder). I chose scons to make finding the python lib, python headers, and numpy headers in a cross platform manner much easier. For this scons has performed admirably. When compiling you must use the python that you intend to run the program with, as we just ask the interpreter where stuff is. We need use the 64 bit version of python as our program uses lots of ram.
“Use mingw64.”
VS 2008 is one of our required compiler targets and executables produced by mingw are too slow for our applications. Icc will be added eventually but 2008 is a requirement.
I’m using scons-local-2.3.3 for my build.
Is this a bug? Is there a workaround? Do you need any other info?
Thanks for the help,
Kyle
_______________________________________________
Scons-users mailing list
Scons-users at scons.org<mailto:Scons-users at scons.org>
https://pairlist4.pair.net/mailman/listinfo/scons-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20140917/bf19f08c/attachment-0001.html>
More information about the Scons-users
mailing list