Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#2064 closed defect (fixed)

Building with Visual C++ 2008 Express Edition

Reported by: Mateusz Łoskot Owned by: Mateusz Łoskot
Priority: high Milestone: 1.5.0
Component: ConfigBuild Version: svn-trunk
Severity: normal Keywords: visual c++ vs2008 express
Cc: warmerdam, Daniel Morissette

Description

Current version of GDAL from SVN does not compile cleanly using Visual C++ compiler from the Visual Studio 2008 Express Editions bundle.

There is a few issues:

  • missing ATL required by VC6 layer
  • redefinition of vsnprintf. VC++2008 does include proper definition vsnprintf, without underscore)
  • deprecated and unavailable winres.h (can be safely replaced with windows.h and winver.h

Attachments (3)

gdal-vs2008ee.patch (2.7 KB ) - added by Mateusz Łoskot 16 years ago.
Patch fixing GDAL core for Visual C++ 2008 Express Edition (compiler version 9.0). Does not include fixes for bindings, just core and default/internal drivers.
gdal-formats.txt (2.8 KB ) - added by Mateusz Łoskot 16 years ago.
List of GDAL formats built-in using Visual C++ 2008 (9.0)
ogr-formats.txt (579 bytes ) - added by Mateusz Łoskot 16 years ago.
List of OGR formats built-in using Visual C++ 2008 (9.0)

Download all attachments as: .zip

Change History (8)

by Mateusz Łoskot, 16 years ago

Attachment: gdal-vs2008ee.patch added

Patch fixing GDAL core for Visual C++ 2008 Express Edition (compiler version 9.0). Does not include fixes for bindings, just core and default/internal drivers.

comment:1 by warmerdam, 16 years ago

Cc: warmerdam added
Component: defaultConfigBuild
Milestone: 1.5.0
Owner: changed from warmerdam to Mateusz Łoskot
Priority: normalhigh

Mateusz,

The patch looks ok, though I hope some day to reduce the complexity of VB6 related stuff.

Go ahead and apply.

comment:2 by Mateusz Łoskot, 16 years ago

Status: newassigned

Frank,

I will run a few more tests after the Beta 2 is out, and will try to build more complete set of drivers and then apply bigger patch in one shot.

A few comments to VB6 support from the #gdal chat:

[14:15]  <mloskot> FrankW:  There is one issue with vs2008 patch
[14:15]  <mloskot> VB6 layer will not be built for all VS2008 editions, not only for Express
[14:15]  <FrankW> right, that's fine.
[14:15]  <mloskot> good

comment:3 by Daniel Morissette, 16 years ago

Cc: Daniel Morissette added

by Mateusz Łoskot, 16 years ago

Attachment: gdal-formats.txt added

List of GDAL formats built-in using Visual C++ 2008 (9.0)

by Mateusz Łoskot, 16 years ago

Attachment: ogr-formats.txt added

List of OGR formats built-in using Visual C++ 2008 (9.0)

comment:4 by Mateusz Łoskot, 16 years ago

Resolution: fixed
Status: assignedclosed

The VC++ 2008 patch has been updated and applied to SVN trunk (r13360).

There is list of drivers built-in using VC++2008 in the attached gdal-formats.txt and ogr-formats.txt files. The build was made using:

  • Xerces 2.8.0
  • Expat 2.0.1
  • libcurl 7.17.1
  • GEOS 3.0.0rc5
  • PROJ.4 4.5.0

comment:5 by Mateusz Łoskot, 16 years ago

One additional note, I also enabled PostgreSQL support using 8.2.5 binaries.

Also, following dependencies were built from sources using Visual C++ 2008: Expat, libcurl, GEOS, PROJ.4. Xerces-C 2.8.0 was used from official binaries dedicated for Visual C++ 2006 (8.0).

Note: See TracTickets for help on using tickets.