User:Robert Riemann/Drafts/Build qtruby: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Template:I18n/Language Navigation Bar| | {{Template:I18n/Language Navigation Bar|User:Robert_Riemann/Drafts/Build_qtruby}} | ||
{{improve}} | {{improve}} | ||
Revision as of 11:30, 30 July 2009
User:Robert_Riemann/Drafts/Build_qtruby
Languages: عربي | Asturianu | Català | Česky | Kaszëbsczi | Dansk | Deutsch | English | Esperanto | Español | Eesti | فارسی | Suomi | Français | Galego | Italiano | 日本語 | 한국어 | Norwegian | Polski | Português Brasileiro | Română | Русский | Svenska | Slovenčina | Slovenščina | српски | Türkçe | Tiếng Việt | Українська | 简体中文 | 繁體中文
cleanup confusing sections and fix sections which contain a todo
Get Sources
Before starting, the recent sources have to be downloaded. The following command will download some important cmake files and, of course, the kdebindings.
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebindings svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs/cmake/modules
Preparation
Now all files (not folders) from ./modules have to be placed in ./kdebindings/cmake/modules
You will find in ./kdebindings a file called CMakeLists.txt.qtruby - copy that file to CMakeLists.txt. You will overwrite a file to do it, but that doesn't matters.
Building
Now create a directory build next to kdebindings. You will find the following commands in the beginning of the CMakeLists.txt.qtruby file.
I copied the cmake command from there, but deleted the lines DRUBY_EXECUTABLE and DRUBY_INCLUDE_PATH
To get the qtruby build with ruby v1.9 I have had to make sure that the command which ruby finds the right file version. Maybe you need to create a symbolic link or modify your PATH variable.
Perhaps there is also a simpler way.
Sometimes it is necessary to install some devel packages additionally to meet the dependencies.
With opensuse it can be done with:
su # become root zypper in libqimageblitz-devel libkde4-devel #i install packages
When cmake quits without errors you can proceed with make and make install.