Troubles installing QtWayland



  • That is my first contact with Qt; I don't know what I do wrong - I executed the following commands (from this guide https://wiki.qt.io/QtWayland) to install qtwayland:

    git clone git://code.qt.io/qt/qtwayland.git
    cd qtwayland
    qmake CONFIG+=wayland-compositor
    qmake
    make
    make install
    

    yet I got the same error for both make and make install:

    $ sudo make install
    cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/misiak/wayland/qtwayland/src/src.pro -o Makefile ) && make -f Makefile install
    make[1]: Entering directory '/home/misiak/wayland/qtwayland/src'
    make[1]: Nothing to be done for 'install'.
    make[1]: Leaving directory '/home/misiak/wayland/qtwayland/src'
    cd examples/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/misiak/wayland/qtwayland/examples/examples.pro -o Makefile ) && make -f Makefile install
    make[1]: Entering directory '/home/misiak/wayland/qtwayland/examples'
    cd wayland/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/misiak/wayland/qtwayland/examples/wayland/wayland.pro -o Makefile ) && make -f Makefile install
    make[2]: Entering directory '/home/misiak/wayland/qtwayland/examples/wayland'
    Some of the required modules (qtHaveModule(waylandcompositor) qtConfig(opengl)) are not available.
    Skipped.
    make[2]: Leaving directory '/home/misiak/wayland/qtwayland/examples/wayland'
    make[1]: Leaving directory '/home/misiak/wayland/qtwayland/examples'
    

    I deleted everything regarding the examples folder from makefile, but then I got

    ~/qtwayland $ sudo make install
    cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/misiak/qtwayland/src/src.pro CONFIG+=wayland-compositor -o Makefile ) && make -f Makefile install
    make[1]: Entering directory '/home/misiak/qtwayland/src'
    make[1]: Nothing to be done for 'install'.
    make[1]: Leaving directory '/home/misiak/qtwayland/src'
    

    And nothing happens ¯_(ツ)_/¯
    My distribution is Linux Mint 18.1 I have been using linux only for a week, so I ask for explanations as if they were written for a dummy ;)


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you install the dependencies like wayland itself ?



  • Yes, I done that. I can run Weston.


  • Lifetime Qt Champion

    Sorry, I meant the development dependencies.



  • @SGaist That might be the reason. Could you list what I should have installed? I am 100% sure that I have everything from there: https://wiki.qt.io/QtWayland


  • Lifetime Qt Champion

    Just realised something: against which version of Qt are you building the module ?



  • @SGaist I have both 4 and 5.8. I have set 5.8 as default by

    sudo apt-get install qt5-default
    

  • Lifetime Qt Champion

    Did you also check that you have all the Qt development package installed ?



  • I have got every Qt dev package :(. I think the problem is with the git I have cloned. This it the output from sudo make

    
    sudo make
    cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/misiaczek/qtwayland/src/src.pro CONFIG+=wayland-compositor -o Makefile ) && make -f Makefile 
    make[1]: Entering directory '/home/misiaczek/qtwayland/src'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/misiaczek/qtwayland/src'
    cd examples/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/misiaczek/qtwayland/examples/examples.pro CONFIG+=wayland-compositor -o Makefile ) && make -f Makefile 
    make[1]: Entering directory '/home/misiaczek/qtwayland/examples'
    cd wayland/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/misiaczek/qtwayland/examples/wayland/wayland.pro CONFIG+=wayland-compositor -o Makefile ) && make -f Makefile 
    make[2]: Entering directory '/home/misiaczek/qtwayland/examples/wayland'
    Some of the required modules (qtHaveModule(waylandcompositor) qtConfig(opengl)) are not available.
    Skipped.
    make[2]: Leaving directory '/home/misiaczek/qtwayland/examples/wayland'
    make[1]: Leaving directory '/home/misiaczek/qtwayland/examples'
    

    It seems like /src is omitted, am I right? It should compile everything, shouldn't it?


  • Lifetime Qt Champion

    What distribution are you using ?



  • Mint 18.1, I tried on Ubuntu 16.04 with the same results.
    Both 64bit


  • Lifetime Qt Champion

    Which version of Qt is installed on your system ?

    You likely have the 5.9 version of the QtWayland module while your distribution version if older.



  • I have Qt 5.8


  • Lifetime Qt Champion

    Also for the qtwayland module ?



  • @SGaist I have cloned branch 5.8 yet got the same error :c


  • Lifetime Qt Champion

    I think there's some stuff mixed up here.

    From your last compilation log, it looks like you are using your distribution qmake, is that correct ?



  • K. I made a clear installation of mint.
    Installed qt open source from the webpage and ran the following commands:

    sudo apt-get install git
    sudo apt-get install qt5-default
    git clone git://code.qt.io/qt/qtwayland.git --branch 5.8 --single-branch
    cd qtwayland
    qmake CONFIG+=wayland-compositor
    qmake
    sudo make
    
    

    got this again:

    
    cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/emile/qtwayland/src/src.pro -o Makefile ) && make -f Makefile 
    make[1]: Entering directory '/home/emile/qtwayland/src'
    make[1]: Nothing to be done for 'first'.
    make[1]: Leaving directory '/home/emile/qtwayland/src'
    cd examples/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/emile/qtwayland/examples/examples.pro -o Makefile ) && make -f Makefile 
    make[1]: Entering directory '/home/emile/qtwayland/examples'
    cd wayland/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/emile/qtwayland/examples/wayland/wayland.pro -o Makefile ) && make -f Makefile 
    make[2]: Entering directory '/home/emile/qtwayland/examples/wayland'
    Some of the required modules (qtHaveModule(waylandcompositor) qtConfig(opengl)) are not available.
    Skipped.
    make[2]: Leaving directory '/home/emile/qtwayland/examples/wayland'
    make[1]: Leaving directory '/home/emile/qtwayland/examples'
    
    

  • Lifetime Qt Champion

    What is the version of Qt that is installed on your machine ?



  • 5.8 as earlier


Log in to reply
 

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