<div dir="ltr"><div><div>I have also tried adding ITKVideoIO in TEST_DEPENDS (which does not make much sense to me?), same link error...<br><br></div>If it helps, I can prepare a docker build file to track this error (for anyone willing to help)?<br><br></div>Thanks<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 6:59 PM, Williamson, Zachary E <span dir="ltr"><<a href="mailto:zachary-williamson@uiowa.edu" target="_blank">zachary-williamson@uiowa.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>It's the test driver that is failing here, make sure that all of the modules needed for the tests are included under TEST_DEPENDS.</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com" target="_blank">arnaudgelas@gmail.com</a>><br>
<b>Sent:</b> Friday, August 14, 2015 11:34 AM<br>
<b>To:</b> Matt McCormick<br>
<b>Cc:</b> <a href="mailto:insight-developers@itk.org" target="_blank">insight-developers@itk.org</a>; Williamson, Zachary E<br>
<b>Subject:</b> Re: [ITK-dev] link failure ITKVideoBridgeOpenCVHeaderTest1 on Ubuntu 14.04</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Here is the resulting link error:<br>
<br>
[1563/1563] Linking CXX executable bin/ITKVideoBridgeOpenCVTestDriver<br>
FAILED: : && /usr/lib/ccache/c++ -Wall -Wextra -Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch -Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings -funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof
-Woverloaded-virtual -Wstrict-null-sentinel -Wno-array-bounds -msse2 -g Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/ITKVideoBridgeOpenCVTestDriver.cxx.o Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/itkOpenCVVideoCaptureTest.cxx.o
Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/itkOpenCVImageBridgeGrayScaleTest.cxx.o Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/itkOpenCVImageBridgeRGBTest.cxx.o Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/itkOpenCVVideoIOTest.cxx.o
Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/itkOpenCVVideoIOFactoryTest.cxx.o Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/itkOpenCVBasicTypeBridgeTest.cxx.o -o bin/ITKVideoBridgeOpenCVTestDriver
-rdynamic lib/libitkdouble-conversion-4.9.so.1 lib/libITKIOBMP-4.9.so.1 lib/libITKIOGDCM-4.9.so.1 lib/libITKIOGIPL-4.9.so.1 lib/libITKIOImageBase-4.9.so.1 lib/libITKIOJPEG-4.9.so.1 lib/libITKIOMeta-4.9.so.1 lib/libITKIONIFTI-4.9.so.1 lib/libITKIONRRD-4.9.so.1
lib/libITKIOPNG-4.9.so.1 lib/libITKIOTIFF-4.9.so.1 lib/libITKIOVTK-4.9.so.1 lib/libitksys-4.9.so.1 lib/libITKVideoBridgeOpenCV-4.9.so.1 /home/arnaud/install/lib/libopencv_videostab.so.2.4.9 /home/arnaud/install/lib/libopencv_video.so.2.4.9 /home/arnaud/install/lib/libopencv_ts.a
/home/arnaud/install/lib/libopencv_superres.so.2.4.9 /home/arnaud/install/lib/libopencv_stitching.so.2.4.9 /home/arnaud/install/lib/libopencv_photo.so.2.4.9 /home/arnaud/install/lib/libopencv_ocl.so.2.4.9 /home/arnaud/install/lib/libopencv_objdetect.so.2.4.9
/home/arnaud/install/lib/libopencv_nonfree.so.2.4.9 /home/arnaud/install/lib/libopencv_ml.so.2.4.9 /home/arnaud/install/lib/libopencv_legacy.so.2.4.9 /home/arnaud/install/lib/libopencv_imgproc.so.2.4.9 /home/arnaud/install/lib/libopencv_highgui.so.2.4.9 /home/arnaud/install/lib/libopencv_gpu.so.2.4.9
/home/arnaud/install/lib/libopencv_flann.so.2.4.9 /home/arnaud/install/lib/libopencv_features2d.so.2.4.9 /home/arnaud/install/lib/libopencv_core.so.2.4.9 /home/arnaud/install/lib/libopencv_contrib.so.2.4.9 /home/arnaud/install/lib/libopencv_calib3d.so.2.4.9
lib/libitkdouble-conversion-4.9.so.1 lib/libITKIOBMP-4.9.so.1 lib/libITKIOGDCM-4.9.so.1 lib/libITKIOGIPL-4.9.so.1 lib/libITKIOImageBase-4.9.so.1 lib/libITKIOJPEG-4.9.so.1 lib/libITKIOMeta-4.9.so.1 lib/libITKIONIFTI-4.9.so.1 lib/libITKIONRRD-4.9.so.1 lib/libITKIOPNG-4.9.so.1
lib/libITKIOTIFF-4.9.so.1 lib/libITKIOVTK-4.9.so.1 lib/libitksys-4.9.so.1 -lpthread -lrt -ltbb /home/arnaud/install/lib/libopencv_nonfree.so.2.4.9 /home/arnaud/install/lib/libopencv_ocl.so.2.4.9 /home/arnaud/install/lib/libopencv_gpu.so.2.4.9 /home/arnaud/install/lib/libopencv_photo.so.2.4.9
/home/arnaud/install/lib/libopencv_objdetect.so.2.4.9 /home/arnaud/install/lib/libopencv_legacy.so.2.4.9 /home/arnaud/install/lib/libopencv_video.so.2.4.9 /home/arnaud/install/lib/libopencv_ml.so.2.4.9 /home/arnaud/install/lib/libopencv_calib3d.so.2.4.9 /home/arnaud/install/lib/libopencv_features2d.so.2.4.9
/home/arnaud/install/lib/libopencv_highgui.so.2.4.9 /home/arnaud/install/lib/libopencv_imgproc.so.2.4.9 /home/arnaud/install/lib/libopencv_flann.so.2.4.9 /home/arnaud/install/lib/libopencv_core.so.2.4.9 lib/libITKVideoIO-4.9.so.1 lib/libITKIOImageBase-4.9.so.1
lib/libITKVideoCore-4.9.so.1 lib/libITKCommon-4.9.so.1 lib/libitkdouble-conversion-4.9.so.1 lib/libitksys-4.9.so.1 lib/libITKVNLInstantiation-4.9.so.1 lib/libitkvnl_algo-4.9.so.1 lib/libitkv3p_lsqr-4.9.so.1 lib/libitkvnl-4.9.so.1 lib/libitkvcl-4.9.so.1 lib/libitkv3p_netlib-4.9.so.1
-lm -lpthread -lm -ldl -Wl,-rpath,/home/arnaud/source/build-itk/lib:/home/arnaud/install/lib -Wl,-rpath-link,/home/arnaud/source/build-itk/lib && :<br>
Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/itkOpenCVVideoCaptureTest.cxx.o: In function `itk::OpenCVVideoIOFactory::New()':<br>
/home/arnaud/source/itk/Modules/Video/BridgeOpenCV/include/itkOpenCVVideoIOFactory.h:46: undefined reference to `itk::OpenCVVideoIOFactory::OpenCVVideoIOFactory()'<br>
Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/itkOpenCVVideoIOTest.cxx.o: In function `itk::OpenCVVideoIO::New()':<br>
/home/arnaud/source/itk/Modules/Video/BridgeOpenCV/include/itkOpenCVVideoIO.h:48: undefined reference to `itk::OpenCVVideoIO::OpenCVVideoIO()'<br>
Modules/Video/BridgeOpenCV/test/CMakeFiles/ITKVideoBridgeOpenCVTestDriver.dir/itkOpenCVVideoIOTest.cxx.o: In function `itk::ObjectFactory<itk::OpenCVVideoIO>::Create()':<br>
/home/arnaud/source/itk/Modules/Core/Common/include/itkObjectFactory.h:60: undefined reference to `typeinfo for itk::OpenCVVideoIO'<br>
/home/arnaud/source/itk/Modules/Core/Common/include/itkObjectFactory.h:62: undefined reference to `typeinfo for itk::OpenCVVideoIO'<br>
collect2: error: ld returned 1 exit status<br>
ninja: build stopped: subcommand failed.<br>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Aug 14, 2015 at 6:24 PM, Arnaud Gelas <span dir="ltr">
<<a href="mailto:arnaudgelas@gmail.com" target="_blank">arnaudgelas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I have already tried it, does not solve it... I will retry it with a fresh build once again...<br>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Aug 14, 2015 at 6:11 PM, Matt McCormick <span dir="ltr">
<<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Arnaud,<br>
<br>
Yes, you are probably right. The suggestion by Zach in this patch (to<br>
use DEPENDS) is promising:<br>
<br>
<a href="http://review.source.kitware.com/#/c/20078/" rel="noreferrer" target="_blank">
http://review.source.kitware.com/#/c/20078/</a><br>
<br>
Thanks,<br>
Matt<br>
<div>
<div><br>
On Fri, Aug 14, 2015 at 2:21 AM, Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com" target="_blank">arnaudgelas@gmail.com</a>> wrote:<br>
> Hi Matt,<br>
><br>
> It happened while directly building ITK with OpenCV 2.4.9, without any<br>
> superbuild...<br>
> Thanks for the patch, but that does not solve it...<br>
><br>
> I wonder if it could have something to do with the new linking system (note<br>
> it uses COMPILE_DEPENDS) ?<br>
><br>
> Thanks,<br>
> Arnaud<br>
><br>
> On Thu, Aug 13, 2015 at 6:41 PM, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>><br>
> wrote:<br>
>><br>
>> Hi Arnaud,<br>
>><br>
>> Is this with building the examples with the superbuild? I think I was<br>
>> getting this error, too. Here is a patch that should address it:<br>
>><br>
>> <a href="http://review.source.kitware.com/#/c/20077/" rel="noreferrer" target="_blank">http://review.source.kitware.com/#/c/20077/</a><br>
>><br>
>> Thanks,<br>
>> Matt<br>
>><br>
>> On Thu, Aug 13, 2015 at 11:40 AM, Arnaud Gelas <<a href="mailto:arnaudgelas@gmail.com" target="_blank">arnaudgelas@gmail.com</a>><br>
>> wrote:<br>
>> > Hi all,<br>
>> ><br>
>> > I have just tried building ITK with BridgeOpenCV on Ubuntu 14.04 and I<br>
>> > get<br>
>> > the following link error<br>
>> ><br>
>> > [2/2] Linking CXX executable bin/ITKVideoBridgeOpenCVHeaderTest1<br>
>> ><br>
>> > [...]<br>
>> ><br>
>> > lib/libITKVideoBridgeOpenCV-4.9.so.1: error: undefined reference to<br>
>> > 'itk::VideoIOBase::VideoIOBase()'<br>
>> > lib/libITKVideoBridgeOpenCV-4.9.so.1: error: undefined reference to<br>
>> > 'itk::VideoIOBase::~VideoIOBase()'<br>
>> > lib/libITKVideoBridgeOpenCV-4.9.so.1: error: undefined reference to<br>
>> > 'itk::VideoIOBase::PrintSelf(std::ostream&, itk::Indent) const'<br>
>> > lib/libITKVideoBridgeOpenCV-4.9.so.1: error: undefined reference to<br>
>> > 'typeinfo for itk::VideoIOBase'<br>
>> > collect2: error: ld returned 1 exit status<br>
>> ><br>
>> > I have checked these methods are implemented in itkVideoIOBase.cxx...<br>
>> ><br>
>> > Any idea?<br>
>> ><br>
>> > Thanks<br>
>> > Arnaud<br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">
www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Kitware offers ITK Training Courses, for more information visit:<br>
>> > <a href="http://kitware.com/products/protraining.php" rel="noreferrer" target="_blank">
http://kitware.com/products/protraining.php</a><br>
>> ><br>
>> > Please keep messages on-topic and check the ITK FAQ at:<br>
>> > <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://public.kitware.com/mailman/listinfo/insight-developers" rel="noreferrer" target="_blank">
http://public.kitware.com/mailman/listinfo/insight-developers</a><br>
>> ><br>
><br>
><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>
</div>
</blockquote></div><br></div>