FYI,
This is the same as doing: Start Menu->All Programs->Microsoft Visual Studio 2010->Visual Studio Tools->Visual Studio x64 Cross Tools Command Prompt (2010) If you look at the properties of the shortcut it launches the same bat file. Best regards, Martin From: [email protected] [mailto:[email protected]] On Behalf Of Mihaela Gaspar Sent: Monday, May 13, 2013 1:04 PM To: Joaquim Luis Cc: [email protected] Subject: Re: [gdal-dev] Can't build gdal in x64 Thank you, this worked !! On Mon, May 13, 2013 at 11:29 AM, Joaquim Luis <[email protected]> wrote: Mihael, To build with nmake command line all you need (plus the uncomment of x64) is to run the command from a command shell that has the apropriate variables set to build for 64 bits. For example, this is what I do to set up one 64 bits building environment (it's called from within another batch file) call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64 Joaquim More info on issue: I seem to build from VS but not from command line. I put (to build in Win32) !IFNDEF PLATFORM PLATFORM=WIN32 !ENDIF Modified to !IFNDEF PLATFORM PLATFORM=x64 !ENDIF (to build in x64) - And it worked. But only if I build from inside Visual Studio. I would like to be able to use a bat file (and build alll platform/configurations) The above - while it builds in VS, it will not build from command line (with commands: start /b /wait nmake -f makefile.vc clean start /b /wait nmake.exe / f ma kefile< /span>.vc PLATFORM=x64 start /b /wait nmake.exe /f ma kefile< /span>.vc devinstall PLATFORM=x64 The exact same thing builds in Win32... On Mon, May 13, 2013 at 8:53 AM, Mihaela Gaspar <[email protected]> wrote: I am trying to build GDAL (1.9.2) in x64. In the instructions, I see: # Uncomment the following if you are building for 64-bit windows # (x64). You'll need to have PATH, INCLUDE and LIB set up for 64-bit # compiles. !IF "$(PLATFORM)" == "x64" WIN64=YES !ENDIF And then, lower, # Under win64, symbols for function names lack the underscore prefix # present on win32. Also the STDCALL calling convention is not used. !IFDEF WIN64 !UNDEF STDCALL !ELSE SYM_PREFIX=_ !ENDIF Can't find a PATH, INCLUDE and LIB specific for x64, or anything else that I should do... I can build in Win32. In x64, I get linker errors: LINK : error LNK2001: unresolved external symbol _OGRFeatureStylePuller LINK : error LNK2001: unresolved external symbol _OSRValidate ... gdal19.dll : fatal error LNK1120: 74 unresolved externals Please help. Thank you. -- Mihaela Gaspar Urban Robotics Inc. Software Engineer 33 NW First Avenue, Suite 200 | Portland, OR 97209 c: 971-269-9649 <mailto:[email protected]> [email protected] <http://www.urbanrobotics.net/> http://www.urbanrobotics.net _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev -- Mihaela Gaspar Urban Robotics Inc. Software Engineer 33 NW First Avenue, Suite 200 | Portland, OR 97209 c: 971-269-9649 <mailto:[email protected]> [email protected] <http://www.urbanrobotics.net/> http://www.urbanrobotics.net
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
