[fdo-internals] RE: openssl link error build_thirdparty.bat -p=x64

Greg Boone greg.boone at autodesk.com
Tue Jan 3 11:58:22 EST 2012

Hi Trevor,

I recommend building 32 and 64 bit builds in separate directories. Some of the third-party projects are not set up in a manner that makes sharing directories easy. 

To setup 64 bit:

setenvironment.bat x64 VC10

To Setup 32 bit:

setenvironment.bat VC10


-----Original Message-----
From: fdo-internals-bounces at lists.osgeo.org [mailto:fdo-internals-bounces at lists.osgeo.org] On Behalf Of Trevor Wekel
Sent: Friday, December 30, 2011 2:36 PM
To: FDO Internals Mail List
Subject: [fdo-internals] openssl link error build_thirdparty.bat -p=x64 

Hi list,

I grabbed fdo trunk and am getting an error running a 64 bit build_thirdparty.bat build (error below).  Can 32 bit and 64 bit builds be run from the same tree?  Here's what I ran from the command line:

[start shell]
%windir%\system32\cmd.exe /k "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"

[build fdo]
setenvironment.bat VC10
build_thirdparty.bat -p=x64

  Building OpenSSL
        perl util/copy.pl ".\crypto\buildinf.h" "tmp32\buildinf.h"
  Copying: ./crypto/buildinf.h to tmp32/buildinf.h
        perl util/copy.pl ".\crypto\opensslconf.h" "inc32\openssl\opensslconf.h"
  Copying: ./crypto/opensslconf.h to inc32/openssl/opensslconf.h
        lib /nologo /out:lib\Release64\libeay32.lib @C:\Users\twekel\AppData\Local\Temp\nmD6F.tmp
tmp32\x86_64cpuid.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' [C:\fdo \Thirdparty\openssl\openssl.vcxproj]
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\lib.EXE"' : return co de '0x458' [C:\fdo\Thirdparty\openssl\openssl.vcxproj]


More information about the fdo-internals mailing list