node-qt icon indicating copy to clipboard operation
node-qt copied to clipboard

Installing on 64 bit windows fails

Open 9point6 opened this issue 10 years ago • 7 comments

Performing an npm install on windows 8 64 bit fails with the following error:

QtCore4.lib(QtCore4.dll) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' [.......\node_modules\node-qt\build\qt.vcxproj]

If I try setting the windows sdk environment to x86 I get this error instead:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\Windows7.1SDK\Microsoft.Cpp.x64.Windows7.1SDK.targets(20,5):
error : You are attempting to build an AMD64 application from an x86 environment. If using the Windows 7.1 SDK, type setenv /x64 [........\node_modules\node-qt\build\qt.vcxproj]

9point6 avatar Jul 25 '13 13:07 9point6

Same trouble here. Help please. What to do with it?

qfox avatar Aug 04 '13 05:08 qfox

What is your compiler? Please use 64-bit compiler on 64-bit OS.

chengluyu avatar Aug 14 '13 11:08 chengluyu

I tried using VS2012 and VS2010 compilers in both 64-bit and 32-bit modes.

9point6 avatar Aug 14 '13 15:08 9point6

If your windows is x64 version, install nodejs x86 version but not x64 version .... da da da problem fixed!

wrj898 avatar Jan 11 '14 18:01 wrj898

@wrj898 that fixed it for me thanks.

manvir-singh avatar Jan 30 '14 01:01 manvir-singh

wait i get this now when running the example script on node-qt main page. capture

manvir-singh avatar Jan 30 '14 01:01 manvir-singh

install error QtCore4.lib(QtCore4.dll) : fatal error LNK1112: module machine type 'X86' confl icts with target machine type 'x64' [E:\nodejs\node-qt-master\build\qt.vcxproj]

Node.js version x86/v0.10.26 OS: windows 7 machine : x64

chenkline avatar May 08 '14 04:05 chenkline