Heimdall icon indicating copy to clipboard operation
Heimdall copied to clipboard

Error Compiling

Open Travis-Ecc opened this issue 7 years ago • 4 comments

I have followed the instructions at https://wiki.cyanogenmod.org/w/Install_and_compile_Heimdall#Windows However when I use the last command I get an error

$ cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release -DQt5Widgets_DIR=/mingw64/qt5-static/lib/cmake/Qt5Widgets .. -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:3 (project): The CMAKE_C_COMPILER:

gcc.exe

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:3 (project): The CMAKE_CXX_COMPILER:

g++.exe

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

CMake Error: CMAKE_AR was not found, please set to archive program. CMAKE_AR-NOTFOUND -- Configuring incomplete, errors occurred!

I'm new to this so step by step stupid instructions are required

Travis-Ecc avatar Nov 29 '16 06:11 Travis-Ecc

Hi Travis, I had the same error, this error means there's no compiler installed. This can be corrected by issuing the following command: pacman -S gcc

The next problem you could run into is that you will get this error, see also this issue: https://github.com/Benjamin-Dobell/Heimdall/issues/377 Could NOT find libusb (missing: LIBUSB_LIBRARY)

I have not found a way around this one on windows, on arch linux the compile goes without problems. Hope this helps, Cedric

cdwijs avatar Dec 03 '16 09:12 cdwijs

Hi Travis, I have asked the LIBUSB error to the msys2 folks, the answer is here: I did not test it myself https://github.com/Alexpux/MSYS2-packages/issues/765

Cheers, Cedric

cdwijs avatar Dec 04 '16 04:12 cdwijs

I'm having this problem as well. Followed the steps from win32/readme with the addition of a gcc installation.

CMake Error at C:/msys64/mingw64/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message): Could NOT find libusb (missing: LIBUSB_LIBRARY) Call Stack (most recent call first): C:/msys64/mingw64/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) cmake/Findlibusb.cmake:30 (find_package_handle_standard_args) heimdall/CMakeLists.txt:9 (find_package)

ghost avatar Dec 04 '16 21:12 ghost

Found this searching for a Linux make, error's BridgeManager.cpp:(.text+0xxxx): undefined reference to `libusb_xxxxxx'

Solution was to edit ~/git/Heimdall/build [master|…1] 17:45 $ gvim heimdall/CMakeFiles/heimdall.dir/link.txt

and add a flag -lusb-1.0 to the end.

diepes avatar Dec 11 '17 04:12 diepes