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

cmake error #1

Open
pfr-dev opened this issue May 26, 2023 · 9 comments
Open

cmake error #1

pfr-dev opened this issue May 26, 2023 · 9 comments

Comments

@pfr-dev
Copy link

pfr-dev commented May 26, 2023

Void Linux, qt6-base and qt6-declarative installed

dave@void ~/Downloads/guifetch/build $ cmake ..                                                                                                                     main
CMake Error at CMakeLists.txt:12 (find_package):
  By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt6", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt6" (requested
  version 6.4) with any of the following names:

    Qt6Config.cmake
    qt6-config.cmake

  Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
  to a directory containing one of the above files.  If "Qt6" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
@SrWither
Copy link
Owner

try installing the following package: extra-cmake-modules

@pfr-dev
Copy link
Author

pfr-dev commented May 27, 2023

after installing extra-cmake-modules it get's a tiny bit further along but still stalls at the same error:

dave@void ~/Downloads/guifetch/build $ cmake ..                                                                                                                     main
-- The CXX compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:12 (find_package):
  By not providing "FindQt6.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt6", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt6" (requested
  version 6.4) with any of the following names:

    Qt6Config.cmake
    qt6-config.cmake

  Add the installation prefix of "Qt6" to CMAKE_PREFIX_PATH or set "Qt6_DIR"
  to a directory containing one of the above files.  If "Qt6" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!

@SrWither
Copy link
Owner

Another option is to add the qt6 path to the variable CMAKE_PREFIX_PATH

cmake -DCMAKE_PREFIX_PATH=/path/to/qt6/lib/cmake ..

@pfr-dev
Copy link
Author

pfr-dev commented May 29, 2023

It's a little over my head I think. I don't know where .../qt6/lib/cmake is exactly so unless you can narrow it down for me I'll likely just give up. Your README says it has been tested with Void so I just assumed it would work out of the box. :(

@SrWither
Copy link
Owner

I had tested it on voidlinux in January, and it compiled without problems, but for some reason cmake fails to find qt6 on your System

@SrWither
Copy link
Owner

According to my memories, probably qt6 is located in: /usr/share/qt6

I'm going to install voidlinux in a virtual machine to see what exactly happens and add it to the readme.md

@pfr-dev
Copy link
Author

pfr-dev commented May 30, 2023

ok so, /usr/share/qt6 does not exist. there is only /usr/share/qt5

dave@void $ whereis qt6
qt6: /usr/lib/qt6
dave@void /usr/lib/qt6 $ ll
drwxr-xr-x - root 26 May 21:21 bin
drwxr-xr-x - root 26 May 21:21 libexec
drwxr-xr-x - root 26 May 21:21 mkspecs
drwxr-xr-x - root 26 May 21:21 plugins
drwxr-xr-x - root 26 May 21:21 qml

@SrWither
Copy link
Owner

Ok, I know what is happening, cmake tries to find qt 6.4, but the latest version is 6.5, I have to remove the specific version and use the one it finds

@SrWither
Copy link
Owner

try again, cloning the repository again and compiling it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants