[Interest] qmake adding unwanted lib flag to makefile

Thiago Macieira thiago.macieira at intel.com
Wed Nov 28 20:33:41 CET 2012


On quarta-feira, 28 de novembro de 2012 14.57.22, Alexander Görtz wrote:
> I for now "solved" he problem with a quiet dirty workaround.
> I added the line
> QMAKE_LIBDIR_FLAGS = -L/usr/local/lib
> to my pro file, which in turn results in the Makefiles line:
> LIBS          = $(SUBLIBS)  -L/usr/local/lib -L/usr/lib64 -L/usr/local/lib -
> lQtGui -lQtCore -lpthread
> 
> which is not really nice but at least works.
> If anyone has another cleaner solution im definitly happy to see it here.

There isn't. Having an older version of a library in the same dir as Qt 
(/usr/lib64) will always be a problem with qmake.

In Qt 5, it will simply not add -L options to the default library dirs, but 
that's just a workaround for a bigger problem.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20121129/cbac5858/attachment.sig>


More information about the Interest mailing list