|
From: | Mark Brand |
Subject: | Re: [Mingw-cross-env-list] Qt: pkg-config files? |
Date: | Wed, 05 Jan 2011 15:49:57 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7 |
On 01/05/2011 01:51 PM, Martin Lambers wrote:
Hi all, Qt installs pkg-config files on GNU/Linux systems, but apparently not on other systems such as Mingw. Would it be possible to force installation of the pkg-config files in Mingw-cross-env? The required information seems to be already available in the usr/i686-pc-mingw32/lib/Qt*.prl files, so maybe there's a simple switch that forces installation of the pkg-config files? Martin
Hi Martin, Unfortunately, it's more complicated than setting a switch.Qmake's unix makefile generator has the ability to write pkg-config files. However, the win32 generator is used for building Qt for Windows, including when cross-building on unix, and this generator does not make pkg-config files. See qmake/generators/ in the Qt source tree.
Arguably, the unix makefile generator should be used to generate makefiles when cross-building, but in practice the win32 makefile generator is a better fit and its makefiles intended for mingw32-make or msys-make work just fine with gmake on unix.
If you are so inclined, you might try porting the pkg-config writing feature to the win32 generator. It probably makes more sense than making the unix generator suitable for cross-building for mingw on unix.
Mark
[Prev in Thread] | Current Thread | [Next in Thread] |