Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.
Reply to topic

Okular development in Open-Suse: basic setup instructions

unplugged
Registered Member
Posts
20
Karma
0
Hello,
I have installed Open-Suse 12.2 (Gnome) on my machine and I would like to be able to compile Okular from sources. I just need the last stable version to make some experiments so I do not need all the complex GIT stuff, if it is possible to avoid it. What I have to do now?
User avatar TSDgeos
Moderator
Posts
36
Karma
-1
Have a look at the "Okular" section at the bottom of http://okular.kde.org/download.php

It lists how to check out from git, but i don't think that one command is any more complex that the command that would download the "stable release" tarball. Of course you'll need to install some packages using your package manager like cmake and the packages cmake complains about once you run cmake.
unplugged
Registered Member
Posts
20
Karma
0
Thank you.
I installed cmake, kd4 base and devel, poppler, and cloned git okular. Now I have to type the command:
cmake -DCMAKE_INSTALL_PREFIX=/path/to/your/kde4/install/dir ..
but I do not know which is the path. How to check it?
User avatar scummos
KDE Developer
Posts
614
Karma
4
OS
I'd recommend to install your testing versions into ~/install. By doing that, you'll always have the stable version available too, and you can easily remove everything without screwing up your system. You need to add ~/install/bin to your $PATH and ~/install to your $KDEDIRS if you do that.

Plus you don't need root privileges for installing, which is convenient.

Greetings


unplugged
Registered Member
Posts
20
Karma
0
do you mean I have to create the install folder in my home folder?
User avatar scummos
KDE Developer
Posts
614
Karma
4
OS
Yes. I mean, you don't have to, but if you want to use it that way... you need to create it.


unplugged
Registered Member
Posts
20
Karma
0
I would like it was in a truecrypt volume, is it possible? Can I create it there?

Last edited by unplugged on Fri Nov 23, 2012 3:52 pm, edited 1 time in total.
User avatar scummos
KDE Developer
Posts
614
Karma
4
OS
You want the folder for the install data of an open source project you work on in its own truecrypt volume? Isn't that a bit weird?

But yes, you can select whatever location you want. As long as you can access it from, like, the shell, everything is alright.

Greetings


unplugged
Registered Member
Posts
20
Karma
0
Unfortunately I got this error with make command:

[ 21%] Building CXX object CMakeFiles/okularcore.dir/settings_core.o
Linking CXX shared library lib/libokularcore.so
CMake Error: cmake_symlink_library: System Error: Operation not permitted
CMake Error: cmake_symlink_library: System Error: Operation not permitted
make[2]: *** [lib/libokularcore.so.2.0.0] Errore 1
make[1]: *** [CMakeFiles/okularcore.dir/all] Errore 2
make: *** [all] Errore 2
User avatar scummos
KDE Developer
Posts
614
Karma
4
OS
You don't have write permissions in the build directory, or something similar.


unplugged
Registered Member
Posts
20
Karma
0
Very strange because the "mkdir build" command was succesfull and the cmake command too: now the build folder is full of files and folders. Could be another problem?
If I remember right, some trouble exist with symlinks in truecrypt volume: everything is there about okular now. Maybe I have to move okular folders in regular home.
User avatar scummos
KDE Developer
Posts
614
Karma
4
OS
unplugged wrote:now the build folder is full of files and folders. Could be another problem?

Well, yes. That's the build files. That's what the build folder is for: it contains the build files. Not a problem. ;)

No idea about encryption and symlinks. I don't use encryption.

Greetings


unplugged
Registered Member
Posts
20
Karma
0
Ah, Ah,
I did not mean I was worried about those files having been produced there, it was just a confirmation that the permissions were granted, so the cause of the error message could be another (that is: not the permission rights). Maybe my writing was inaccurate, english is not my mother tongue language. Thank you, it was just symlinks (not supported by truecrypt volumes) that was the problem.
User avatar scummos
KDE Developer
Posts
614
Karma
4
OS
Ah, alright. Sorry I misunderstood that. But good thing it's working now.

Greetings



 
Reply to topic

Bookmarks



Who is online

Registered users: alake, Baidu [Spider], bcooksley, Bing [Bot], colomar, dehnhardt, einar, Exabot [Bot], garthecho, Google [Bot], google01103, GreatEmerald, industrie13, inhiway, ivan, jensreuterberg, koriun, lazyit, Majestic-12 [Bot], nezumi, private_lock, SecretCode, tknight, urgo, valoriez, wolfi323, Yahoo [Bot]