From kde-bindings Sat Jan 23 16:29:14 2010 From: Davor Ocelic Date: Sat, 23 Jan 2010 16:29:14 +0000 To: kde-bindings Subject: [Kde-bindings] qtruby CMakeLists patch Message-Id: <20100123172914.4f9d6db7 () bouli ! neaspec ! de> X-MARC-Message: https://marc.info/?l=kde-bindings&m=126426421509119 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--MP_/A5m+.h7f69Thro_tNxrucnA" --MP_/A5m+.h7f69Thro_tNxrucnA Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello folks, (Re-sending this as it happened to be at my hands again, and it did not get committed in the meantime). Attached is a patch which brings CMakeLists.txt.qtruby up to date with recent developments (i.e. generator, new -Defines, Ruby 1.9 notes), so that the instructions work out of the box, and corrects one wrong define name in README. Best regards, -doc --MP_/A5m+.h7f69Thro_tNxrucnA Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=kdebindings-qtruby-CMake.patch Index: README =================================================================== --- README (revision 1061554) +++ README (working copy) @@ -14,7 +14,7 @@ # Compile with debugging enabled and point to the used ruby version cmake -DCMAKE_BUILD_TYPE=debugfull -DRUBY_INCLUDE_PATH=/usr/lib/ruby/1.8/i486-linux/ -DRUBY_LIBRARY=/usr/lib/libruby1.8.so . # Compile smokeqt but not smokekde -cmake -DENABLE_SMOKE=on -DENABLE_SMOKEKDE=off . +cmake -DENABLE_SMOKE=on -DENABLE_KDE_SMOKE=off . # Disable compiling of Qyoto cmake -DENABLE_QYOTO=off . # Disable compiling of QtRuby and Korundum Index: CMakeLists.txt.qtruby =================================================================== --- CMakeLists.txt.qtruby (revision 1061554) +++ CMakeLists.txt.qtruby (working copy) @@ -8,11 +8,17 @@ # cp ../kdelibs/cmake/modules/FindRUBY.cmake ./cmake/modules/ # cp ../kdelibs/cmake/modules/MacroOptionalFindPackage.cmake ./cmake/modules/ # cp ../kdelibs/cmake/modules/MacroPushRequiredVars.cmake ./cmake/modules/ +# cp ../kdelibs/cmake/modules/Qt4Macros.cmake ./cmake/modules/ +# cp ../kdelibs/cmake/modules/Qt4ConfigDependentSettings.cmake ./cmake/modules/ # -# 3. Build kdebindings with a set of commands like: +# 3. Build kdebindings for Ruby 1.8 with a set of commands like this: +# (For Ruby 1.9 see additional notes below) # +# cd generator && cmake . && make && cd .. +# # test -r Makefile && make clean # rm -f CMakeCache.txt CMakeFiles/*log +# # cmake \ # -DCMAKE_INSTALL_PREFIX=/usr/local \ # -DRUBY_EXECUTABLE=/usr/local/bin/ruby \ @@ -48,10 +54,37 @@ # -DENABLE_SOLID_RUBY=off \ # -DENABLE_KROSSRUBY=off \ # -DENABLE_PLASMA_RUBY=off \ -# -DENABLE_QIMAGEBLITZ_SMOKE=off -# make +# -DENABLE_QIMAGEBLITZ_SMOKE=off \ +# -DENABLE_QTMULTIMEDIA_SMOKE=off \ +# -DENABLE_KDECORE_SMOKE=off \ +# -DENABLE_KDEUI_SMOKE=off \ +# -DENABLE_KIO_SMOKE=off \ +# -DENABLE_KPARTS_SMOKE=off \ +# -DENABLE_KFILE_SMOKE=off \ +# -DENABLE_KNEWSTUFF2_SMOKE=off \ +# -DENABLE_KNEWSTUFF3_SMOKE=off \ +# -DENABLE_KUTILS_SMOKE=off +# +# PATH=$PWD/generator/bin/:$PATH make # make install # +# Ruby 1.9 notes: +# +# Ruby 1.9 support works out of the box, but cmake invocation is +# just a little bit different. Ruby-related defines in the cmake call +# above need adjustment in style of: +# +# -DRUBY_EXECUTABLE=/usr/bin/ruby1.9.1 +# -DRUBY_INCLUDE_PATH=/usr/include/ruby-1.9.1 +# -DRUBY_LIBRARY=/usr/lib/libruby-1.9.1.so +# +# Also, Ruby 1.9 places config.h to an architecture-dependent directory, +# and for kdebindings to find it, it's useful to symlink it into the +# common include dir. That can be done with a oneliner: +# +# ln -sf `find /usr/include/ruby-1.9.1 -name config.h | head -n 1` \ +# /usr/include/ruby-1.9.1/ruby/ +# project(kdebindings) --MP_/A5m+.h7f69Thro_tNxrucnA Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings --MP_/A5m+.h7f69Thro_tNxrucnA--