[Qt-interest] using prl file with qmake

Lorenzo Bettini lorenzo.bettini at gmail.com
Sun Aug 15 18:04:19 CEST 2010


Hi

as far as I understand from qmake documentation, 
http://doc.qt.nokia.com/4.6/qmake-environment-reference.html#libdepend, 
prl files can keep track of additional static libraries to be linked in 
the application when linking to static libraries.

Thus, in my library project I added

# save information about the library:
CONFIG += create_prl

and the .prl file actually gets created; the information which relates 
to other static libraries used is the following I guess

QMAKE_PRL_LIBS = -LC:\Lore\Boost\lib -lboost_regex-mgw44-mt-1_43

which correctly says that my library (in this case 
libsource-highlight.a) uses the boost library.

Now, in an application that uses libsource-highlight.a I added

CONFIG += link_prl

and I put

LIBS += <other stuff> -lsource-highlight

however, the directives

-LC:\Lore\Boost\lib -lboost_regex-mgw44-mt-1_43

are not automatically added by qmake, thus, I don't understand how to 
use prl files... am I doing something wrong?

Please, note that libsource-highlight.a is correctly found (I put the 
right library path), thus, why the corresponding .prl file is not 
handled by qmake?

many thanks in advance
	Lorenzo



More information about the Qt-interest-old mailing list