[odb-users] Compile libodb-qt
harriev9
harriev9 at gmail.com
Sun Feb 26 10:49:42 EST 2017
Hi,
I am sorry. I must have done something wrong since i cant reproduce the
problem anymore.
I have another problem however trying to compile my code.
I constantly get an error:
/usr/local/include/odb/qt/basic/pgsql/default-mapping.hxx:8:26: fatal
error: QtCore/QString: No such file or directory
I think the include files are correct, during configuration i logged
the include directories:
-- !=!=! dir='/usr/include/qt5'
-- !=!=! dir='/usr/include/qt5/QtWidgets'
-- !=!=! dir='/usr/include/qt5/QtGui'
-- !=!=! dir='/usr/include/qt5/QtCore'
-- !=!=! dir='/usr/lib64/qt5/./mkspecs/linux-g++'
-- !=!=! dir='/usr/include'
-- !=!=! dir='/usr/include/qt5'
-- !=!=! dir='/usr/include/qt5/QtCore'
-- !=!=! dir='/usr/lib64/qt5/./mkspecs/linux-g++'
-- !=!=! dir='/usr/include/qt5'
-- !=!=! dir='/usr/include/qt5/QtGui'
-- !=!=! dir='/usr/include/qt5/QtCore'
-- !=!=! dir='/usr/lib64/qt5/./mkspecs/linux-g++'
-- !=!=! dir='/usr/include'
-- !=!=! dir='/home/harrie/projects/OpenControl/Components/src'
-- !=!=! dir='/home/harrie/projects/OpenControl/Components'
-- !=!=! dir='/home/harrie/projects/OpenControl/Components/src'
-- !=!=!
What can be the problem here?
Harrie
On Mon, 2017-02-20 at 19:23 +0200, Boris Kolpackov wrote:
> 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