yankailab / OpenKAI

OpenKAI: A modern framework for unmanned vehicle and robot control
GNU Affero General Public License v3.0
232 stars 93 forks source link

Error when trying to make OpenKAI on Jetson TX2 #41

Open aman-patel opened 4 years ago

aman-patel commented 4 years ago

Hi,

I'm trying to run openKAI on the Nvidia Jetson TX2 flashed with the jetpack 3.3.1. I have installed OpenCV 3.4.0 on the TX2.

I'm getting the following error when I run the make command :

/home/nvidia/OpenKAI/src/Detector/_DNNdetect.cpp: In constructor ‘kai::_DNNdetect::_DNNdetect()’: /home/nvidia/OpenKAI/src/Detector/_DNNdetect.cpp:22:15: error: ‘DNN_BACKEND_OPENCV’ is not a member of ‘cv::dnn’ m_iBackend = cv::dnn::DNN_BACKEND_OPENCV; ^ /home/nvidia/OpenKAI/src/Detector/_OpenPose.cpp: In constructor ‘kai::_OpenPose::_OpenPose()’: /home/nvidia/OpenKAI/src/Detector/_OpenPose.cpp:19:15: error: ‘DNN_BACKEND_OPENCV’ is not a member of ‘cv::dnn’ m_iBackend = dnn::DNN_BACKEND_OPENCV; ^ CMakeFiles/OpenKAI.dir/build.make:1286: recipe for target 'CMakeFiles/OpenKAI.dir/src/Detector/_OpenPose.cpp.o' failed make[2]: [CMakeFiles/OpenKAI.dir/src/Detector/_OpenPose.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... CMakeFiles/OpenKAI.dir/build.make:1262: recipe for target 'CMakeFiles/OpenKAI.dir/src/Detector/_DNNdetect.cpp.o' failed make[2]: [CMakeFiles/OpenKAI.dir/src/Detector/_DNNdetect.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/OpenKAI.dir/all' failed make[1]: [CMakeFiles/OpenKAI.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

I am following the steps of the documentation : http://docs.openkai.xyz/tegrabuild.html#jetson-inference-batch.

Any help regarding the issue would be great. Thanks you!

yankailab commented 3 years ago

Hi, I think you need to upgrade to OpenCV > 4.0 to solve the issue, here is a reference: https://github.com/yankailab/OpenKAI/blob/037250ccd8614f068900a7ca18ac3c82c5879b42/sh/Setup/OpenKAI_dev_setup.sh#L138

405410049 commented 3 years ago

Hi, I follow OpenKAI/sh/Setup/OpenKAI_dev_setup.sh to make OpenKai on Tx2, bit I got some errors and I don't know where is wrong My jetpack version is 4.4

I would appreciate it if someone can help Thanks you!

my error message:

image

my ccmake environment:

image