[odb-users] mingw - configure error libodb is not found

Boris Kolpackov boris at codesynthesis.com
Thu Sep 6 06:07:28 EDT 2012


Hi Jason,

Young, Jason <jason.young at wyle.com> writes:

> I am attempting to compile the libodb-mysql-2.0.1 on Windows 7 using 
> msys to compile this library for mingw. I was able to successfully 
> compile libodb, and it installed the following into the /usr/local/lib
> directory:
>
> [...]
> 
> I cannot seem to get the ./configure to find the libodb.

I can see two reasons why configure would be unable to find libodb:

1. MinGW for some reason does not search in /usr/local by default. To test
   this, simply add -I/usr/local/include to CPPFLAGS and -L/usr/local/lib
   to LDFLAGS, for example:

   ./configure CPPFLAGS="-I/c/tools/mysql/include -I/usr/local/include" \
LDFLAGS="-L/c/tools/mysql/lib -L/usr/local/lib"


2. The other possibility is that the libodb library that you have built
   is somehow broken (this happens on MinGW all the time, especially
   when DLLs are involved).

   To figure out if that's the case, the best method is to open the
   config.log file and look at the actual compiler/linker diagnostics
   (search for the 'checking for libodb' string to find the relevant
   part). Note that there could be multiple tests and it is ok for
   some of them to fail.

   Also, if you can post the relevant fragment from config.log (or
   send the whole file), then I can take a look.

Boris



More information about the odb-users mailing list