Repository: Benjamin-Dobell/Heimdall

Issue #356: heimdall-frontend using wrong heimdall binary
Created: 2016-07-20T08:42:30Z
After not getting packaged heimdall to work (both cli and gui), I compiled the master from git. The cli version worked perfectly (great work btw :) ) but the heimdall-frontend wouldnt. As an experiment I uninstalled the packaged heimdall and suddenly I get this message:
FRONTEND ERROR: Failed to start Heimdall!
I havent had a look at the code, but I assume its relying on whichever heimdall executable it finds in the path, as opposed to the one in the build/bin directory.

Duplicate issue #405: Heimdall frontend ERROR: Failed to start Heimdall!
Created: 2017-07-12T05:41:27Z
I'm on Mint 18.1, all the libs are installed.
When I compile release 1.4.2 or newest from GitHub, I later get an error:
FRONTEND ERROR: Failed to start Heimdall!
Build log:
$ make
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
[ 10%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/Arguments.cpp.o
[ 13%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/BridgeManager.cpp.o
In file included from /home/machine/Downloads/si9500/Heimdall-1.4.2/heimdall/source/BridgeManager.cpp:50:0:
/home/machine/Downloads/si9500/Heimdall-1.4.2/heimdall/source/SendFilePartPacket.h: In constructor ‘Heimdall::SendFilePartPacket::SendFilePartPacket(FILE*, unsigned int)’:
/home/machine/Downloads/si9500/Heimdall-1.4.2/heimdall/source/SendFilePartPacket.h:49:44: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
     (void)fread(data, 1, bytesToRead, file);
                                            ^
[ 16%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/ClosePcScreenAction.cpp.o
[ 20%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/DetectAction.cpp.o
[ 23%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/DownloadPitAction.cpp.o
[ 26%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/FlashAction.cpp.o
[ 30%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/HelpAction.cpp.o
[ 33%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/InfoAction.cpp.o
[ 36%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/Interface.cpp.o
[ 40%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/main.cpp.o
[ 43%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/PrintPitAction.cpp.o
/home/machine/Downloads/si9500/Heimdall-1.4.2/heimdall/source/PrintPitAction.cpp: In function ‘int Heimdall::PrintPitAction::Execute(int, char**)’:
/home/machine/Downloads/si9500/Heimdall-1.4.2/heimdall/source/PrintPitAction.cpp:142:64: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   (void)fread(pitFileBuffer, 1, localPitFileSize, localPitFile);
                                                                ^
[ 46%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/Utility.cpp.o
[ 50%] Building CXX object heimdall/CMakeFiles/heimdall.dir/source/VersionAction.cpp.o
[ 53%] Linking CXX executable ../bin/heimdall
[ 53%] Built target heimdall
Scanning dependencies of target heimdall-frontend_automoc
[ 56%] Automatic moc for target heimdall-frontend
Generating moc_aboutform.cpp
Generating moc_mainwindow.cpp
[ 56%] Built target heimdall-frontend_automoc
[ 60%] Generating qrc_mainwindow.cpp
RCC: Warning: No resources in '/home/machine/Downloads/si9500/Heimdall-1.4.2/heimdall-frontend/mainwindow.qrc'.
[ 63%] Generating ui_mainwindow.h
[ 66%] Generating ui_aboutform.h
Scanning dependencies of target heimdall-frontend
[ 70%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/aboutform.cpp.o
[ 73%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/Alerts.cpp.o
[ 76%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/FirmwareInfo.cpp.o
[ 80%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/main.cpp.o
[ 83%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/mainwindow.cpp.o
[ 86%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/PackageData.cpp.o
[ 90%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/source/Packaging.cpp.o
[ 93%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/qrc_mainwindow.cpp.o
[ 96%] Building CXX object heimdall-frontend/CMakeFiles/heimdall-frontend.dir/heimdall-frontend_automoc.cpp.o
[100%] Linking CXX executable ../bin/heimdall-frontend
[100%] Built target heimdall-frontend

Closing comment (2017-10-14T07:44:15Z): This looks like a dupe of #356, for which I left a comment with a simple working solution.