[ITK-users] [ITK] ITKOpenCVBridge on Ubuntu 12.04: fatal error: itkOpenCVImageBridge.h: No such file or directory

Dženan Zukić dzenanz at gmail.com
Fri May 16 14:34:42 EDT 2014


Maybe you need to set path to OpenCV when you configure ITK with CMake. If
that does not work, try compiling OpenCV from source. I did not use video
bridge, but I successfully used OpenCV's objdetect module together with ITK
in my PhD project.


On Tue, May 13, 2014 at 10:34 PM, donelron <donelron at web.de> wrote:

> Hi Dzenan,
> thanks for the hint!
>
> I successfully added "Module_ITKVideoBridgeOpenCV" when building ITK.
> However, when running the make command directly after this I get:
>
> [ 95%] Building CXX object
>
> Modules/Video/BridgeOpenCV/src/CMakeFiles/ITKVideoBridgeOpenCV.dir/itkOpenCVVideoIO.cxx.o
> In file included from
>
> /home/ron/Downloads/itk/InsightToolkit-4.5.2/Modules/Video/BridgeOpenCV/src/itkOpenCVVideoIO.cxx:18:0:
>
> /home/ron/Downloads/itk/InsightToolkit-4.5.2/Modules/Video/BridgeOpenCV/include/itkOpenCVVideoIO.h:22:16:
> fatal error: cv.h: No such file or directory
> compilation terminated.
> make[2]: ***
>
> [Modules/Video/BridgeOpenCV/src/CMakeFiles/ITKVideoBridgeOpenCV.dir/itkOpenCVVideoIO.cxx.o]
> Error 1
> make[1]: ***
> [Modules/Video/BridgeOpenCV/src/CMakeFiles/ITKVideoBridgeOpenCV.dir/all]
> Error 2
> make: *** [all] Error 2
>
>
> Since cv.h is part of OpenCV I am assuming that this is rather a problem
> with OpenCV, not ITK?!?
> Any ideas how to solve it?
> By the way: I have installed OpenCV via the Ubuntu sudo apt-get install...
> So my OpenCV is not compiled from source.
>
>
>
>
> --
> View this message in context:
> http://itk-users.7.n7.nabble.com/ITKOpenCVBridge-on-Ubuntu-12-04-fatal-error-itkOpenCVImageBridge-h-No-such-file-or-directory-tp33907p33945.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140516/b9a575d8/attachment.html>


More information about the Insight-users mailing list