Skycoder42 / QHotkey

A global shortcut/hotkey for Desktop Qt-Applications
BSD 3-Clause "New" or "Revised" License
548 stars 161 forks source link

Failed to build, error at /lib/QHotkey/CMakeLists.txt (find_package) (i just need some help) #84

Open Kakoks opened 1 year ago

Kakoks commented 1 year ago

Void Linux Qt 6.4.2

So i have been trying to build albert and it requires QHotkey, trying to build albert there is an error when i run the first cmake, shows this:

[void@VOID albert]$ cmake -B build -S . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug CMake Error at lib/QHotkey/CMakeLists.txt:16 (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.2.0) 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! See also "/home/void/albert/build/CMakeFiles/CMakeOutput.log".

From now on i don't really know what to do, i asked on the albert discord and they suggested me that i should talk here for more info, this is just a post looking for help for a noob.

Kakoks commented 1 year ago

Got some help, had to install all the devel packages since arch bundles them all together. Went well for a while but then i showed this:

Make Warning at plugins/python/CMakeLists.txt:14 (find_package): By not providing "Findpybind11.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "pybind11", but CMake did not find one.

Could not find a package configuration file provided by "pybind11" with any of the following names:

pybind11Config.cmake
pybind11-config.cmake

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

-- Configuring done CMake Error at plugins/python/CMakeLists.txt:15 (target_link_libraries): Target "python" links to:

pybind11::embed

but the target was not found. Possible reasons include:

* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.