[mythtv] [mythtv-commits] Ticket #5177: qt4 link libdir order incorrect
awithers at anduin.com
Wed Apr 30 21:16:13 UTC 2008
>> when building with qt4 qmake, the makefiles generated have -L/usr/lib
>> before all other -L directives.
Qt 4 inserts QMAKE_LIBDIR_QT and QMAKE_INCDIR_QT early into the build/link
flags. In Qt 4 these often end up pointing to /usr/lib and /usr/include.
This causes builds to include/link against older versions if PREFIX is /usr
(or an existing version is installed there).
Using QMAKE_LIBDIR can get things early enough but depends a bit on the way
qmake currently chooses to order things.
The more I've looked at this the more I'm inclined to throw something in
config.mak to avoid this problem (rather than modify more .pro files).
This would probably just be:
QMAKE_LIBDIR_QT -= /usr/lib
QMAKE_INCDIR_QT isn't as large a problem as "make install" in mythtv/ is
required before includes from mythtv/ are required (but those packaging on
unclean systems should note this).
Another note, Fedora alters linux.conf so QMAKE_LIBDIR_QT is not set to
/usr/lib (so if you don't see the issue, something to look for).
More information about the mythtv-dev