[odb-users] Compile libodb-qt

Boris Kolpackov boris at codesynthesis.com
Mon Feb 20 12:23:37 EST 2017


Hi,

harriev9 <harriev9 at gmail.com> writes:

> First I added the -fPIC option, but this did not help:
> 
> ./configure CXXFLAGS=-fPIC

Yes, Qt now required that. We will look into adding this automatically
for the next release.


> There was another problem. Qt uses #include <QtCore/QString> in its
> headers and so also /usr/include/qt5 was needed in the include path.

This path should be tried automatically.


> At the end i found out that i had to use:
> 
> ./configure CXXFLAGS=-fPIC CPPFLAGS=-I/usr/include/qt5 LDFLAGS=-
> L/usr/lib64/
> 
> Is this the correct way to solve the problem?

That depends on what the problem was. Can you look into config.log
to see which tests were tried and why they are failing?

Boris



More information about the odb-users mailing list