OpenKAI icon indicating copy to clipboard operation
OpenKAI copied to clipboard

Error when trying to make OpenKAI on Jetson TX2

Open aman-patel opened this issue 6 years ago • 2 comments

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!

aman-patel avatar Jan 20 '20 09:01 aman-patel

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

yankailab avatar Mar 16 '21 19:03 yankailab

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

405410049 avatar Mar 22 '21 08:03 405410049