[PATCH] subsurface-configure.pri: exclude -Wno-maybe-uninitialized on win32

Lubomir I. Ivanov neolit123 at gmail.com
Thu Nov 28 03:02:40 UTC 2013


On 28 November 2013 12:34, Martin Gysel <me at bearsh.org> wrote:
> Am 28.11.2013 11:13, schrieb Lubomir I. Ivanov:
>> From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
>>
>> On native Windows the suggested compiler for Qt4.8 is mingw-gcc-4.4.0,
>> which does not has the -Wno-maybe-uninitialized flag (yet).
>
> Lubomir
>
> can you explain how you build natively on windows? I tried it myself but
> without any success. e.g. qmake was not able to execute pkg-config
> (strangely if I remove the 2> NULL redirector it works, but only for
> pkg-config, xml2-config still fails...)
>

hello,
here are some scripts that i use (attachment).

the qmake.cmd i place in the subsurface source folder and it does a
couple of things.

- it makes the build a "console" one, since i don't want to use DebugView.
- it passes extra libraries to PKGCONFIG that are handled explicitly in qmake.

the pkg-config.cmd is a wrapper and is placed in the same folder where
the renamed _pkg-config.exe is.
it requires the 'tr' tool and fixes a bogus CRLF line that breaks Make badly.

xml2-config i never had and it should not be a requirement, if you
have it perhaps they started adding it to the library package, but
when i got it it was lacking said script (and the same for xslt).
we work around the eventual lack of xml2-config scripts with:

    isEmpty(XML2_CFLAGS)|isEmpty(XML2_LIBS) {
        XML2_CFLAGS = $$system($$PKG_CONFIG --cflags libxml2 2> $$NUL)
        XML2_LIBS = $$system($$PKG_CONFIG --libs libxml2 2> $$NUL)
    }

so basically you could add .pc files for libxml and libxslt.
as a side note i invoke qmake, make from CMD, but technically it uses
'sh' and it is a requirement.

lubomir
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scripts.zip
Type: application/zip
Size: 553 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131128/2a1a70b1/attachment.zip>


More information about the subsurface mailing list