sip-4.16.2 makefile错误 [英] sip-4.16.2 makefile error

查看:64
本文介绍了sip-4.16.2 makefile错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 8计算机上安装PyQt4.我对makefile几乎一无所知,只够运行make,make install和clean.我对SIP的安装过程感到困惑.

I'm trying to install PyQt4 on a Windows 8 machine. I know almost nothing about makefiles, only enough to run make, make install, and make clean. I am stuck on the installation process for SIP.

从Visual Studio命令提示符运行nmake时,出现以下错误:

When running nmake from a VisualStudio command prompt, I get the error as follows:

python27.lib(python27.dll):致命错误LNK1112:模块计算机类型'x64与目标计算机类型'x86'冲突

python27.lib(python27.dll) : fatal error LNK1112: module machine type 'x64 conflicts with target machine type 'x86'

NMAKE:致命错误U1077:"C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ VC \ BIN \ link.EXE?" :? 返回代码"0x458"

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\link.EXE?' : ? return code '0x458'

停止.

NMAKE:致命错误U107:'"C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ VC \ BIN \ nmake.exe":返回代码'0x2'

NMAKE : fatal error U107: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\nmake.exe"' : return code '0x2'

停止.

有什么问题吗?

推荐答案

我遇到了类似的问题,并已解决.

I had similar problem and solved it.

我猜这是由 C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC 中的 vcvarsall.bat 的命令行配置引起的,我没有不知道您是否在'qmake''nmake'之前使用了命令'vcvarsall',但是对我来说,项目(对我来说,我不使用'vcvarsall'时甚至无法构建QScintilla.

I guess it was caused by command line configuration of vcvarsall.bat in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC, I don't know if you used command 'vcvarsall' before 'qmake' and 'nmake', but for me, the project(for me, it's QScintilla) even couldn't be built when I did't use 'vcvarsall'.

但是,由于致命错误LNK1112:模块计算机类型'x64与目标计算机类型'x86'冲突",使得制作过程仍然无法成功,我尝试思考如何更改目标计算机在命令行中进行配置(因为类似这些热门问题,所有问题都可以通过Visual Studio解决).

But, the make process still not succeed due to " fatal error LNK1112: module machine type 'x64 conflicts with target machine type 'x86' ", I try to think how to change the target machine configuration in command line(because those hot questions,similar to this, all were solved with Visual Studio).

幸运的是,我最终发现它与'vcvarsall'的参数配置有关,因为'vcvarsall'默认情况下适用于32位目标当我将'vcvarsall'更改为'vcvarsall amd64'时,它起作用了!

Luckily, I eventually found it has the relationship with the parameter configuration of 'vcvarsall', because 'vcvarsall' works for the make of target 32-bit by default.When I change the 'vcvarsall' to 'vcvarsall amd64' , it worked!

更多详细信息,请参见: https://docs.microsoft.com/zh-cn/cpp/build/building-on-the-command-line?view=vs-2019#developer_command_file_locations

More details in here:https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019#developer_command_file_locations

这篇关于sip-4.16.2 makefile错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆