How to solve "make" issue while cross-compiling on the ubuntu

I am trying to cross-compile this (ultralytics/yolov5) project on my ubuntu machine. Since I am compiling it for my another machine "raspberry Pi" so I already installed the toolchain which is in my following path /home/master/tools-master

After cloning the "yolov5" repo, I added the CMakeLists.txt file in that. So I had clone this repo in a folder "YOLO" hence the YOLO folder contains the coned repo "yolov5" and "bin" folder for building make files. Within the directory ~/Desktop/YOLO/bin when I run the following command "cmake -DCMAKE_TOOLCHAIN_FILE=/home/user/master/Toolchain-RaspberryPi.cmake ../yolov5" It successfully build the executable file but after this when I run the "make" command within the ~/Desktop/YOLO/bin I get the following error.

Scanning dependencies of target yolov5
[100%] Linking CXX executable yolov5
arm-linux-gnueabihf-g++: fatal error: no input files
compilation terminated.
make[2]: *** [CMakeFiles/ yolov5] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/ Error 2
make: *** [Makefile:84: all] Error 2

Can you help me know since I am just on my last edge to build the binary file before transferring it into my rpi and encountering this error

4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like