Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
error building ```opencv_contrib/modules/tracking/include/opencv2/tracking/tracker.hpp``` #618
Found the problem, it is a macro re-definition issue. There are three places where
The last is from the opencv_contrib repo:
The reason that the error is so cryptic is because the preprocessor is apparently expanding the
What I did to fix my build was to change the
I am not sure if there is a more appropriate way to do it, but I was not able to find a way to test for the definition of a function-like macro (so as to avoid re-defining it). Perhaps, if the macro is only called twice, it may be done away with and just be manually expanded in the code.
Thanks for investigation!
This definition should go away from public header file and moved into .cpp file directly.
The correct form of macro is (put arg into brackets):
or use something like this: