On Fri, Feb 26, 2016 at 02:45:29PM -0600, Bruce Dubbs wrote:
> Ken Moffat wrote:
> >
> >Am I right that this PATH setting is broken for building qt4 in /usr ?
>
> I don't build in /usr so I cannot verify for sure. Note that there is a
> 'qmake' for both qt4 and qt5, so the first in the path will be used. In
> some cases there is an explict qmake-qt4 and qmake-qt5. Then a symlink or
> user alias can resolve properly.
>
> In the above case, I suppose that it should be
>
> PATH=$PATH:$QT4PREFIX/bin/qt4
>
> where $QT4PREFIX is /usr. An alternative would be just to use
>
> PATH=$PATH:/usr/bin/qt4
>
> I've already tagged qt4 for 7.9, but feel free to update the note about
> installing in /usr.
>
> -- Bruce
>
For my own script, I used
QTDIR=$QT4PREFIX
if [ "$QTDIR" = "/usr" ]; then
PATH=$PATH:/usr/bin/qt4
else
PATH=$PATH:$QT4PREFIX/bin
fi
export QTDIR PATH
That will not fit cleanly into the book (I've seen inline if tests
in Makefiles, they are excessively ugly). If I update the book I
will do two alternative paragraphs with alternative commands, like
we already do elsewhere on that page.
But if I don't manage to build qt4 on a system without qt5, I will
not update this minor point.
ĸen
--
This email was written using 100% recycled letters.
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page