This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

cannot see effect of my modifications to source code

Tags: None
(comma "," separated)
unplugged
Registered Member
Posts
20
Karma
0
Hello,
I am compiling Okular on Kubuntu. Compilation is ok. I set the KDEDIRS variable and after the "make install" command I see that folder populated. I edited the okular/generators/epub/converter.cpp file but even if I put, for example,
Code: Select all
return NULL;

at the very beginning of
Code: Select all
QTextDocument* Converter::convert( const QString &fileName )

class member, when I run the application I still get the epub loaded, so my modifications were ignored.
Note: when I run make it says it has compiled the epub generator so it compiles my modifications, just they have no effect (even if I run "sudo make install").
Can you help me? Thanks in advance.
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
If you want to start okular from your local installation you need to prepend the local install "bin" directory to $PATH, or manually specify it, like "~/install/bin/okular". Otherwise, you'll start the system-wide installation (see: "which okular").

Greetings


I'm working on the KDevelop IDE.
unplugged
Registered Member
Posts
20
Karma
0
I am sorry but it doesn't work: the application starts with manually specified path as you say but my modifications have no effect. What check can I perform?
User avatar
scummos
Global Moderator
Posts
1175
Karma
7
OS
strace it and check where it reads stuff from. That's the most basic way, at least, there's probably easier ones. :)


I'm working on the KDevelop IDE.
unplugged
Registered Member
Posts
20
Karma
0
Thank you.
According to strace it reads from the right places.
However if I type "okular" in the console terminal from the build directory the compiled app is called, so it is enough for me to test my modifications.
User avatar
TSDgeos
Moderator
Posts
49
Karma
0


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell