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

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

Open
Kakoks opened this issue Mar 3, 2023 · 1 comment

Comments

@Kakoks
Copy link

Kakoks commented Mar 3, 2023

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
Copy link
Author

Kakoks commented Mar 3, 2023

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.

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

1 participant