Opened 23 months ago

Closed 14 months ago

Last modified 14 months ago

#6000 closed defect (fixed)

Native windows ODBC support for mingw64 compile

Reported by: robe Owned by: warmerdam
Priority: normal Milestone: 2.0.3
Component: ConfigBuild Version: unspecified
Severity: normal Keywords:
Cc:

Description

As mentioned in my blog entry -

http://www.bostongis.com/blog/index.php?/archives/237-Building-GDAL-under-mingw-w64-with-native-windows-ODBC-support.html

there is no current way (at least not one I could find) that allows building ODBC with native windows ODBC under mingw64 without hacking the configure script. I'm working on a patch to do that and think I have it almost ready to commit once I've gotten it working with mingw64-w32. The way it works is that if --with-odbc is selected and it finds the odbc windows bindings (but not the others), it will use the odbc windows bindings. So it's not so specific to mingw64.

Attachments (2)

gdal20-odbc-configure.in.patch (2.2 KB) - added by robe 14 months ago.
gdal21-odbc-configure.in.patch (2.2 KB) - added by robe 14 months ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 21 months ago by Even Rouault

Any update on this ?

comment:2 Changed 14 months ago by robe

Attached is a patch for 2.0 and 2.1 branch. I also tested on Debian 7 that has UnixODBC to make sure it didn't clubber configure on that.

This I tested with mingw64-w64 and mingw64-w32 chains.

Changed 14 months ago by robe

Changed 14 months ago by robe

comment:3 Changed 14 months ago by Even Rouault

I've slightly modified your patch. Please check it still works for you. If so, I'll backport it

trunk r33619 "configure: add support for ODBC autodetection with mingw64 (derived from patch by Regina Obe, #6000)"

comment:4 Changed 14 months ago by robe

Yap still works on both my 64bit and 32-bit builds.

comment:5 Changed 14 months ago by Even Rouault

Component: defaultConfigBuild
Milestone: 2.1.02.0.3
Resolution: fixed
Status: newclosed

Applied in branches/2.0 r33635

Version 0, edited 14 months ago by Even Rouault (next)
Note: See TracTickets for help on using tickets.