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

Young, Jason jason.young at wyle.com
Thu Sep 6 09:12:37 EDT 2012


Boris,

Thank you for your response.

Option number 1 worked for me, though I had tried it yesterday
before I sent in the help request.  I did reboot after going home
yesterday, so I'm thinking that the reboot may have somehow
made a difference.  Anyway, I appreciate your response and
I look forward to getting started with odb.

Thanks,
Jason Young

jason.young at wyle.com

________________________________________
From: Boris Kolpackov [boris at codesynthesis.com]
Sent: Thursday, September 06, 2012 5:07 AM
To: Young, Jason
Cc: odb-users at codesynthesis.com
Subject: Re: [odb-users] mingw - configure error libodb is not found

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