Opened 15 years ago

Closed 14 years ago

#3081 closed defect (invalid)

ogr2ogr mysql driver not installed after compiled with mysql options

Reported by: hqy Owned by: warmerdam
Priority: normal Milestone:
Component: Utilities Version: 1.6.1
Severity: normal Keywords: ogr2ogr mysql
Cc:

Description

Hello,

Today I compiled GDAL with ms visual studio 2005, and I change the nmake.opt with the following options:

" # MySQL Libraries # NOTE: Need /MT instead of /MD, also enable /EHsc switch. MYSQL_INC_DIR = C:\MySQLServer4.1\include MYSQL_LIB = C:\MySQLServer4.1\lib\opt\libmysql.lib advapi32.lib " please note that I did not find advapi32.lib in the directory of mysql server, so I copy one from ms visual studio to the directory of mysql server. the compiling process run smoothly, however, when it finished, I run ogr2ogr to translate one s57 file into mysql, the console response that ogr2ogr can not find mysql driver.

Do you know whether I miss something before compiling the GDAL? Thanks in advance.

Regards,

HQY

Change History (1)

comment:1 by Even Rouault, 14 years ago

Resolution: invalid
Status: newclosed

If you've changed your nmake.opt after having compiled once the GDAL tree, you need to do a clean and rebuild so that the new configured driver is properly registered. Or in that instance, just 'touching' ogr/ogrsf_frmts/generic/ogrregisterall.cpp might be sufficient.

Note: See TracTickets for help on using tickets.