Hi Michael,

I have used ITK recently so can't provide any specific guidance, it
would seem like CMake has picked up on ITK and enabled the build of
the dicom plugin but the libs that the plugin links to are no longer
sufficient or are incorrect.  It could be that the CMake find package
for ITK is up to date, or the plugin can handle the new version.  Run
ccmake and have a look at the ITK options.

Do you actually intend for the dicom plugin to built against ITK?  If
not just go into ccmake and remove the ITK entires so that the plugin
no longers builds.

Robert.

On 23 April 2012 00:15, Michael Hall <[email protected]> wrote:
> I am getting the following error compiling OSG 3.0.1.  Looks like ld cannot
> find -lITKIO.  I have the Insight ToolKit 4.0.1 installed.  Any ideas?
>
> [ 84%] Building CXX object
> src/osgPlugins/dicom/CMakeFiles/osgdb_dicom.dir/ReaderWriterDICOM.o
> /home/hallmw/OpenSceneGraph/src/osgPlugins/dicom/ReaderWriterDICOM.cpp: In
> member function ‘virtual osgDB::ReaderWriter::ReadResult
> ReaderWriterDICOM::readSingleITKImage(const string&, const Options*) const’:
> /home/hallmw/OpenSceneGraph/src/osgPlugins/dicom/ReaderWriterDICOM.cpp:414:34:
> warning: variable ‘start’ set but not used [-Wunused-but-set-variable]
> Linking CXX shared module ../../../lib/osgPlugins-3.0.1/osgdb_dicom.so
> /usr/bin/ld: cannot find -lITKIO
> collect2: ld returned 1 exit status
> make[2]: *** [lib/osgPlugins-3.0.1/osgdb_dicom.so] Error 1
> make[1]: *** [src/osgPlugins/dicom/CMakeFiles/osgdb_dicom.dir/all] Error 2
> make: *** [all] Error 2
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to