[gdal-dev] how to build GDAL180 64-bit on VS2008
Frank Warmerdam
warmerdam at pobox.com
Tue Jul 26 22:26:19 EDT 2011
2011/7/26 =CB=CE=D0=A1=E8=B4 <talent_sxl at 126.com>:
> Dear sir,
> I've been trying to build GDAL180 64-bit on VS2008 but there are always 1=
63
> errors and 2052 warnings. I uncomment WIN64=3DYES, and try all the ways f=
ound
> on internet, such as commenting ODBC, deleting '@XX' in line 47-50 of
> makefile.vc, setting up VC++ directories for platform 'x64'. However, err=
ors
> appear just as before.
> A buildlog is attached for your reference.
> Creating temporary file
> "C:\Users\ADMINI~1\AppData\Local\Temp\BAT00000146001360.bat" with content=
s
> [
> @echo off
> cd d:\gdal\gdal180\gdal-1.8.0\ && nmake -f makefile.vc MSVC_VER=3D1400 DE=
BUG=3D1
> clean && nmake -f makefile.vc MSVC_VER=3D1400 DEBUG=3D1
Hi,
I gather you are trying to use the project file? I had a number of
problems with
it. One was that I had to change MSVC_VER to be 1500 or else the
old VB6 stuff would get built in and fail due to missing libraries in
VS2008 express. If you feel a compelling need to use the project file,
edit it and fix MSVC_VER.
However, I would suggest instead to run from a command window instead.
I'm not sure if this is your only problem, but it is at least one of your
problems.
It looks like you are also trying to build with HDF4 support. You might wa=
nt
to disable that first to see if you can get a build and then add it in late=
r
if you need it.
Good luck,
> if errorlevel 1 goto VCReportError
> goto VCEnd
> :VCReportError
> echo Project : error PRJ0019: A tool returned an error code from "Perform=
ing
> Makefile project actions"
> exit 1
> :VCEnd
> ]
> Creating command line
> "C:\Users\ADMINI~1\AppData\Local\Temp\BAT00000146001360.bat"
> LINK : error LNK2001: unresolved external symbol _vbSafeArrayToPtr at 16
> LINK : error LNK2001: unresolved external symbol
> _OCTNewCoordinateTransformation at 8
> LINK : error LNK2001: unresolved external symbol _GDALDitherRGB2PCT at 28
> LINK : error LNK2001: unresolved external symbol _GDALComputeMedianCutPCT=
@32
> LINK : error LNK2001: unresolved external symbol _GDALReprojectImage at 48
> LINK : error LNK2001: unresolved external symbol _GDALSimpleImageWarp at 36
> LINK : error LNK2001: unresolved external symbol _OGRRegisterAll
> LINK : error LNK2001: unresolved external symbol _OGR_G_GetPointCount
> LINK : error LNK2001: unresolved external symbol _OPTGetProjectionMethods
> LINK : error LNK2001: unresolved external symbol _OSRValidate
> LINK : error LNK2001: unresolved external symbol _OGRFeatureStylePuller
> EHapi.obj : error LNK2019: unresolved external symbol __imp_Vinitialize
> referenced in function EHopen
> EHapi.obj : error LNK2019: unresolved external symbol __imp_SDfindattr
> referenced in function EHopen
> GDapi.obj : error LNK2001: unresolved external symbol __imp_SDfindattr
> SWapi.obj : error LNK2001: unresolved external symbol __imp_SDfindattr
> EHapi.obj : error LNK2019: unresolved external symbol __imp_Hopen referen=
ced
> in function EHopen
>
> ...
>
> Would you please help me with this problem?
> Thank you!
> Xiaolu Song
> 2011-07-26
> --
> Xiaolu Song
> Center for Earth Observation and Digital Earth Chinese Academy of Science=
s
> No.9 Dengzhuang South Road, Haidian District, Beijing 100094, China
> Tel: +86-010-82178188 +86-18610335605
> Email:talent_sxl at 126.com
> =D6=D0=B9=FA=BF=C6=D1=A7=D4=BA=B6=D4=B5=D8=B9=DB=B2=E2=D3=EB=CA=FD=D7=D6=
=B5=D8=C7=F2=BF=C6=D1=A7=D6=D0=D0=C4
> =B1=B1=BE=A9=CA=D0=BA=A3=B5=ED=C7=F8=B5=CB=D7=AF=C4=CF=C2=B79=BA=C5
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--=20
---------------------------------------+-----------------------------------=
---
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.c=
om
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Software Developer
More information about the gdal-dev
mailing list