mycroft-gui icon indicating copy to clipboard operation
mycroft-gui copied to clipboard

can't compile on master branch

Open osheroff opened this issue 1 year ago • 6 comments

Since qt6 support landed the "minimum qt version" is now 6.4.0 -- but none of the dev_setup scripts install qt6, resulting in:

CMake Error at CMakeLists.txt:46 (find_package):
  Could not find a configuration file for package "Qt5" that is compatible
  with requested version "6.4.0".

  The following configuration files were considered but not accepted:

    /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.15.3
    /lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake, version: 5.15.3

I tried getting dev_setup.sh working with qt6 but very quickly got into some pretty nasty dependency issues; some packages not available yet on ubuntu, etc.

Was the force to qt6 intentional?

osheroff avatar Mar 18 '23 15:03 osheroff

Same problem for me

benmordecai avatar Apr 02 '23 02:04 benmordecai

Mycroft-GUI master branch has be ported to QT6, please use the latest stable QT5 release instead of master branch https://github.com/MycroftAI/mycroft-gui/releases/tag/stable-qt5

AIIX avatar Apr 03 '23 00:04 AIIX

I get the same error on Arch where all QT6 dependencies are met

benmordecai avatar Apr 03 '23 01:04 benmordecai

I get the same error on Arch where all QT6 dependencies are met

how are you running cmake, and is arch shipping pure QT6 now or does the distro also ship QT5 along side ?

if you want to build against QT6 you can try the following:

  1. Make sure all base dependency and packages are already based of Qt6
  2. Use Clang instead of GCC: export CC=/usr/bin/clang and export CXX=/usr/bin/clang++
  3. Add the following to the cmake command -DBUILD_WITH_QT6=On

Note: currently skill UI have not been ported to QT6 and port is work in progress. if your distribution is still shipping QT5, download the stable linked version. you can track progress of at least base skills UI being ported to Qt6 here https://github.com/OpenVoiceOS/ovos-gui/issues/2

AIIX avatar Apr 03 '23 01:04 AIIX

I was just building with the setup script. But I am confused because I somehow now have the gui installed even though the process failed. I am wondering if installing mycroft-core did so?

benmordecai avatar Apr 03 '23 01:04 benmordecai

mycroft-core does not auto install mycroft-gui, if you downloaded the linked stable version and ran the setup script it would have built against Qt5 and installed it, this depends on what and how your distribution is shipping the base dependencies required by mycroft-gui.

AIIX avatar Apr 03 '23 01:04 AIIX