Difference between revisions of "User:Robert Riemann/Drafts/Build qtruby"

Jump to: navigation, search
(draft for a subpage to Ruby)
 
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
{{Template:I18n/Language Navigation Bar|Development/Tutorials}}
 
 
{{improve}}
 
{{improve}}
  
Line 10: Line 9:
 
  svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs/cmake/modules
 
  svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdelibs/cmake/modules
  
Now all files (not folders) from in ./modules have to be placed in ./kdebindings/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.
 +
 
  
 
[[Category:Ruby]]
 
[[Category:Ruby]]

Latest revision as of 14:17, 18 July 2012

noframe
 
This section needs improvements: Please help us to

cleanup confusing sections and fix sections which contain a todo


[edit] 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

[edit] 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.

[edit] 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.


This page was last modified on 18 July 2012, at 14:17. This page has been accessed 1,296 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal