Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5.5.1 from source builds Qt5WebKit but does not install it.

Qt5.5.1 from source builds Qt5WebKit but does not install it.

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    theCyclist
    wrote on last edited by
    #1

    I have not built Qt from source since the Qt4 days but now I would like to build a couple of Qt apps that need Qt5. I built the latest [5.5.1] from source on my Debian 8.2 box. One of these apps [qmapshack] requires Qt5WebKit and Qt5WebkitWidgets and I can see that these have been built as all the libs and shared objects are in directory tree with the source [libQt5WebKit.so and libQt5WebKitWidgets.so etc] but they have not been installed into /usr/local/Qt5.5.1 with the rest of the system following the 'make install'. Am I missing something really obvious or made a rookie error?

    The qmapshack build fails because It can not find a .cmake files for Qt5WebKit and Qt5WebKitWidgets - again these files are there with the source but not installed in /usr/local.

    For reference:
    https://bitbucket.org/maproom/qmapshack/wiki/Home

    Thanks

    JT

    Be open minded but don't lean forward or your brain my fall out.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      theCyclist
      wrote on last edited by
      #2

      Answering my own post here: I can now build qmapshack successfully. I got around the problem of the cmake build script not finding the cmake config files for Qt5WebKit by adding the path to my build of Qt5 rather than the actual installed directory; by build directory, I mean the location on my file system where I built Qt5.5.1 rather than where it was installed. You add locations of the cmake config files using the CMAKE_PREFIX_PATH environment variable; ie:

      $ export CMAKE_PREFIX_PATH=~/qt-everywhere-opensource-src-5.5.1/qtbase/lib/cmake
      

      Then the normal cmake build for qmapshack worked - apart from a few compile failures that were fixable.

      Having built and installed qmapshack, I then had to copy the following shared objects, by hand, from my build directory to the default installation directory for Qt5 (/usr/local/Qt5.5.1/lib):

      libQt5WebKit.so.5
      libQt5WebKitWidgets.so.5
      libQt5Xml.so.5.5.1
      

      I also had to do an 'ldconfig' as well before the qmapshack app could find the shared objects/libs and run successfully.

      JT

      Be open minded but don't lean forward or your brain my fall out.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved