Ask Your Question

Revision history [back]

traits.hpp compile error opencv 3.4

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?