The error messages suggests that there is a mixing of 32bit and 64bit binary 
objects. Double check that both Apache and Python are 64bit versions and that 
you are running VS command shell for 64bit as well.

Graham

On 25/07/2015, at 6:21 AM, Steven Hausman <[email protected]> wrote:

> I am trying to follow the instructions for Windows Installation that say my 
> Apache, Python, and mod_wsgi must all be compiled under the same C++ 
> redistributable for VS2015.
> 
> I have created new common-VC14.mk , build-win64-VC14.bat, and 
> ap24py35-win65-VC14.mk files which point to the correct directories (and 
> revised file/version numbers) where Apache and Python are installed.
> 
> I am getting this error on what I assume is the final part in the build 
> process:
> 
> long_error.log snippet
>> python35.lib(python35.dll) : fatal error LNK1112: module machine type 'x64' 
>> conf
>> licts with target machine type 'X86'
>> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
>> 14.0
>> \VC\BIN\cl.EXE"' : return code '0x2'
>> Stop.
> 
> I noticed that the NMAKE portion of the error message does not originate from 
> within the "...\VC\bin\amd64" directory, although I'm not sure if that could 
> be the problem. I have also tried making that path explicit in the "LDFLAGS" 
> portion of common-VC14.mk (like in the example attached in 
> https://code.google.com/p/modwsgi/issues/detail?id=205) and I get the same 
> error message & directory. The only other examples of this error I have come 
> across seem to come from the GUI side of VS2015, I am not sure if this can be 
> compiled that way.
> 
> Does anyone have any suggestions or questions? I really would appreciate the 
> help. I'm a bit emotionally invested at this point, and will make a big pouty 
> face while doing everything over again in VC10, :)
> 
> Thanks,
> Steven
> 
> 
> OS: Windows Server 2008, x64 (link to picture: http://imgur.com/WlZPATf)
> Apache: Apache Lounge Distribution, 2.4.12, win64 VC14.
> Python: 3.5.0b3 [MSC v.1900 64 bit (AMD64)] (installed as Administrator in 
> interactive installer)
> Build Environment: Community VS2015, via Developer Command Prompt for VS2015, 
> I also have the VS2015 SDK.
> File Links: 
> common-VC14.mk : http://pastebin.com/gCgmB7iY
> build-win64-VC14.bat : http://pastebin.com/mU3xUTU7
> ap24py35-win65-VC14.mk : http://pastebin.com/WmVqhHd5
> long_error.log : http://pastebin.com/My6jXdjW
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to