Open mariano-daniel opened 1 year ago
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
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:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DQt5Widgets_DIR=/opt/homebrew/opt/qt@5/lib/cmake/Qt5Widgets ..
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:
CMAKE_POLICY(SET CMP0006 OLD)
That makes cmake happy but then I run into problems during make:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:545:
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__functional/hash.h:184:12: error: no matching constructor for initialization of 'pair<unsigned long, unsigned long>'
return pair<_Size, _Size>(__a + __z, __b + __c);
^ ~~~~~~~~~~~~~~~~~~~~
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"