1. Скачал gdal 1.9.2
2. В MSVC 2010 запустил makegdal19.vcxproj
3. В Solution Configuration - Debug поставил x64
4. Вычитал nmake. Изменил переменную на MSVC_VER=1600 и поставил WIN64=YES
5. Включил пару дополнительных модулей в nmake.
6. Build
Эффекты следующие
1. выпрыгивает сообщение "unable to start program D:\...\gdal19.dll"
2. в консоли
Код: Выделить всё
...
1> lib /nologo /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib
1>nitf_gcprpc.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
1>cpl_recode_iconv.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
1> link /nologo /dll /INCLUDE:OGRFeatureStylePuller /INCLUDE:OSRValidate /INCLUDE:OPTGetProjectionMethods /INCLUDE:OGR_G_GetPointCount /INCLUDE:OGRRegisterAll /INCLUDE:GDALSimpleImageWarp /INCLUDE:GDALReprojectImage /INCLUDE:GDALComputeMedianCutPCT /INCLUDE:GDALDitherRGB2PCT /INCLUDE:OCTNewCoordinateTransformation port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib odbc32.lib odbccp32.lib user32.lib gcore\Version.res /out:gdal19.dll /implib:gdal_i.lib
1>MSVCRT.lib(ti_inst.obj) : fatal error LNK1112:[b] module machine type 'x64' conflicts with target machine type 'X86'[/b]
1>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64\link.EXE"' : return code '0x458'
1> Stop.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "cd E:\work\programs\GDAL\gdal-1.9.2\ && nmake -f makefile.vc && nmake -f makefile.vc install" exited with code 2.
1>
1>Build FAILED.
1. Он (GDAL) под 64 бита вообще собирается, если да, то что я упустил из виду ? Может что-то в nmake еще подправить ?
2. такой lib по объему это нормально ? Можно его как-то уменьшить ?
Спасибо