How to avoid interfering namespace issues between the Juce Framework and OpenCV?
-
17-12-2020 - |
Question
I created an Juce Audio-Plugin project with the introjucer and Xcode4.
All works fine until I added #include <cv.h>
into my code.
I got 317 issues in the OpenCV files: core.hpp, operations.hpp, mat.hpp, imgproc.hpp, features2d.hpp, objdetect.hpp that 'juce::Point' is not a type
and some other namespace errors...
I tried to set the #include <cv.h>
above all other includes and below...
Does anyone have an idea?
Solution
Solved the problem for the moment: I have added all opencv include instructions at the top of the PluginEditor.cpp
. But I have a new problem: Compile issues with OpenCV and Juce on Xcode4.1 in 32bit on Lion.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow