Fwd: PyISAPIe compilation problems

103 views
Skip to first unread message

Phillip Sitbon

unread,
Jan 14, 2012, 1:57:33 PM1/14/12
to pyis...@googlegroups.com
Sharing with the list in case this helps anyone else.


---------- Forwarded message ----------
From: Phillip Sitbon <phi...@sitbon.net>
Date: Sat, Jan 14, 2012 at 10:56
Subject: Re: PyISAPIe compilation problems
To: Mathieu


Hi Mathieu,

For Problem #1- I am thinking that your issue is that SubWcRev is
missing - it's a tool to update the current code revision into the
binary. As you can see in the attached image, Revision.h gets
generated from Revision.in. The tool is part of the TortoiseSVN
package, a Windows subversion client.

If you don't have much experience with such tools, you can just take
the easy route and use the Revision.h I've included. It's the most
recent stable repo version. Then you can delete the pre-build step.
I've included a screenshot of that build step.

For the revision stuff, if you want to build with Python 2.7.2: See
the Libpaths.jpg attachment. Change this to point to the libs
directory of your current Python distribution. Next, change the
preprocessor definition to your newly added PY_27_2.

For your last problem - it looks like you might be linking to a 32-bit
C runtime? Check the linker options and see if anything there stands
out. Also make sure the version of Python you're linking to is 64-bit.

Hope that helped a bit. I feel like I should apologize for not keeping
up with the updates on this - the last thing I wanted to do was give
too many people headaches over setting this up. I have big plans for
the next version, which is in the pipeline this year. I think I can
get a lot done if continue to not worry about Py3k related issues :)

Cheers,

Phillip

On Sat, Jan 14, 2012 at 07:37, Mathieu wrote:
> Hello,
>
> I'm trying to compile the PyISAPIe dll with python 2.7.2 in 64bits, in
> VS2010. The plan is to run Django.
>
> I have the following errors:
>
> ----------------------
> Error    89    error C1083: Cannot open include file: 'Revision.h': No such
> file or directory
> c:\users\soleil\downloads\pyisapie-1.1.0-rc4-source\pyisapie-1.1.0-rc4-source\pyisapie\PyISAPIe.h
> 177    1    PyISAPIe
> ----------------------
>
> there I have:
>
>
> ----------------------
> // Generated revision header (see project's pre-build event)
> #include "Revision.h"
> ----------------------
>
> and indeed I have no revision.h
>
> How to keep going ?
>
>
> I also added the following at the right place within PyISAPIe.h
>
> ----------------------
> #define PYI_PY_VERSION (272)
>
> (...)
>
> #define PY_27   (270)
> #define PY_27_1 (PY_27 + 1)
> #define PY_27_2 (PY_27 + 2)
>
> (...)
>
> #elif PYI_PY_VERSION >= PY_27
>   #define PYI_PY_VERSION_MAJOR PY_27
>   #include "C:\Python27/include/Python.h"
>   #include "C:\Python27/include/structmember.h"
>   #include "C:\Python27/include/frameobject.h"
> ----------------------
>
> (I'm not familiar with Windows-VS compilation, so I did the #include
> "C:\Python27/include/Python.h" workaround)
>
> I also have the following error, that I don't understand:
>
> ----------------------
>     99    IntelliSense: linkage specification is incompatible with previous
> "_hypot" (declared at line 161 of "C:\Program Files (x86)\Microsoft Visual
> Studio 10.0\VC\include\math.h")    c:\program files (x86)\microsoft visual
> studio 10.0\vc\include\math.h    138    25
> ----------------------
>
>
>
> thanks
> Mathieu
>

BuildStep.png
LibPaths.jpg
PreDefs.jpg
Revision.h
Reply all
Reply to author
Forward
0 new messages