Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
When run the commond:
(darknet) learner@learner-pc:~/darknet/include/opencv/build$ make -j12
Then,there are problems in list:
[ 80%] Built target opencv_test_core
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Ubuntu 16.04.5 CUDA Version 9.0.176
Thank you very much.
this is only the outcome, not the actual error (which must be a few lines above), please have another look.
you can also disable the tests:
cmake -DBUILD_TESTS=OFF
Thank you very much.I'm doing that now.
collect2: error: ld returned 1 exit status modules/viz/CMakeFiles/opencv_test_viz.dir/build.make:233: recipe for target 'bin/opencv_test_viz' failed make[2]: * [bin/opencv_test_viz] Error 1 CMakeFiles/Makefile2:3863: recipe for target 'modules/viz/CMakeFiles/opencv_test_viz.dir/all' failed make[1]: [modules/viz/CMakeFiles/opencv_test_viz.dir/all] Error 2 make[1]: ** Waiting for unfinished jobs....
Yeah,this is the actual error,and what should I do next?
sure, however, it would be nice, to know the exact reason for the failure, no ?
as a sidenote, if you're mainly interested in getting opencv support fo darknet -- you do not need to build opencv with CUDA, it will only use basic image loading / gui / videocapture things.
Yes,you are right.But how can I get the basic function for darknet and run yolov3 right?
After a long time tried,I meet another error in the list:
modules/cudalegacy/CMakeFiles/opencv_cudalegacy.dir/build.make:338: recipe for target 'modules/cudalegacy/CMakeFiles/opencv_cudalegacy.dir/src/graphcuts.cpp.o' failed make[2]: * [modules/cudalegacy/CMakeFiles/opencv_cudalegacy.dir/src/graphcuts.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... CMakeFiles/Makefile2:9578: recipe for target 'modules/cudalegacy/CMakeFiles/opencv_cudalegacy.dir/all' failed make[1]: [modules/cudalegacy/CMakeFiles/opencv_cudalegacy.dir/all] Error 2 make[1]: * Waiting for unfinished jobs....
I'm so sad and just don't know how to solve it.
please don't put errormessages like that into comments, but edit your question, and add it there (where there's proper formatting)
and what you show is the outcome, not the actual problem. please look again, a few lines up from there.
Thank you very much! By many times tried,I succeed at last,I just try another tutorial and it works for me.And it's you teach me how to edit a question,which would help me to find the solution quickly. Send you the litter flower.
do you see the "edit" link, under your question ?
No,I don't see the ''edit'' link,I just find 101010 button.And I think this button is OK.