Test Files for opencv_contrib/modules/dnn_modern/samples/simple_test.cpp

asked 2017-02-24 19:02:04 -0500

sisi004 gravatar image

updated 2017-02-25 09:44:22 -0500

Hello, In ubuntu 15.10, cuda 7.5 on GTX750M, with g++ 4.9.2, i'm trying to install opencv3.2, i updated my cmake to 3.4 because i realized that my dnn_modern don't was founded, but now i get this error:

[ 36%] Building CXX object modules/bgsegm/CMakeFiles/example_bgsegm_bgfg_gmg.dir/samples/bgfg_gmg.cpp.o /home/elaura/Documentos/App/opencv_contrib/modules/dnn_modern/samples/simple_test.cpp: In function ‘std::vector > get_label_list(const string&)’: /home/elaura/Documentos/App/opencv_contrib/modules/dnn_modern/samples/simple_test.cpp:37:59: error: ‘runtime_error’ was not declared in this scope throw runtime_error("failed to open:" + label_file);

[ 36%] Linking CXX executable ../../bin/example_dnn_torch_enet modules/dnn_modern/CMakeFiles/example_dnn_modern_simple_test.dir/build.make:62: recipe for target 'modules/dnn_modern/CMakeFiles/example_dnn_modern_simple_test.dir/samples/simple_test.cpp.o' failed make[2]: * [modules/dnn_modern/CMakeFiles/example_dnn_modern_simple_test.dir/samples/simple_test.cpp.o] Error 1 CMakeFiles/Makefile2:9431: recipe for target 'modules/dnn_modern/CMakeFiles/example_dnn_modern_simple_test.dir/all' failed make[1]: * [modules/dnn_modern/CMakeFiles/example_dnn_modern_simple_test.dir/all] Error 2 make[1]: * Se espera a que terminen otras tareas....

[ 36%] Building CXX object modules/xobjdetect/CMakeFiles/opencv_xobjdetect.dir/src/waldboost.cpp.o

Where are the files for simple_test?

Thank you

edit retag flag offensive close merge delete

Comments

g++ --version ?

does adding #include <stdexcept> help ?

berak gravatar imageberak ( 2017-02-25 01:18:39 -0500 )edit

Hi, version 4.9, i added your suggestion but nothing, always error with simple_test.cpp.

sisi004 gravatar imagesisi004 ( 2017-02-25 09:37:01 -0500 )edit

try to replace this line with:

 cerr << "file not found " << label_file << endl;
 exit(0);

it's still experimental code, expect some warts, and get bold !

berak gravatar imageberak ( 2017-02-26 01:37:03 -0500 )edit