-
-
Notifications
You must be signed in to change notification settings - Fork 585
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 at heimdall-frontend/CMakeLists.txt:11 (find_package) #532
Comments
On many linux systems Qt5WidgetsConfig.cmake is provided by a package named qt5-qtbase or qt5-qtbase-dev, so check if you have one of those |
Hello & Thank you @Grimler91 ! I don't have any of those on MacOS neither I can find them on Brew. |
Brew installs Qt5 in a special location so you need to tell cmake where to find the libraries:
Also due to a newer version of cmake (CMP0006) you will need to add this line in heimdall-frontend/CMakeLists.txt and heimdall/CMakeLists.txt:
That makes cmake happy but then I run into problems during make:
This seems to be due to the C++ version? Maybe my gcc or Apple clang is too new? |
Thanks @depperson ! I will try this in the morning (02:10am here) and see if I get the same results! |
Check out https://github.com/fathonix/heimdall-osx-arm64 if all you need is an m1 compatible heimdall binary. |
$ cmake --version cmake version 3.27.4
When I run:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DQt5Widgets_DIR=/usr/local/opt/qt5/lib/cmake/Qt5Widgets ..
I get:
However, I cannot find
Qt5WidgetsConfig.cmake
norqt5widgets-config.cmake
anywhere.I googled to no avail but all the threads I found mention people finding these files and adding the dir to the env variable, but I cannot find these files.
Any help would be super appreciated"
The text was updated successfully, but these errors were encountered: