[odb-users] Build libodbc-qt on OSX with Qt5.2.1
boris at codesynthesis.com
Thu May 8 22:40:59 EDT 2014
Adnan RIHAN <axel50397 at gmail.com> writes:
> I’m trying to build the Qt’s profile but QtCore isn’t found
> and I can’t make it find Qt with CPP/LDFLAGS. Can anyone tell
> me what should I type or do to make configure find Qt please?
First, do you know where your Qt headers and libraries are
installed? For headers you need to find the directory that
contains the QtCore sub-directory and inside it files such as
QString, QList, etc. Let's say this directory is called
/test/Qt/include/ so you have /test/Qt/include/QtCore/QString.
For libraries, you need to find the directory containing
libQtCore.dylib* or libQtCore.a. Let's say this directory is
called /test/Qt/lib/ so you have /test/Qt/lib/libQtCore.dylib.
Once you determined these directories, run configure like
./configure CPPFLAGS=-I/test/Qt/include LDFLAGS=-L/test/Qt/lib
If this still doesn't work, look into the config.log file
created by configure. It contains more detailed information
on why configure still cannot find Qt. Search for 'QtCore' to
find the relevant part in this file. If you see some error
messages in config.log that you cannot figure out how to
fix, send them to the mailing list and we will try to help.
More information about the odb-users