Ask Your Question
1

‘AlgorithmInfo’ does not name a type while building opencv_contrib

asked 2015-04-20 08:33:51 -0600

krips89 gravatar image

updated 2015-04-20 08:48:47 -0600

I am getting the following error while trying to build opencv with the contrib module

/opencv/opencv_contrib/modules/tracking/include/opencv2/tracking/tracker.hpp:577:11: error: ‘AlgorithmInfo’ does not name a type

The code is latest and pulled just now. After adding a forward declaration class AlgorithmInfo; to the file tracker.hpp that particular error is gone but I am getting other '‘AlgorithmInfo’ does not name a type' errors in other files. Probably AlgorithmInfo is not getting included somehow. Any ideas?

EDIT: After grepping AlgorithmInfo I found that there is no defination of AlgorithmInfo at all!

EDIT2: Comparing to the previous version of code I found AlgorithmInfo is defined at opencv2/core.hpp line 3006. But in the latest code, it is not present there at all!

edit retag flag offensive close merge delete

Comments

1

It makes so much of sense! I could build on latest opencv_contrib module. Thank you!

krips89 gravatar imagekrips89 ( 2015-04-20 14:13:04 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2015-04-20 09:57:33 -0600

mshabunin gravatar image

You should use same versions of opencv and opencv_contrib repositories. Checkout either 3.0.0-beta tag for both, either latest master branch commit.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-04-20 08:33:51 -0600

Seen: 1,719 times

Last updated: Apr 20 '15