|
From: | Mark Brand |
Subject: | Re: [Mingw-cross-env-list] Undefined references when using QtNetwork |
Date: | Tue, 14 Aug 2012 22:35:42 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Firefox/14.0.1 SeaMonkey/2.11 |
René Berber wrote:
Mark Brand wrote: [snip]Because we are using static linking, it's necessary to link explicitly to the libraries that QtNetwork depends on. You can see these in the .prl files (for qmake).---^^^ You meant .pro files, not .prl.
Hi René,No, I really and truly meant .prl files. These are to qmake what the .pc files are to pkg-config. For example, <mxedir>/usr/i686-pc-mingw32/lib/QtNetwork.prl contains the line:
QMAKE_PRL_LIBS = -lQtCore -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz -lz -lssl -lcrypto -lws2_32 -lgdi32 -lcrypt32 -lz
This information is used by qmake when generating makefiles.Qt's .prl files themselves are generated by qmake, invoked from the Qt configure script. The .pro files are of course part of the input for this.
Mark
[Prev in Thread] | Current Thread | [Next in Thread] |