[gnome-db] ODBC provider on MinGW/MSYS



In order to compile the ODBC provider on MinGW/MSYS the following changes were needed:

- in configure changed the line:
                if test -f $d/$lib/w32api/libodbc32.a -a -f $d/include/w32api/sql.h
  to:
                if test -f $d/$lib/libodbc32.a -a -f $d/include/sql.h
  reason: the Windows ODBC stuff doesn't live under a w32api on MinGW
  the cleanest solution would be to patch configure.in and after the block:
                if test -f $d/$lib/w32api/libodbc32.a -a -f $d/include/w32api/sql.h
                then
                        AC_MSG_RESULT(found ODBC32 in $d)
                        odbclib="-lodbc32"
                        odbcdir=$d
                        break
                fi
  add the block:
                if test -f $d/$lib/libodbc32.a -a -f $d/include/sql.h
                then
                        AC_MSG_RESULT(found ODBC32 in $d)
                        odbclib="-lodbc32"
                        odbcdir=$d
                        break
                fi

- in providers/odbc/gda-odbc.h replace the line:
                #if defined(__CYGWIN__)
  with:
                defined(G_OS_WIN32)

- in providers/odbc/gda-odbc-provider.h replace the line:
                #ifdef __CYGWIN__
  with:
                defined(G_OS_WIN32)

Can you please implement these changes?

I'm sure more reports like this will follow because I also have problems compiling the providers for MySQL, PostgreSQL and Oracle.

Thanks
    Brecht



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]