openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.97k stars 2.55k forks source link

Project using ofxOpenCv not building on Windows. #4954

Open smallfly opened 8 years ago

smallfly commented 8 years ago

Hi,

(I did post on the forum before opening this issue, here is the link as reference)

I'm having issues using ofxOpenCv (OpenCv 3.10) with the current master branch on Windows / VS 2015.

I have setup an empty project, only including ofxOpenCv. The header files and static libraries seem properly included and linked. The 'Additional Include Directories', 'Additional Dependencies' and 'Additional Library Directories' properties appear to be correct (for both configurations: Debug and Release). But I get a bunch of ' unresolved external symbol' errors, such as:

2>opencv_core310d.lib(copy.obj) : error LNK2019: unresolved external symbol ippicviMirror_8u_C1R referenced in function "bool __cdecl cv::ipp_flip(class cv::Mat &,class cv::Mat &,int)" (?ipp_flip@cv@@YA_NAEAVMat@1@0H@Z)
2>opencv_core310d.lib(copy.obj) : error LNK2019: unresolved external symbol ippicviMirror_8u_C3R referenced in function "bool __cdecl cv::ipp_flip(class cv::Mat &,class cv::Mat &,int)" (?ipp_flip@cv@@YA_NAEAVMat@1@0H@Z)
2>opencv_core310d.lib(copy.obj) : error LNK2019: unresolved external symbol ippicviMirror_8u_C4R referenced in function "bool __cdecl cv::ipp_flip(class cv::Mat &,class cv::Mat &,int)" (?ipp_flip@cv@@YA_NAEAVMat@1@0H@Z)
2>opencv_core310d.lib(copy.obj) : error LNK2019: unresolved external symbol ippicviMirror_8u_C1IR referenced in function "bool __cdecl cv::ipp_flip(class cv::Mat &,class cv::Mat &,int)" (?ipp_flip@cv@@YA_NAEAVMat@1@0H@Z)
...

To this @arturoc replied:

that looks like opencv would be trying to use ipp functions. might be that the apothecary formula was misconfigured, i'd try recompiling opencv again by running the apothecary formula but looking for any flag that would disable ipp

I have never touched to any of the apotherary formulas. I will try my best to fix this.

haschdl commented 8 years ago

Just when I was about to give OpenCV a try 😀 I hadn't noticed I had 'master' until I ran into this problem. Any updates on the issue?