Ask Your Question
0

About openCV and CMake

asked 2018-07-09 23:43:40 -0600

I followed https://github.com/IntelRealSense/lib... and met a few problems. When I build the solution in visual studio,

Error C2440 'return': cannot convert from 'testing::internal::ParamGenerator<std::tuple<opencv_test::<code>anonymous-namespace'::anonymous-namespace'::DNNBackend,opencv_test::anonymous-namespace'::anonymous-namespace'::DNNTarget>>' to 'testing::internal::ParamGenerator<std::tuple<opencv_test::<code>anonymous-namespace'::anonymous-namespace'::DNNBackend,opencv_test::anonymous-namespace'::anonymous-namespace'::DNNTarget>>'

The error occurs. What is wrong.. help me please

edit retag flag offensive close merge delete

Comments

I cloned opencv-3.4.

Sorry I am not used to CMake.. where can I command that? I am using Window.

kkp1205 gravatar imagekkp1205 ( 2018-07-10 02:25:39 -0600 )edit

Take a look here: https://docs.opencv.org/3.4/d3/d52/tu... Its a bit painfull under windows - but you can use mingw - its described in the link.

holger gravatar imageholger ( 2018-07-10 02:40:05 -0600 )edit

you could try to disable the tests (when building the opencv libs) with

cmake -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF
berak gravatar imageberak ( 2018-07-10 02:46:44 -0600 )edit

Okay I will try.. thank you

kkp1205 gravatar imagekkp1205 ( 2018-07-10 02:49:58 -0600 )edit

it's still unclear, why it fails.

berak gravatar imageberak ( 2018-07-10 02:51:51 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2018-07-10 03:29:31 -0600

berak gravatar image

it's not your fault, but a bug

please watch the issue / pr, and update, once this is solved.

edit flag offensive delete link more

Comments

Okay thank you ㅠㅠ

kkp1205 gravatar imagekkp1205 ( 2018-07-10 19:33:05 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-07-09 23:43:40 -0600

Seen: 119 times

Last updated: Jul 10 '18

Related questions