Makefile:160: recipe for target 'all' failed make: *** [all] Error 2

asked 2018-08-30 00:56:57 -0600

today gravatar image

updated 2018-09-07 22:29:28 -0600

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.

edit retag flag offensive close merge delete

Comments

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

berak gravatar imageberak ( 2018-08-30 01:30:01 -0600 )edit

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?

today gravatar imagetoday ( 2018-08-30 05:21:32 -0600 )edit

sure, however, it would be nice, to know the exact reason for the failure, no ?

berak gravatar imageberak ( 2018-08-30 05:25:32 -0600 )edit

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.

berak gravatar imageberak ( 2018-08-30 05:27:17 -0600 )edit

Yes,you are right.But how can I get the basic function for darknet and run yolov3 right?

today gravatar imagetoday ( 2018-08-30 06:14:01 -0600 )edit

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.

today gravatar imagetoday ( 2018-08-30 07:29:37 -0600 )edit

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.

berak gravatar imageberak ( 2018-08-30 07:33:05 -0600 )edit

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.

today gravatar imagetoday ( 2018-08-31 01:01:47 -0600 )edit

do you see the "edit" link, under your question ?

berak gravatar imageberak ( 2018-08-31 01:03:49 -0600 )edit

No,I don't see the ''edit'' link,I just find 101010 button.And I think this button is OK.

today gravatar imagetoday ( 2018-08-31 01:44:43 -0600 )edit