Building QtWebKit and installing into a prefix



  • Please help me installing it into PREFIX=/app

    I've tried

    CMAKE_INSTALL_PREFIX=/app
    export CMAKE_INSTALL_PREFIX
    qmake
    make
    make install
    

    which results in

    make -f Makefile.run_cmake install_impl VERBOSE=1 DESTDIR=
    make[2]: Entering directory '/run/build/qtwebkit/Tools/qmake/projects'
    cd /run/build/qtwebkit/debug && cmake -P cmake_install.cmake
    -- Install configuration: "Debug"
    CMake Error at Source/cmake_install.cmake:36 (file):
      file cannot create directory: /usr/lib/cmake/Qt5WebKit.  Maybe need
      administrative privileges.
    Call Stack (most recent call first):
      cmake_install.cmake:37 (include)
    

    Would defining an environment variable DESTDIR work?

    This is on Linux, using this [0] Flatpak runtime.

    [0] https://github.com/KDE/flatpak-kde-runtime/blob/master/org.kde.Sdk.json



  • Both qmake and cmake rely on arguments, not environment variables


Log in to reply
 

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