NMAKE:致命错误U1077:'" C:\ Program Files(x86)\ Microsoft Visual Studio 14.0

时间:2015-07-23 02:29:46

标签: python visual-studio python-2.7 visual-c++ openssl

我需要编译Openssl才能在Python 2.7脚本中使用它。我按照指南进行了操作:https://github.com/dsoprea/M2CryptoWindows

我安装了ActiveState Perl,NASM,Swig并设置了环境变量。

我运行这些命令:

set PATH=%PATH%;C:\Program Files\nasm
cd C:\grr-build\openssl-1.0.1e
perl Configure VC-WIN64A --prefix=C:\grr-build\openssl
ms\do_win64a.bat
nmake -f ms\ntdll.mak

当我输入:nmake -f ms\ntdll.mak时出现错误,如下所示:

C:\grr-build\openssl-1.0.2d>nmake -f ms\ntdll.mak

Microsoft (R) Program Maintenance Utility Version 14.00.23026.0
Copyright (C) Microsoft Corporation.  All rights reserved.

Building OpenSSL
        perl .\util\copy-if-different.pl ".\crypto\buildinf.h" "tmp32dll\buildin
f.h"
Copying: ./crypto/buildinf.h to tmp32dll/buildinf.h
        perl .\util\copy-if-different.pl ".\crypto\opensslconf.h" "inc32\openssl
\opensslconf.h"
NOT copying: ./crypto/opensslconf.h to inc32/openssl/opensslconf.h
        rc /fo"tmp32dll\libeay32.res" /d CRYPTO ms\version32.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
Copyright (C) Microsoft Corporation.  All rights reserved.

        link /nologo /subsystem:console /opt:ref /debug /dll /out:out32dll\libea
y32.dll /def:ms/LIBEAY32.def @C:\Users\ADMINI~1.E-A\AppData\Local\Temp\nmDF27.tm
p
tmp32dll\uplink.obj : fatal error LNK1112: module machine type 'X86' conflicts w
ith target machine type 'x64'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0
\VC\BIN\x86_amd64\link.EXE"' : return code '0x458'
Stop.

C:\grr-build\openssl-1.0.2d>

我在网上搜索过。他们说我应该在VS 64 Command Prompt中运行它。我找到了不同类型的VS 64 Command Prompts:VS2015 x64 ARM Cross Tools Command; VS2015 x64 ARM本机工具命令和VS2015 x86 x64 ARM交叉工具命令。我尝试使用所有这些命令重新输入命令,因为我不知道差异。没有任何效果。

你能指点我如何解决这个问题吗?

0 个答案:

没有答案