[Kde-bindings] smoke qt empty builds on macosx

Michael Lawrence lawrence.michael at gene.com
Mon May 3 12:53:31 UTC 2010


Hi,

Thanks for passing along this interesting fix. I've also encountered issues
with the Mac, in particular the framework build. I think the ideal solution
would be to make the generator framework-aware, i.e., it should support a -F
command-line option. I've modified my copy of the generator to correctly
search the default framework directory (I think it's /System/Frameworks) for
the Qt header files, following the same logic as Apple's gcc. If this is of
interest to the smoke project, I could enhance this to allow arbitrary
framework directories, such as the one provided by cmake in the
QT_LIBRARY_DIR variable, and provide the patch.

Michael

On Fri, Apr 30, 2010 at 10:14 PM, Petr Vanek <petr at scribus.info> wrote:

> hi all,
>
> I'm facing a bug with empty generated smokeqt libs. It was due
> unexpectable setting of QT_INCLUDE_DIR in the case I use Qt4 with
> mac's frameworks. See cmake issue:
>
> http://public.kitware.com/Bug/view.php?id=10632
>
> after then I created following patch for our internal copy of smoke
> (unsplitted to modules still). Maybe you will be interested.
>
> cheers,
> Petr
>
> Index: config.xml.cmake
> ===================================================================
> --- config.xml.cmake    (revision 3428)
> +++ config.xml.cmake    (working copy)
> @@ -4,7 +4,7 @@
>      <generator>smoke</generator>
>      <definesList>@CMAKE_BINARY_DIR@/smoke/qtdefines</definesList>
>      <includeDirs>
> -        <dir>@QT_INCLUDE_DIR@</dir>
> +        <dir>@CONFIGXML_INCLUDE_DIR@</dir>
>          <dir>@QT_QTCORE_INCLUDE_DIR@</dir>
>          <dir>@QT_QTGUI_INCLUDE_DIR@</dir>
>          <dir>@QT_QTNETWORK_INCLUDE_DIR@</dir>
> Index: CMakeLists.txt
> ===================================================================
> --- CMakeLists.txt      (revision 3428)
> +++ CMakeLists.txt      (working copy)
> @@ -1,6 +1,16 @@
>
>  include_directories( ${QT_INCLUDES} ${CMAKE_SOURCE_DIR}/smoke )
>
> +# HACK to fixup macosx issue with QT_INCLUDE_DIR:
> +# QT_INCLUDE_DIR /opt/local/libexec/qt4-mac/include;/opt/local/
> libexec/qt4-mac/lib/QtCore.framework
> +# it should be only:
> +# QT_INCLUDE_DIR /opt/local/libexec/qt4-mac/include
> +if (QT_USE_FRAMEWORKS)
> +    set(CONFIGXML_INCLUDE_DIR ${QT_HEADERS_DIR})
> +else(QT_USE_FRAMEWORKS)
> +    set(CONFIGXML_INCLUDE_DIR ${QT_INCLUDE_DIR})
> +endif(QT_USE_FRAMEWORKS)
> +
>  configure_file(config.xml.cmake ${CMAKE_CURRENT_BINARY_DIR}/
> config.xml @ONLY)
>
>  # for QtGuess.txt
> _______________________________________________
> Kde-bindings mailing list
> Kde-bindings at kde.org
> https://mail.kde.org/mailman/listinfo/kde-bindings
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20100503/589c2f02/attachment.html>


More information about the Kde-bindings mailing list