traits.hpp compile error opencv 3.4 [closed]

asked 2018-01-17 15:13:14 -0600

Hi all,

I'm trying to compile .so libraries for Android NDK. The cmake configs are for ndk version 9 and and using all the opencv-contrib modules. When I go to the directory after cmake has done configuring and generating I run make -j8 it runs for a while and then I get 3 errors in traits.hpp:

traits.hpp:366:18: error: ‘template<class _Tp> class cv::DataType’ used without template parameters
traits.hpp:366:34: error: expected primary-expression before ‘>’ token
traits.hpp:366:36: error: expected primary-expression before ‘}’ token

Am I doing something wrong?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2018-01-19 11:26:43.101286

Comments

  • " using all the opencv-contrib modules" -- please make sure, to use exact same versions of opencv and opencv_contrib. when in doubt, update both to latest master
  • yes, there were changes to the DataType / traits code, but again, it looks like a synchonization problem from here
  • any chance, you can find out where this is thrown ? (and maybe using -j1 only will make the output less cluttered)
berak gravatar imageberak ( 2018-01-18 06:10:16 -0600 )edit

@berak Thank you so much that was apparently the problem. I was using an older version of opencv-contrib. Thank you! You may write that as an answer and I will accept it.

anonymouse gravatar imageanonymouse ( 2018-01-18 08:59:50 -0600 )edit