|
From: | Mark Brand |
Subject: | Re: [Mingw-cross-env-list] qmake's pkg-config support needs to use mingw's version |
Date: | Sun, 10 Oct 2010 11:23:50 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100914 SUSE/3.1.4 Thunderbird/3.1.4 |
The mkspecs/features/link_pkgconfig.prf file needs to use 'i686-pc-mingw32-pkg-config' instead of just 'pkg-config', otherwise the regular, non-mingw version is used:# handle pkg-config files for(PKGCONFIG_LIB, $$list($$unique(PKGCONFIG))) {QMAKE_CXXFLAGS += $$system(i686-pc-mingw32-pkg-config --cflags $$PKGCONFIG_LIB) QMAKE_CFLAGS += $$system(i686-pc-mingw32-pkg-config --cflags $$PKGCONFIG_LIB)LIBS += $$system(i686-pc-mingw32-pkg-config --libs $$PKGCONFIG_LIB) } This is needed for the following feature of qmake project files: CONFIG += link_pkgconfig PKGCONFIG += sdl SDL_mixer etc, etc
Hi Nikos,I think you must be the first one to try to use link_pkgconfig in mingw-cross-env. This should be fixed by :
http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/1d63c62bd781 I took advantage of the PKG_CONFIG definition already in qmake.conf. My simple test for link_pkgconfig works. Can you please test this as well? Mark
[Prev in Thread] | Current Thread | [Next in Thread] |