openframeworks / openframeworks/openFrameworks
Project using ofxOpenCv not building on Windows.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked forum discussion and the apothecary formula used to build OpenCV 3.10 for Windows. Reproduce the unresolved ippicvi symbols in the empty project with Visual Studio 2015, then determine whether the formula's IPP configuration is responsible. Done means the ofxOpenCv project links successfully in both Debug and Release.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, opencv
- Domain
- build-system, computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100