Opened 10 years ago

Closed 7 weeks ago

#72 closed defect (migrated)

OsiSymSolverInterface::readGMPL does not support SQL

Reported by: xypron Owned by: mjs
Priority: major Milestone:
Component: OsiGlpk Version: 0.96.1
Keywords: Cc:

Description

GLPK includes support to access SQL tables via the table statement.

Unfortunately the configure.ac supplied in Thirdparty/GLPK does not allow to enable ODBC.

Please add the lines below to Thirdparty/GLPK/configure.ac and copy Thirdparty/GLPK/glpk/config.h.in to Thirdparty/GLPK.

This will add optional configure parameters: --configure-ODBC=yes|unix --configure-dl=yes which will allow to use ODBC with package iODBC or unixODBC.

Best regards

Xypron

########################################################################### # SQL # ###########################################################################

AC_CONFIG_HEADERS([config.h])

AC_ARG_ENABLE(dl, AC_HELP_STRING([--enable-dl],

[enable shared library support default=no?]), [case $enableval in

yes | ltdl | dlfcn | no) ;; *) AC_MSG_ERROR([invalid value `$enableval' for --enable-dl]);; esac],

[enable_dl=no])

AC_ARG_ENABLE(odbc, AC_HELP_STRING([--enable-odbc],

[enable MathProg? ODBC support default=no?]), [case $enableval in

yes | unix | no) ;; *) AC_MSG_ERROR([invalid value `$enableval' for --enable-odbc]);; esac],

[enable_odbc=no])

AC_MSG_CHECKING([whether to enable shared library support]) if test "$enable_dl" = "yes"; then

AC_MSG_RESULT([ltdl]) AC_DEFINE([HAVE_LTDL], [1]) LIBS="-lltdl $LIBS"

elif test "$enable_dl" = "ltdl"; then

AC_MSG_RESULT([ltdl]) AC_DEFINE([HAVE_LTDL], [1]) LIBS="-lltdl $LIBS"

elif test "$enable_dl" = "dlfcn"; then

AC_MSG_RESULT([dlfcn]) AC_DEFINE([HAVE_DLFCN], [1])

else

AC_MSG_RESULT([no])

fi

AC_MSG_CHECKING([whether to enable MathProg? ODBC support]) if test "$enable_odbc" = "yes"; then

if test "$enable_dl" = "no"; then

AC_MSG_ERROR([--enable-odbc requires --enable-dl])

fi AC_MSG_RESULT([yes]) AC_DEFINE([ODBC_DLNAME], libiodbc.so?)

elif test "$enable_odbc" = "unix"; then

if test "$enable_dl" = "no"; then

AC_MSG_ERROR([--enable-odbc requires --enable-dl])

fi AC_MSG_RESULT([unix]) AC_DEFINE([ODBC_DLNAME], libodbc.so?)

else

AC_MSG_RESULT([no])

fi

Attachments (1)

configure.ac (5.2 KB) - added by xypron 10 years ago.
coin-Osi/ThirdParty/Glpk?/configure.ac

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by xypron

coin-Osi/ThirdParty/Glpk?/configure.ac

comment:1 Changed 10 years ago by stefan

Hi,

this ticket should have gone into the BuildTools project, here it is easily overlooked.

I made some additions to the COIN-OR build system for Glpk - currently only in trunk: https://projects.coin-or.org/BuildTools/changeset/1321

The database stuff is not tested, esp. Windows might not work.

Stefan

comment:2 Changed 10 years ago by stefan

also now in ThirdParty/Glpk?/stable/1.6

comment:3 Changed 7 weeks ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

This ticket has been migrated to GitHub and will be resolved there: https://github.com/coin-or/Osi/issues/72

Note: See TracTickets for help on using tickets.