On Tue, Jul 05, 2016 at 12:02:20PM +0200, Jean-Marc Lasgouttes wrote: > commit d044986724e98921510c95adecb61d2688b1f598 > Author: Jean-Marc Lasgouttes <[email protected]> > Date: Mon Jul 4 16:22:57 2016 +0200 > > Autoconf : Try to select the correct Qt tools by using the -qt option > > With this change, it is now possible to configure with --enable-qt5 > and have make use "moc -qt=qt5" automatically. > > This is done when the command qtchooser is available nd the desired Qt > version (qt4/qt5) is available. > > This means that it is now possible to have qt4 and qt5 builds easily > on a same linux system.
I get an error now with my autotools build script. However, I do not
claim that my build script is correct. I have a setup that is atypical:
I have a custom-compiled Qt that I only want to use to compile LyX and
when I compile other software I do not want that software to find it (I
want them to use the stable Qt dev libraries I have installed). Because
of this atypical setup, I'm guessing I did something wrong that I got
away with before. In any case, here are my findings:
The following works before this commit:
export PKG_CONFIG_PATH="/usr/BUILD/BuildQt5-dev/qtbase/lib/pkgconfig/"
export PATH="/usr/BUILD/BuildQt5-dev/qtbase/bin:${PATH}"
./autogen.sh && ./configure --enable-qt5 && make
Starting with this commit, the error I get is the following:
GEN moc_Compare.cpp
Unknown options: q, t, =, q, t, 5.
Makefile:3362: recipe for target 'moc_Compare.cpp' failed
make[2]: *** [moc_Compare.cpp] Error 1
The following command also does not work with this commit:
./autogen.sh && ./configure --enable-qt5 && make
It gives the following error:
configure: error: cannot compile a simple Qt executable. Check you have
the right $QTDIR.
But something I don't understand (and I provide in case it is a clue to
what problem I have in my setup) is that the following does lead to a
complete build:
( export PKG_CONFIG_PATH="/usr/BUILD/BuildQt5-dev/qtbase/lib/pkgconfig/"
export PATH="/usr/BUILD/BuildQt5-dev/qtbase/bin:${PATH}"
./autogen.sh && ./configure --enable-qt5 ) && make
LyX runs fine and in Help > About I get: Qt Version (run-time): 5.6.2 Qt
Version (compile-time): 5.6.2
Scott
signature.asc
Description: PGP signature
