[Kde-bindings] CMakeLists.txt.qtruby bug

Arno Rehn arno at arnorehn.de
Wed Feb 10 18:00:24 UTC 2010


On Wednesday 10 February 2010 00:51:08 Robert Riemann wrote:
> Hi all,
> 
> I tried following the CMakeLists.txt.qtruby to build korundum4 with
> ruby1.9 and Qt 4.6.1.
> 
> 
> I modified the first lines for cmake:
> 
>  cmake                                                         \
>    -DCMAKE_INSTALL_PREFIX=/usr/local                           \
>    -DRUBY_EXECUTABLE=/usr/bin/ruby1.9                          \
>    -DRUBY_INCLUDE_PATH=/usr/lib64/ruby/1.9.1/x86_64-linux      \
> ...
> 
> 
> cmake complains not to find some files, so you have to copy 3 files
> more than mentioned:
> 
> 
> *** kdebindings/CMakeLists.txt.qtruby   2010-02-10 00:42:23.006874652 +0100
> --- /home/rriemann/go/ruby-kde4/korundum4_kompilieren/CMakeLists.txt.qtruby
>     2010-02-10 00:41:25.000000000 +0100
> ***************
> *** 8,13 ****
> --- 8,16 ----
>   #  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/
> + #  cp
> ../kdelibs/cmake/modules/HandleImportedTargetsInCMakeRequiredLibraries.cma
> ke ./cmake/modules/
>   #
>   # 3. Build kdebindings with a set of commands like:
>   #
> 
> 
> 
> After all I stuck the following error:
> 
> -- QT_NO_TOOLBUTTON *Undefined*
> -- Found Qt-Version 4.6.1 (using /usr/bin/qmake)
> -- Found Qt-Version 4.6.1 (using /usr/bin/qmake)
> CMake Error at smoke/kdecore/CMakeLists.txt:66 (kde4_add_library):
>   Unknown CMake command "kde4_add_library".
> 
> 
> -- Configuring incomplete, errors occurred!
Please note that CMakeLists.txt.qtruby is used to _only_ build qtruby on 
platforms that don't have KDE4 installed. It's not supposed to build korundum 
or any other KDE stuff.
If you already have KDE4, you don't need to copy any files. You should then 
use the standard CMakeLists.txt. If cmake complains about unsatisfied 
dependencies, you probably have to install -devel packages.
CMake hast options to disable anything but Smoke and the Ruby bindings. Please 
use "ccmake" instead of "cmake" to get a GUI-like interface where you can 
configure what you want to build and what not.

-- 
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list