Compiling 5.4.1 with QTKEYCHAIN_LIBRARY : RaspberryPi Jessie for owncloud client



  • I try install Qt 5.4.1 building using manual

    I don't see errors (some warnings but not errors)

    After compiling try to build ownclud client using manual,

    On manual thre're a re tip:

    QTKEYCHAIN_LIBRARY=/path/to/qtkeychain.dylib -DQTKEYCHAIN_INCLUDE_DIR=/path/to/qtkeychain/:
    
        Used for stored credentials. When compiling with Qt5, the library is called qt5keychain.dylib. You need to compile QtKeychain with the same Qt version
    

    But there are not /qtkeychain.dylib on my system after compiling Qt 5.4.1

    I try to compiling qt5keychain using qtkeychain, using (i dont see manual, readme or instructions)

    cmake -G "Unix Makefiles"
    make && make install
    

    This install libraries on /usr/local/lib/arm-linux-gnueabihf/

    After this

    cmake -DCMAKE_BUILD_TYPE="Debug" /home/pi/opt/client -DCSYNC_BUILD_PATH=/home/pi/opt/client -DCSYNC_INCLUDE_PATH=/home/pi/opt/client/src -DCMAKE_PREFIX_PATH=/usr/local/qt5/
    -- Build of crashreporter disabled.
    -- Found Qt5 core, checking for further dependencies...
    -- Using Qt 5!
    -- GIT_SHA1 639301e9e986aa7d12c178a486773ed9449e1361
    -- Could NOT find INOTIFY (missing:  INOTIFY_LIBRARY_DIR)
    -- Could NOT find Sphinx (missing:  SPHINX_EXECUTABLE)
    -- Could NOT find PdfLatex (missing:  PDFLATEX_EXECUTABLE)
    -- Found SQLite3: /usr/lib/arm-linux-gnueabihf/libsqlite3.so (Required is at least version "3.8.0")
    -- Found SQLite3: /usr/lib/arm-linux-gnueabihf/libsqlite3.so;/usr/lib/arm-linux-gnueabihf/libsqlite3.so (Required is at least version "3.8.0")
    CMake Warning at shell_integration/CMakeLists.txt:11 (find_package):
      By not providing "FindKF5.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "KF5", but
      CMake did not find one.
    
      Could not find a package configuration file provided by "KF5" (requested
      version 5.16) with any of the following names:
    
        KF5Config.cmake
        kf5-config.cmake
    
      Add the installation prefix of "KF5" to CMAKE_PREFIX_PATH or set "KF5_DIR"
      to a directory containing one of the above files.  If "KF5" provides a
      separate development package or SDK, be sure it has been installed.
    
    
    Dolphin plugin disabled: KDE Frameworks 5.16 not found
    -- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/pi/opt/client/client-build
    
    
    make && sudo make install
    [  2%] Built target cstdlib
    [  9%] Built target ocsync
    [ 10%] Automatic moc for target owncloudsync
    [ 10%] Built target owncloudsync_automoc
    [ 29%] Built target owncloudsync
    [ 30%] Automatic moc for target updater
    [ 30%] Built target updater_automoc
    [ 32%] Built target updater
    [ 33%] Automatic moc for target owncloud
    [ 33%] Built target owncloud_automoc
    [ 97%] Built target owncloud
    [ 98%] Automatic moc for target owncloudcmd
    [ 98%] Built target owncloudcmd_automoc
    [100%] Built target owncloudcmd
    [  2%] Built target cstdlib
    [  9%] Built target ocsync
    [ 10%] Automatic moc for target owncloudsync
    [ 10%] Built target owncloudsync_automoc
    [ 29%] Built target owncloudsync
    [ 30%] Automatic moc for target updater
    [ 30%] Built target updater_automoc
    [ 32%] Built target updater
    [ 33%] Automatic moc for target owncloud
    [ 33%] Built target owncloud_automoc
    [ 97%] Built target owncloud
    [ 98%] Automatic moc for target owncloudcmd
    [ 98%] Built target owncloudcmd_automoc
    [100%] Built target owncloudcmd
    Linking CXX executable CMakeFiles/CMakeRelink.dir/owncloudcmd
    /usr/bin/ld: warning: libQt5DBus.so.5, needed by /usr/local/lib/arm-linux-gnueabihf/libqt5keychain.so, not found (try using -rpath or -rpath-link)
    /usr/local/lib/arm-linux-gnueabihf/libqt5keychain.so: undefined reference to `QDBusConnection::sessionBus()'
    usr/local/lib/arm-linux-gnueabihf/libqt5keychain.so: undefined reference to `QDBusAbstractInterface::QDBusAbstractInterface(QString const&, QString const&, char const*, QDBusConnection const&, QObject*)'
    /usr/local/lib/arm-linux-gnueabihf/libqt5keychain.so: undefined reference to `QDBusAbstractInterface::disconnectNotify(QMetaMethod const&)'
    /usr/local/lib/arm-linux-gnueabihf/libqt5keychain.so: undefined reference to `QDBusAbstractInterface::asyncCallWithArgumentList(QString const&, QList<QVariant> const&)'
    /usr/local/lib/arm-linux-gnueabihf/libqt5keychain.so: undefined reference to `QDBusAbstractInterface::~QDBusAbstractInterface()'
    ....
    

    I'm lost after spend 7 days over this problem.

    And I need compiling with Qt 5.41 because if compiling owncloud with older version of Qt (all google docs about compiling ownclouad work but using old Qt and all work wrong without network config unavalaible)

    Apreciate some help.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    QtKeyChain is not part of Qt at all so it's normal you don't find it after a build of Qt. Where did you install your Qt 5.4.1 ?



  • Whell I install Qt 5.4.1 according manual (put link on original post)

    Also compiling qtkeychain accoridiung manual (put link on originla post)
    And get errors show on original post.

    After see this y add to ld.so.conf path for qt5 library and run ldconfig

    Now Compiling without any porblem with.

    cmake -DCMAKE_BUILD_TYPE="Debug" /home/pi/opt/client -DCSYNC_BUILD_PATH=/home/pi/opt/client -DCSYNC_INCLUDE_PATH=/home/pi/opt/client/src && make && make install
    

    But now get other error...

    owncloudcmd: error while loading shared libraries: libowncloudsync.so.0: cannot open shared object file: No such file or directory
    

    Thanks.


  • Lifetime Qt Champion

    Where is libowncloudsync.so.0 located ?



  • @SGaist said:

    libowncloudsync.so.0

    /usr/local/lib/arm-linux-gnueabihf/libowncloudsync.so.0

    Best regards.


  • Lifetime Qt Champion

    Do you have any other libraries in that folder ?



  • What libraries in that folder ?

    This libraries only on folder /usr/local/lib/arm-linux-gnueabihf/

    Others... if I don't know what others I don't reply.

    A nice day.


  • Lifetime Qt Champion

    That's an unusual folder. You can try to run your application with:

    LD_LIBRARY_PATH=/usr/local/lib/arm-linux-gnueabihf ./your_application_name
    


Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.