Skip to content
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

Cross compile error #7

Open
AkkiSony opened this issue Jul 13, 2021 · 3 comments
Open

Cross compile error #7

AkkiSony opened this issue Jul 13, 2021 · 3 comments

Comments

@AkkiSony
Copy link

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?
COdrive-error

@larrylart
Copy link
Owner

Hi @AkkiSony, no I didn't cross-compile. It seems that you are missing opencv4.

@AkkiSony
Copy link
Author

AkkiSony commented Jul 13, 2021

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?

@AkkiSony
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants