mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Qt: pkg-config files?


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] Qt: pkg-config files?
Date: Thu, 06 Jan 2011 22:58:18 +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

Hi Martin,

Thanks for the explanation! I don't know much about the Qt build system
except that it looks scary to me :)

I currently use a workaround to extract the necessary information from
the .prl files. The following works for the QtOpenGL library with a
configure script that uses pkg-config:

MCEPFX=/path/to/mingw-cross-env/usr/i686-pc-mingw32

QTOPENGLLIBS="`grep QMAKE_PRL_LIBS "$MCEPFX"/lib/QtOpenGL.prl | sed -e
's/QMAKE_PRL_LIBS = //'`"

./configure --host=i686-pc-mingw32 \
   libqtopengl_CFLAGS="-I$MCEPFX/include/Qt -I$MCEPFX/include/QtCore
-I$MCEPFX/include/QtGui -I$MCEPFX/include/QtOpenGL" \
   libqtopengl_LIBS="-L$MCEPFX/lib -mwindows -lQtOpenGL $QTOPENGLLIBS"

Not nice, but it works for now.


What's wrong with just using qmake? But the question of pkg-config files for Qt has come up before, so I decided to give it a try. This is the result:

http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/530c8e01cf62

This produces .pc files that look pretty good. Would you mind trying out some? If there are no problems, I would like to submit these changes upstream.

Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]