|
From: | Mark Brand |
Subject: | Re: [Mingw-cross-env-list] Qt with Cmake |
Date: | Tue, 23 Nov 2010 10:00:53 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.1.6 Thunderbird/3.1.6 |
The only odd thing that could probably be nicer on the mingw_cross side, is /opt/mingw/usr/i686-pc-mingw32/mkspecs/qconfig.pri. Cmake is looking for the keyword "static" in the CONFIG variable to decide whether to link dynamically or statically. I'm not sure if this *should* be there or not - there is nothing about that keyword on http://doc.trolltech.com/4.7/qmake-variable-reference.html#config, so this might be a dodgy check in the FindQt4.cmake module.
Hi Daniel,If you look a little further down the page you'll find this description of the "static" option:
The target is a static library (lib only). The proper compiler flags will automatically be added to the project.
So I don't think "static" should be added to CONFIG in qconfig.pri. It's meant to be used when you are building a static library.
Anyway, it's not clear to me why cmake would need to be told that the Qt libraries are static. It just needs to know the dependencies of the libraries used, and these should be in the .prl files. Obviously the .prl files will differ depending whether the libraries they describe are static or shared.
Mark
[Prev in Thread] | Current Thread | [Next in Thread] |