-
-
Notifications
You must be signed in to change notification settings - Fork 587
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
Can't compile on MacOS Sierra 10.12.6 #428
Comments
@derwentx I dont think you are using the latest release. Check the releases tab and download 1.4.2. cd ~/Downloads/Heimdall-1.4.2/
mkdir build
cd build Then running this command -- The C compiler identification is AppleClang 9.0.0.9000037
-- The CXX compiler identification is AppleClang 9.0.0.9000037
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found libusb: /usr/local/lib/libusb-1.0.a
-- Checking if large (64-bit) file support is available...
-- Checking if large (64-bit) file support is available - yes
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.8")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/derekscott/Downloads/Heimdall-1.4.2/build Then running Scanning dependencies of target pit
[ 3%] Building CXX object libpit/CMakeFiles/pit.dir/source/libpit.cpp.o
[ 6%] Linking CXX static library libpit.a
[ 6%] Built target pit
Scanning dependencies of target heimdall
[ 9%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/Arguments.cpp.o
[ 12%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/BridgeManager.cpp.o
[ 15%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/ClosePcScreenAction.cpp.o
[ 18%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/DetectAction.cpp.o
[ 21%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/DownloadPitAction.cpp.o
[ 24%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/FlashAction.cpp.o
[ 27%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/HelpAction.cpp.o
[ 30%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/InfoAction.cpp.o
[ 33%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/Interface.cpp.o
[ 36%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/main.cpp.o
[ 39%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/PrintPitAction.cpp.o
[ 42%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/Utility.cpp.o
[ 45%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/VersionAction.cpp.o
[ 48%] Linking CXX executable ../bin/heimdall
[ 48%] Built target heimdall
Scanning dependencies of target heimdall-frontend_autogen
[ 51%] Generating qrc_mainwindow.cpp
RCC: Warning: No resources in '/Users/derekscott/Downloads/Heimdall-1.4.2/heimdall-frontend/mainwindow.qrc'.
[ 54%] Generating ui_mainwindow.h
[ 57%] Generating ui_aboutform.h
[ 60%] Automatic MOC for target heimdall-frontend
Generating MOC source CAWN4ZDDTK/moc_aboutform.cpp
Generating MOC source CAWN4ZDDTK/moc_mainwindow.cpp
Generating MOC compilation mocs_compilation.cpp
[ 60%] Built target heimdall-frontend_autogen
Scanning dependencies of target heimdall-frontend
[ 63%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/aboutform.cpp.o
[ 66%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/Alerts.cpp.o
[ 69%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/FirmwareInfo.cpp.o
[ 72%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/main.cpp.o
[ 75%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/mainwindow.cpp.o
[ 78%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/PackageData.cpp.o
[ 81%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/Packaging.cpp.o
[ 84%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/qrc_mainwindow.cpp.o
[ 87%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/heimdall-frontend_autogen/mocs_compilation.cpp.o
[ 90%] Linking CXX executable ../bin/heimdall-frontend.app/Contents/MacOS/heimdall-frontend
[100%] Built target heimdall-frontend |
Doesn't work for me either... |
Hey @johnny13 , git show
cat heimdall/source/Interface.cpp | grep 'version =' const char *version = "v1.4.2"; cat heimdall-frontend/aboutform.ui| grep Version <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Version 1.4.2</p> The only difference between between our cmake outputs is that yours said cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DQt5Widgets_DIR=/usr/local/opt/qt5/lib/cmake/Qt5Widgets ..
The only difference now is that mine says
So I pulled the exact revision that was released as v1.4.2, and got a bit further than previously: git checkout 699549e3c661e868656147cdad35189469198f4d
git show
Cleared build and re-ran the rm -rf build
mkcd build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DQt5Widgets_DIR=/usr/local/opt/qt5/lib/cmake/Qt5Widgets ..
LIBRARY_PATH=/usr/local/lib make
However I am able to It seems like commit cc44b34 #408 breaks the linking stage for my system, any thoughts @Benjamin-Dobell @grayed ? Thanks. TL;DR: If you are on the latest commit of heimdall and your cmake output looks like this, checkout a previous version of heimdall and try building that. git checkout 699549e3c661e868656147cdad35189469198f4d @mateuszk87 |
Had the same issue. The problem is not libusb itself but that it requires the CoreFoundation and IOKit frameworks that are not explicitly linked in. There might be better ways to fix this (I'm not a Mac expert) but adding the below to the
|
Same problem.
Same solution as the @Fimagena one except I don't see how it can found |
For anyone coming from Mojave, you now need to add
(i.e. add three lines to the existing libusb)
(last line new) and then it compiles |
Hi There, here are the steps I've used to try to compile Heimdall on my system from the latest unmodified version on GitHub as per the instructions in appendix B
With additional tips mentioned here when the vanilla instructions didn't work.
$ pwd
$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DQt5Widgets_DIR=/usr/local/opt/qt5/lib/cmake/Qt5Widgets -DDISABLE_FRONTEND=ON ..
From this it looks like something is going wrong in the linking stage when trying to find libusb, but I certainly have libusb installed
$ pkg-config --list-all | grep libusb
some libusb information:
Nothing interesting in my
brew doctor
And some info about my system:
When I install using the installer, it works fine but I'm trying to install from source because I'm having issues with my Samsung Galaxy S5 klte not downloading the pit file on my windows or mac machines.
Thanks.
The text was updated successfully, but these errors were encountered: