[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Mingw-cross-env-list] Problem with Qt pkg-config files in stable br
From: |
Stefan Löffler |
Subject: |
Re: [Mingw-cross-env-list] Problem with Qt pkg-config files in stable branch |
Date: |
Thu, 19 Apr 2012 10:55:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
Hi,
On 2012-04-19 10:43, Martin Lambers wrote:
> I recently updated from the 2.22 release candidate version (hg) to the
> current stable branch (git), and ran into a problem with the pkg-config
> files installed by Qt.
>
> The pkg-config files contains library names like '-lQtOpenGL4',
> '-lQtGui4', and '-lQtCore4', but the installed libraries do not have
> the '4' appended, therefore the linker cannot find them.
Yes, this seems to be a problem with the new Qt 4.8.1.
See also https://github.com/mxe/mxe/issues/18 and
https://github.com/mxe/mxe/pull/19 for a proposed workaround.
Basically, it should be sufficient to `cd
usr/i686-pc-mingw32/lib/pkgconfig/` and run
sed -E -i -e 's/^Libs:(.+)4(.*)/Libs:\1\2/' Qt*.pc qtmain.pc
HTH
Stefan