Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building X86 on Windows 7 X64 #6

Open
Janhouse opened this issue Oct 26, 2015 · 2 comments
Open

Building X86 on Windows 7 X64 #6

Janhouse opened this issue Oct 26, 2015 · 2 comments

Comments

@Janhouse
Copy link

Basically I got warnings messages "warning LNK4068: /MACHINE not specified" that made it default to X64 and thus error and failed compilation.
I fixed it by quickly modifying generated pdfium.vcxproj and adding /MACHINE:X86 by hand to

<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
   <ClCompile>
      <AdditionalOptions>/MACHINE:X86 /MP %(AdditionalOptions)</AdditionalOptions>

and to

<Lib>
      <AdditionalOptions>/MACHINE:X86 /LTCG %(AdditionalOptions)</AdditionalOptions>

It should instead probably be done in pdfium.gyp, so if you want to, you can fix it. :)

@tojocky
Copy link
Owner

tojocky commented Oct 26, 2015

ups... actually this seems to be an issue of node-gyp. on what OS did you compile? with what node-gyp version? I think you should specify specific parameters if your os is 64 but want on x32

@Janhouse
Copy link
Author

Thanks for quick response!

Well, actually I did npm install --arch=ia32 --msvs_version=2013 and then nw-gyp rebuild --arch=ia32 --target=0.12.3 --msvs_version=2013 so it should have set the /MACHINE:X86 in pdfium.gyp but it didn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants