Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't compile on master branch #129

Open
osheroff opened this issue Mar 18, 2023 · 6 comments
Open

can't compile on master branch #129

osheroff opened this issue Mar 18, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@osheroff
Copy link

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 osheroff added the bug Something isn't working label Mar 18, 2023
@benmordecai
Copy link

Same problem for me

@AIIX
Copy link
Collaborator

AIIX commented Apr 3, 2023

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

@benmordecai
Copy link

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

@AIIX
Copy link
Collaborator

AIIX commented Apr 3, 2023

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 OpenVoiceOS/ovos-gui#2

@benmordecai
Copy link

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?

@AIIX
Copy link
Collaborator

AIIX commented Apr 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants