[Scons-users] Microsoft SDK not configured correctly when run with 64-bit python.

Bill Deegan bill at baddogconsulting.com
Tue Sep 9 15:40:09 EDT 2014


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> wrote:

>  Does anyone have any ideas?
>
>
>
> *From:* Scons-users [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
> *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
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20140909/c4fbce33/attachment-0001.html>


More information about the Scons-users mailing list