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.

Compiling okular from source on kubuntu 16.04 - 64bits

Tags: None
(comma "," separated)
sissi_luaty
Registered Member
Posts
3
Karma
0
OS
I am trying to compile & run okular from source with no success. I am using kubuntu 16.04 64 bits. However, in a virtual machine with kubuntu 32 bits I was able to compile it, but in my main OS I cannot.

I tried (amongst other versions of okular) to build okular-15.12.3 and okular-16.12.2, obtaining different errors. I need to compile at lest one version of okular because of the annotations tools.

With okular-15.12.3 I get the output:

Code: Select all
silvia@aspire-3820:~/kdeokular/okular-15.12.3/build$ cmake -DCMAKE_INSTALL_PREFIX=~/kdeokular/installdir ..
CMake Error at /usr/share/kde4/apps/cmake/modules/FindQt4.cmake:886 (MESSAGE):
  Could NOT find QtCore.  Check
  /home/silvia/kdeokular/okular-15.12.3/build/CMakeFiles/CMakeError.log for
  more details.
Call Stack (most recent call first):
  /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:392 (find_package)
  /usr/share/cmake-3.5/Modules/FindKDE4.cmake:108 (find_package)
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/silvia/kdeokular/okular-15.12.3/build/CMakeFiles/CMakeOutput.log".
See also "/home/silvia/kdeokular/okular-15.12.3/build/CMakeFiles/CMakeError.log".


With okular-16.12.2 the full compilation runs with success, but it gives a segfault on running:

Code: Select all
silvia@aspire-3820:~/kdeokular/installdir/bin$ QT_PLUGIN_PATH=~/kdeokular/installdir/lib/x86_64-linux-gnu/plugins/ LD_LIBRARY_PATH=~/kdeokular/installdir/lib/x86_64-linux-gnu/ XDG_DATA_DIRS=~/kdeokular/installdir/share:$XDG_DATA_DIRS ./okular
Segmentation fault (core dumped)


I would be thankful for any help.
sissi_luaty
Registered Member
Posts
3
Karma
0
OS
After adding the suggestion in https://bugreports.qt.io/browse/QTBUG-51066
the compilation of okular-15.12.3 worked, i.e.:

to pass '-DQT_QMAKE_EXECUTABLE=qmake-qt5' to the cmake command.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]