[Kde-bindings] smoke qt empty builds on macosx

Petr Vanek petr at scribus.info
Sat May 1 05:14:16 UTC 2010


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



More information about the Kde-bindings mailing list