Bug 227920 - Cannot compile: opencv/highgui.h missing for remove red eyes tool
Summary: Cannot compile: opencv/highgui.h missing for remove red eyes tool
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 1.2.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-21 12:07 UTC by Simon
Modified: 2017-08-19 20:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2010-02-21 12:07:50 UTC
Version:           1.2.0 (rev.: 1085904) (using 4.3.4 (KDE 4.3.4), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.32-8.slh.2-sidux-686

For about one or two weeks:

In file included from /data/cworkspace/graphics/kipi-plugins/removeredeyes/detection/locators/locatorfactory.cpp:33:
/data/cworkspace/graphics/kipi-plugins/removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.h:37:28: error: opencv/highgui.h: Datei oder Verzeichnis nicht gefunden

And yes, I _did_ do a svn up.
Comment 1 Johannes Wienke 2010-02-21 12:17:42 UTC
This is a header from the OpenCV library. Is this library installed on your system? Does locate highgui.h find the file?
Comment 2 Simon 2010-02-21 12:30:22 UTC
No, highgui.h cannot be found.

# apt-get install libopencv-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Status-Informationen einlesen... Fertig
Paket libopencv-dev ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es veraltet
ist oder nur aus einer anderen Quelle verfügbar ist.
Doch die folgenden Pakete ersetzen es:
  libcv-dev
E: Paket libopencv-dev hat keinen Installationskandidaten
# apt-get install libcv-dev
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut
Status-Informationen einlesen... Fertig
libcv-dev ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 19 nicht aktualisiert.
Comment 3 Johannes Wienke 2010-02-21 12:36:14 UTC
You are missing libhighgui-dev, I suspect. Nevertheless, normally this should be discovered by the cmake script.
Comment 4 Simon 2010-02-21 13:47:28 UTC
Alright, working now. 
cmake indeed did not mention anything.

Thank you.
Comment 5 Johannes Wienke 2010-02-21 14:47:24 UTC
Can it be true that you updated a lot of your system in the background without rebuilding the cmake script? Did you try a fresh build for digikam?
Comment 6 Simon 2010-02-21 15:06:44 UTC
What I usually do if digikam does not compile is running cmake again and then make clean && make -j3. Didn't do a dist-upgrade today, only installed libhighgui-dev after you told me to do so.
Comment 7 Johannes Wienke 2010-02-21 19:16:38 UTC
Running cmake again only helps if you delete the CMakeCache.txt in your build folder before.
Comment 8 Simon 2010-02-21 21:19:44 UTC
Okay -- didn't know that. Thanks.
Comment 9 Johannes Wienke 2010-02-21 21:38:09 UTC
I close this as invalid now because I suspect a cmake caching problem.