Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Help compiling source code


    I am a newbie when it comes to compiling code, so please bear with me.

    I am trying to compile code I found on github for an Okular PDF plugin to be used in Firefox.
    This is for CentOS 6.6.
    Here is the url for the source code...https://github.com/afrimberger/okularplugin

    I had to install cmake & kdelibs-devel in order to get past some fatal errors with cmake. After doing so, cmake completed, but with some warnings. I then ran make and it failed. The output from cmake and make is listed below.

    Can anyone help me with this?

    Thanks

    cmake ..
    -- The C compiler identification is GNU 4.4.7
    -- The CXX compiler identification is GNU 4.4.7
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- 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/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/libXpm.so
    -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so;/usr/lib64/libXft.so;/usr/lib64/libXau.so;/usr/lib64/libXdmcp.so;/usr/lib64/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/lib64/libX11.so
    -- Looking for include file pthread.h
    -- Looking for include file pthread.h - found
    -- Looking for pthread_create
    -- Looking for pthread_create - not 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 (found version "5.10.1")
    CMake Warning (dev) at /usr/share/cmake/Modules/CheckCXXCompilerFlag.cmake:28 (include):
    File /usr/share/cmake/Modules/CheckCXXCompilerFlag.cmake includes
    /usr/share/kde4/apps/cmake/modules/CheckCXXSourceCompiles.cmake (found via
    CMAKE_MODULE_PATH) which shadows
    /usr/share/cmake/Modules/CheckCXXSourceCompiles.cmake. This may cause
    errors later on .

    Policy CMP0017 is not set: Prefer files from the CMake module directory
    when including from there. Run "cmake --help-policy CMP0017" for policy
    details. Use the cmake_policy command to set the policy and suppress this
    warning.
    Call Stack (most recent call first):
    /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:352 (include)
    /usr/share/cmake/Modules/FindKDE4.cmake:95 (find_package)
    CMakeLists.txt:3 (FIND_PACKAGE)
    This warning is for project developers. Use -Wno-dev to suppress it.

    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:95 (find_package)
    CMakeLists.txt:3 (FIND_PACKAGE)
    This warning is for project developers. Use -Wno-dev to suppress it.

    -- Phonon Version: 4.3.1
    -- Found Phonon: /usr/lib64/libphonon.so
    -- Found Phonon Includes: /usr/include/KDE;/usr/include
    -- Performing Test _OFFT_IS_64BIT
    -- Performing Test _OFFT_IS_64BIT - Success
    -- 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/lib64/kde4/devel
    -- Found the KDE4 kconfig_compiler4 preprocessor: /usr/bin/kconfig_compiler4
    -- Found automoc4: /usr/bin/automoc4
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /opt/dvinst/okularplugin/build
    [xstore@TRC0111R01 build]$ make
    Scanning dependencies of target okularplugin_automoc
    Generating partwin.moc
    Generating moc_progresswidget.cpp
    [ 0%] Built target okularplugin_automoc
    [ 16%] Generating ui_progresswidget.h
    Scanning dependencies of target okularplugin
    [ 33%] Building CXX object CMakeFiles/okularplugin.dir/okularplugin_automoc.o
    [ 50%] Building CXX object CMakeFiles/okularplugin.dir/partwin.o
    /opt/dvinst/okularplugin/partwin.cpp: In constructor ‘PartWin::PartWin(QWidget*)’:
    /opt/dvinst/okularplugin/partwin.cpp:73: error: ‘class KParts::ReadOnlyPart’ has no member named ‘replaceXMLFile’
    /opt/dvinst/okularplugin/partwin.cpp: At global scope:
    /opt/dvinst/okularplugin/partwin.cpp:37: warning: unused parameter ‘parent’
    make[2]: *** [CMakeFiles/okularplugin.dir/partwin.o] Error 1
    make[1]: *** [CMakeFiles/okularplugin.dir/all] Error 2
    make: *** [all] Error 2

  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    2,103
    What distro are you using? What steps have you taken to install the development requirements for that platform?

  3. #3
    Quote Originally Posted by gregm View Post
    What distro are you using? What steps have you taken to install the development requirements for that platform?
    "This is for CentOS 6.6"

    I had to install cmake & kdelibs-devel in order to get past some fatal errors with cmake. After doing so, cmake completed, but with some warnings. I then ran make and it failed. The output from cmake and make is listed below."

    I have since been told that the Okular plugin relies on kdelibs version 5 and CentOS 6 used version 4. Not sure if it is worth trying to get kdelibs 5 build for CentOS 6.

    Any thoughts?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    2,103
    -->
    You might succeed but it seems you already had cmake installed and the new install may not be working correctly - that is why I asked how you installed it. I don't use centos and can't speak to its package management system.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •