codrive
codrive copied to clipboard
Cross compile error
Hey @larrylart, During compilation of he code on VIM3, did you do it using cross compiler? If so, does this demo work using cross compiler?
Hi @AkkiSony, no I didn't cross-compile. It seems that you are missing opencv4.
Hi @larrylart, Thank you for the clarification. I have installed OpenCV4 already in the virtual environment! Do, I have to set the path somewhere? I am currently running this 'make' on host PC (Ubuntu 18.04). Hope, I am doing it right? I assumed this because in the make file, it requires us to set the path to SDK. SDK lies in the host PC (Ubuntu 18.04).
Please give me a clarity. Does this demo run on PC or on khadas board?
@larrylart. I guess, I had to run it on VIM3.
I got the following output. What am I missing? :/
khadas@Khadas:~/NPU-demo/codrive/hw_sampling/vim3_npu$ make aarch64-linux-gnu-g++ -o obj/aml_obj_detect.o -O3 --std=c++11 -mcpu=cortex-a73 -funsafe-math-optimizations -ftree-vectorize -fPIC -I. -I./inc lude/ -I./include/aml_sdk/ -I./include/aml_sdk/HAL -I./include/ovxlib/ -I/usr/include/opencv4/opencv -I/usr/include/opencv4 -c aml_obj_detect .cpp Assembler messages: Fatal error: can't create obj/aml_obj_detect.o: File or directory not found make: *** [Makefile:60: obj/aml_obj_detect.o] Failure 1