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] [call for review] Qt 4.7-beta1


From: Tony Theodore
Subject: Re: [Mingw-cross-env-list] [call for review] Qt 4.7-beta1
Date: Thu, 20 May 2010 02:59:26 +1000

On 19 May 2010 05:02, Mark Brand <address@hidden> wrote:
>  Hi,
>
> Qt 4.7 brings some welcome changes for mingw-cross-env. A few patches have
> moved upstream, but the nicest change is that Qt can be cross-built now all
> at once, without a separate "native" build. The changes that make this
> possible also allow the removal of many ugly hacks from the .mk file.
>
> The attached files build fine for me.
>
> It would be great if some people here can try this out or even review some
> parts. It would be particularly nice to hear about results on some of the
> more "exotic" systems like *bsd, MACX and Solaris.
>
> With a bit of luck we should be ready to fully support Qt 4.7 once it's
> released.

Nice work, it certainly is a much cleaner makefile, and I like the
out-of-tree build.

A small patch is needed to build on OSX and Open Solaris (attached)
that disables a check for rpath-link. This is only used in the native
moc build, and I *think* it's more relevant when cross-compiling to
embedded devices [1]. It doesn't have any affect on Ubuntu.

The only other change is to forcibly disable Cocoa (native OSX gui). I
think some of the flags (QT_MAC_USE_COCOA) are set early during
configure and don't check for cross-compile. Later, many "ifdefs" only
check for this and try to use OSX headers/libs.

--- ./qt.mk     2010-05-19 23:22:01.000000000 +1000
+++ src/qt.mk   2010-05-20 01:12:50.000000000 +1000
@@ -29,6 +29,8 @@
     $(SED) -i 's,pg_config,$(TARGET)-pg_config,g;' '$(1)/configure'
     # Use g++ if host is solaris
     $(SED) -i 's,PLATFORM=solaris-cc$$,PLATFORM=solaris-g++,' '$(1)/configure'
+    # Avoid using Cocoa
+    $(SED) -i 's,CFG_MAC_COCOA=yes,CFG_MAC_COCOA=no,' '$(1)/configure'

     # Make qmake use the right ar for MinGW target
     # MingwMakefileGenerator::writeObjectsPart()

The test program and most of the demos work too.

It also looks like webkit is also being successfully cross-compiled in
places [2], and may be ready for 4.7.

Cheers,

Tony


[1] 
http://doc.qt.nokia.com/4.7-snapshot/qt-embedded-pointer.html#specifying-a-driver
[2] http://article.gmane.org/gmane.comp.gnu.mingw.w64.general/927/

Attachment: qt-2-rpath.patch
Description: Binary data


reply via email to

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