lirios / fluid

:book: Library for QtQuick apps with Material Design
https://docs.liri.io/sdk/fluid/develop/
Other
818 stars 112 forks source link

cmake minimal problem (wayland deps) #283

Closed luntik2012 closed 5 years ago

luntik2012 commented 5 years ago

Please, add wayland to deps and docs.

Could you help with some info about this dependency? (I'm not familiar with wayland etc)

I didn't thought I need this (for earlier versions).

Is it possible to disable it by default? I don't think all people use wayland and window decorations (I'm using arch+xfce+x11).

$ git clone https://github.com/lirios/fluid/
$ cd fluid/examples/perproject/minimalcmake/
$ git clone https://github.com/lirios/fluid.git
$ cd fluid/
$ git submodule update --init --recursive
$ mkdir build
$ cd build

$ cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)/install-root
-- The CXX compiler identification is GNU 8.2.1
-- The C compiler identification is GNU 8.2.1
-- 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
-- The following features have been enabled:

 * Testing, Automated tests

-- The following features have been disabled:

 * Coverage, Code coverage (gcc only)

-- The following features have been enabled:

 * Testing, Automated tests

-- The following REQUIRED packages have been found:

 * Qt5Core
 * Qt5Gui
 * Qt5Widgets (required version >= 5.12.1)
 * Qt5Svg
 * Qt5Network (required version >= 5.12.1)
 * Qt5Qml
 * Qt5Quick
 * Qt5QuickControls2
 * Qt5 (required version >= 5.10.0)

-- The following features have been disabled:

 * Coverage, Code coverage (gcc only)

CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find QtWaylandScanner (missing: QtWaylandScanner_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  fluid/cmake/shared/3rdparty/extra-cmake-modules/find-modules/FindQtWaylandScanner.cmake:99 (find_package_handle_standard_args)
  fluid/src/imports/controls-private/CMakeLists.txt:7 (find_package)

-- Configuring incomplete, errors occurred!
See also "/tmp/fluid/examples/perproject/minimalcmake/build/CMakeFiles/CMakeOutput.log".
christopherwoo commented 5 years ago

Same issue with me.

luntik2012 commented 5 years ago
pacman -S qt5-wayland

solved it for me

luntik2012 commented 5 years ago

how to use it with ubuntu and online installed qt (e.g. /opt)?