[Digikam-devel] Review Request 119413: Limit linking kipi-plugins to OpenCV libraries to only needed components

Gilles Caulier caulier.gilles at gmail.com
Wed Jul 23 11:07:59 BST 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119413/#review62932
-----------------------------------------------------------


Kipi-plugins won't link against OpenCV :

Undefined symbols for architecture x86_64:
  "_cvArcLength", referenced from:
      KIPIRemoveRedEyesPlugin::CBlobGetHullPerimeter::operator()(KIPIRemoveRedEyesPlugin::CBlob const&) const in Blob.cpp.o
  "_cvContourArea", referenced from:
      KIPIRemoveRedEyesPlugin::CBlobGetHullArea::operator()(KIPIRemoveRedEyesPlugin::CBlob const&) const in Blob.cpp.o
  "_cvConvexHull2", referenced from:
      KIPIRemoveRedEyesPlugin::CBlob::GetConvexHull(CvSeq**) const in Blob.cpp.o
      KIPIRemoveRedEyesPlugin::CBlobGetHullPerimeter::operator()(KIPIRemoveRedEyesPlugin::CBlob const&) const in Blob.cpp.o
      KIPIRemoveRedEyesPlugin::CBlobGetHullArea::operator()(KIPIRemoveRedEyesPlugin::CBlob const&) const in Blob.cpp.o
  "_cvCvtColor", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::findPossibleEyes(double, int, char const*) in haarclassifierlocator.cpp.o
  "_cvDilate", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::generateMask(int, CvSeq*) in haarclassifierlocator.cpp.o
  "_cvErode", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::generateMask(int, CvSeq*) in haarclassifierlocator.cpp.o
  "_cvFillImage", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::findBlobs(_IplImage*, int) in haarclassifierlocator.cpp.o
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::allocateBuffers() in haarclassifierlocator.cpp.o
  "_cvFitEllipse2", referenced from:
      KIPIRemoveRedEyesPlugin::CBlob::GetEllipse() const in Blob.cpp.o
  "_cvHaarDetectObjects", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::findPossibleEyes(double, int, char const*) in haarclassifierlocator.cpp.o
  "_cvLoadImage", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::startCorrection(QString const&, QString const&) in haarclassifierlocator.cpp.o
  "_cvReleaseHaarClassifierCascade", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::findPossibleEyes(double, int, char const*) in haarclassifierlocator.cpp.o
  "_cvSaveImage", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::saveImage(QString const&, KIPIRemoveRedEyesPlugin::Locator::SaveResult) in haarclassifierlocator.cpp.o
  "_cvSmooth", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::removeRedEyes() in haarclassifierlocator.cpp.o
  "_cvThreshold", referenced from:
      KIPIRemoveRedEyesPlugin::HaarClassifierLocator::generateMask(int, CvSeq*) in haarclassifierlocator.cpp.o
[ 49%] ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

- Gilles Caulier


On July 23, 2014, 9:13 a.m., Vadim Zhukov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119413/
> -----------------------------------------------------------
> 
> (Updated July 23, 2014, 9:13 a.m.)
> 
> 
> Review request for Digikam.
> 
> 
> Repository: kipi-plugins
> 
> 
> Description
> -------
> 
> 1. Force resetting OpenCV_LIBS before calling find_package() to make sure no extra libraries sneak in target_link_libraries() calls.
> 2. Limit KIPI plugins linking to only OpenCV components it really uses.
> 
> This, in particular, unbreaks building Digikam on OpenBSD, where different OpenCV components live in different packages. Before the patch, this forced to always have all OpenCV components installed, even if they aren't really needed while neither building or running Digikam.
> 
> Related reviews: https://git.reviewboard.kde.org/r/119201/ and https://git.reviewboard.kde.org/r/119414/ . All those three patches should be applied to have an effect on Digikam SC build.
> 
> 
> Diffs
> -----
> 
>   CMakeLists.txt 8a4a0d4 
> 
> Diff: https://git.reviewboard.kde.org/r/119413/diff/
> 
> 
> Testing
> -------
> 
> OpenBSD/i386-CURRENT
> 
> 
> Thanks,
> 
> Vadim Zhukov
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20140723/642cd025/attachment.html>


More information about the Digikam-devel mailing list