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.

Scientifix Linux 6.3, okular with djvu support

Tags: None
(comma "," separated)
kyva1929
Registered Member
Posts
1
Karma
0
Hi,

There is no official package on scientific linux 6 that includes support for djvu format with okular. So I decided to compile from source and include the backend support for djvu.

The official package from SL repository called kdegraphics include
Graphics applications, including
* gwenview (an image viewer)
* kamera (digital camera support)
* kcolorchooser (a color chooser)
* kolourpaint4 (an easy-to-use paint program)
* kruler (screen ruler and color measurement tool)
* ksnapshot (screen capture utility)
* okular (a document viewer)

They are working correctly. I also have the kde development package installed.

Following instructions on okular, I did the following:
Code: Select all
git clone git://anongit.kde.org/okular
cd okular
git checkout v4.3.4
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/ ..


and got the following error:
Code: Select all
CMake Error at ui/data/icons/CMakeLists.txt:1 (kde4_install_icons):
  Unknown CMake command "kde4_install_icons".


Then I added one line in ui/data/icons/CMakeLists.txt
Code: Select all
find_package(KDE4 REQUIRED)


Other errors poped up which says

Code: Select all
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.6.2 (using /usr/bin/qmake-qt4)
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
CMake Warning (dev) at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:436 (include):
  A logical block opening on the line

    /usr/share/kde4/apps/cmake/modules/KDELibsDependencies.cmake:3 (if)

  closes on the line

    /usr/share/kde4/apps/cmake/modules/KDELibsDependencies.cmake:5 (endif)

  with mis-matching arguments.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindKDE4.cmake:81 (FIND_PACKAGE)
  ui/data/icons/CMakeLists.txt:1 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Phonon Version: 4.3.1
-- Found Phonon: /usr/lib/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Failed
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.3 include dir: /usr/include/kde4
-- Found KDE 4.3 library dir: /usr/lib/kde4/devel
-- Found the KDE4 kconfig_compiler4 preprocessor: /usr/bin/kconfig_compiler4
-- Found automoc4: /usr/bin/automoc4
CMake Error at ui/data/CMakeLists.txt:50 (install):
  install FILES given no DESTINATION!


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:879 (_automoc4_kde4_pre_target_handling)
  shell/CMakeLists.txt:15 (kde4_add_executable)


CMake Error at shell/CMakeLists.txt:19 (install):
  install TARGETS given no RUNTIME DESTINATION for executable target
  "okular".


CMake Error at shell/CMakeLists.txt:24 (install):
  install FILES given no DESTINATION!


CMake Error at generators/CMakeLists.txt:1 (include):
  include could not find load file:

    MacroLogFeature


CMake Warning at /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:19 (FIND_PACKAGE):
  Could not find module FindPoppler.cmake or a configuration file for package
  Poppler.

  Adjust CMAKE_MODULE_PATH to find FindPoppler.cmake or set Poppler_DIR to
  the directory containing a CMake configuration file for Poppler.  The file
  will have one of the following names:

    PopplerConfig.cmake
    poppler-config.cmake

Call Stack (most recent call first):
  generators/CMakeLists.txt:5 (macro_optional_find_package)


CMake Warning at /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:19 (FIND_PACKAGE):
  Could not find module FindLibSpectre.cmake or a configuration file for
  package LibSpectre.

  Adjust CMAKE_MODULE_PATH to find FindLibSpectre.cmake or set LibSpectre_DIR
  to the directory containing a CMake configuration file for LibSpectre.  The
  file will have one of the following names:

    LibSpectreConfig.cmake
    libspectre-config.cmake

Call Stack (most recent call first):
  generators/CMakeLists.txt:8 (macro_optional_find_package)


CMake Warning at /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:19 (FIND_PACKAGE):
  Could not find module FindCHM.cmake or a configuration file for package
  CHM.

  Adjust CMAKE_MODULE_PATH to find FindCHM.cmake or set CHM_DIR to the
  directory containing a CMake configuration file for CHM.  The file will
  have one of the following names:

    CHMConfig.cmake
    chm-config.cmake

Call Stack (most recent call first):
  generators/CMakeLists.txt:11 (macro_optional_find_package)


CMake Warning at /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:19 (FIND_PACKAGE):
  Could not find module FindDjVuLibre.cmake or a configuration file for
  package DjVuLibre.

  Adjust CMAKE_MODULE_PATH to find FindDjVuLibre.cmake or set DjVuLibre_DIR
  to the directory containing a CMake configuration file for DjVuLibre.  The
  file will have one of the following names:

    DjVuLibreConfig.cmake
    djvulibre-config.cmake

Call Stack (most recent call first):
  generators/CMakeLists.txt:14 (macro_optional_find_package)


-- Could NOT find TIFF  (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Found Freetype: /usr/lib/libfreetype.so
-- Found ZLIB: /usr/lib/libz.so
CMake Warning at /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:19 (FIND_PACKAGE):
  Could not find module FindEPub.cmake or a configuration file for package
  EPub.

  Adjust CMAKE_MODULE_PATH to find FindEPub.cmake or set EPub_DIR to the
  directory containing a CMake configuration file for EPub.  The file will
  have one of the following names:

    EPubConfig.cmake
    epub-config.cmake

Call Stack (most recent call first):
  generators/CMakeLists.txt:29 (macro_optional_find_package)


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:562 (_automoc4_kde4_pre_target_handling)
  generators/kimgio/CMakeLists.txt:11 (kde4_add_plugin)


CMake Error at generators/kimgio/CMakeLists.txt:15 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "okularGenerator_kimgio".


CMake Error at generators/kimgio/CMakeLists.txt:20 (install):
  install FILES given no DESTINATION!


CMake Error at generators/kimgio/CMakeLists.txt:21 (install):
  install FILES given no DESTINATION!


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:562 (_automoc4_kde4_pre_target_handling)
  generators/dvi/CMakeLists.txt:51 (kde4_add_plugin)


CMake Error at generators/dvi/CMakeLists.txt:58 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "okularGenerator_dvi".


CMake Error at generators/dvi/CMakeLists.txt:63 (install):
  install FILES given no DESTINATION!


CMake Error at generators/dvi/CMakeLists.txt:64 (install):
  install FILES given no DESTINATION!


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:562 (_automoc4_kde4_pre_target_handling)
  generators/xps/CMakeLists.txt:13 (kde4_add_plugin)


CMake Error at generators/xps/CMakeLists.txt:17 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "okularGenerator_xps".


CMake Error at generators/xps/CMakeLists.txt:22 (install):
  install FILES given no DESTINATION!


CMake Error at generators/xps/CMakeLists.txt:23 (install):
  install FILES given no DESTINATION!


CMake Warning at /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:19 (FIND_PACKAGE):
  Could not find module FindQCA2.cmake or a configuration file for package
  QCA2.

  Adjust CMAKE_MODULE_PATH to find FindQCA2.cmake or set QCA2_DIR to the
  directory containing a CMake configuration file for QCA2.  The file will
  have one of the following names:

    QCA2Config.cmake
    qca2-config.cmake

Call Stack (most recent call first):
  generators/ooo/CMakeLists.txt:6 (macro_optional_find_package)


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:562 (_automoc4_kde4_pre_target_handling)
  generators/ooo/CMakeLists.txt:27 (kde4_add_plugin)


CMake Error at generators/ooo/CMakeLists.txt:34 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "okularGenerator_ooo".


CMake Error at generators/ooo/CMakeLists.txt:39 (install):
  install FILES given no DESTINATION!


CMake Error at generators/ooo/CMakeLists.txt:40 (install):
  install FILES given no DESTINATION!


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:562 (_automoc4_kde4_pre_target_handling)
  generators/fictionbook/CMakeLists.txt:16 (kde4_add_plugin)


CMake Error at generators/fictionbook/CMakeLists.txt:20 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "okularGenerator_fb".


CMake Error at generators/fictionbook/CMakeLists.txt:25 (install):
  install FILES given no DESTINATION!


CMake Error at generators/fictionbook/CMakeLists.txt:26 (install):
  install FILES given no DESTINATION!


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:562 (_automoc4_kde4_pre_target_handling)
  generators/comicbook/CMakeLists.txt:16 (kde4_add_plugin)


CMake Error at generators/comicbook/CMakeLists.txt:23 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "okularGenerator_comicbook".


CMake Error at generators/comicbook/CMakeLists.txt:28 (install):
  install FILES given no DESTINATION!


CMake Error at generators/comicbook/CMakeLists.txt:29 (install):
  install FILES given no DESTINATION!


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:562 (_automoc4_kde4_pre_target_handling)
  generators/fax/CMakeLists.txt:10 (kde4_add_plugin)


CMake Error at generators/fax/CMakeLists.txt:14 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "okularGenerator_fax".


CMake Error at generators/fax/CMakeLists.txt:19 (install):
  install FILES given no DESTINATION!


CMake Error at generators/fax/CMakeLists.txt:20 (install):
  install FILES given no DESTINATION!


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:562 (_automoc4_kde4_pre_target_handling)
  generators/mobipocket/CMakeLists.txt:15 (kde4_add_plugin)


CMake Error at generators/mobipocket/CMakeLists.txt:19 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "okularGenerator_mobi".


CMake Error at generators/mobipocket/CMakeLists.txt:23 (install):
  install FILES given no DESTINATION!


CMake Error at generators/mobipocket/CMakeLists.txt:24 (install):
  install FILES given no DESTINATION!


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:928 (_automoc4_kde4_pre_target_handling)
  CMakeLists.txt:95 (kde4_add_library)


CMake Error at CMakeLists.txt:106 (install):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "okularcore".


CMake Error at CMakeLists.txt:108 (install):
  install FILES given no DESTINATION!


CMake Error at CMakeLists.txt:109 (install):
  install FILES given no DESTINATION!


CMake Error: File /automoc4.files.in does not exist.
CMake Error at /usr/lib/automoc4/Automoc4Config.cmake:183 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:562 (_automoc4_kde4_pre_target_handling)
  CMakeLists.txt:172 (kde4_add_plugin)


CMake Error at CMakeLists.txt:176 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "okularpart".


CMake Error at CMakeLists.txt:181 (install):
  install FILES given no DESTINATION!


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!


Please help!

Thanks.
User avatar
google01103
Manager
Posts
6668
Karma
25
as an alternative is there a package for djview4? http://djvu.sourceforge.net/djview4.html


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You may want to check Okular out of SVN instead of Git if you are using KDE 4.3.4.
I would recommend using a newer version though.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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