[vtkusers] Odd Qt-ITK-VTK situation

Cory Quammen cory.quammen at kitware.com
Sun Dec 8 00:11:46 EST 2013


It isn't necessary, but there are some convenient classes available
for transforming between VTK and ITK images. See

http://www.itk.org/Doxygen44/html/group__ITKVtkGlue.html

for a list of them.

Best,
Cory

On Sat, Dec 7, 2013 at 11:40 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> You are right!  I don't know why I selected that option (or didn't deselect it).  In fact I don't even know what it's for.  Is it necessary if you ever want to use VTK with ITK?
>
> Thanks
> Gib
> ________________________________________
> From: Cory Quammen [cory.quammen at kitware.com]
> Sent: Sunday, 8 December 2013 5:13 p.m.
> To: Gib Bogle
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] Odd Qt-ITK-VTK situation
>
> Gib,
>
> Are you sure you didn't build ITK on the system that is behaving oddly
> with the VTK "glue" module enabled? That's the only thing I can think
> of that might explain the linker's complaint.
>
> Thanks,
> Cory
>
> On Sat, Dec 7, 2013 at 4:19 PM, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
>> Sorry about replying to my own question...
>>
>> I have discovered that uncommenting these previously commented lines in
>> CMakeLists.txt allows the build to complete on the laptop:
>>
>> IF(NOT VTK_BINARY_DIR)
>>
>> FIND_PACKAGE(VTK)
>>
>> IF(NOT VTK_DIR)
>>
>>   MESSAGE(FATAL_ERROR "Please set VTK_DIR.")
>>
>> ENDIF(NOT VTK_DIR)
>>
>> INCLUDE(${VTK_USE_FILE})
>>
>> ENDIF(NOT VTK_BINARY_DIR)
>>
>> I have no idea why these lines are necessary on one computer but not on
>> another.
>>
>>
>> ________________________________
>> From: vtkusers-bounces at vtk.org [vtkusers-bounces at vtk.org] on behalf of Gib
>> Bogle [g.bogle at auckland.ac.nz]
>> Sent: Sunday, 8 December 2013 7:13 a.m.
>> To: vtkusers at vtk.org
>> Subject: [vtkusers] Odd Qt-ITK-VTK situation
>>
>> This problem involves VTK in a peculiar way.  I have a Qt+ITK application
>> that I build 64-bit with MSVC2010 on Windows 7.  The build is successful on
>> two PCs, but fails on a laptop.  The error message is:
>> LINK1181: cannot open input file 'vtkCommon.lib'
>>
>> The program does not use VTK, and nowhere in CMakeLists.txt is VTK
>> mentioned.  In addition, I have ensured that the path to the 64-bit VTK
>> libraries is in the PATH list.
>>
>> As far as I can see the build conditions on the different machines are the
>> same - same compiler, same ITK build, same Qt64 build, same QtCreator
>> version - but there is a difference in what I see in QtCreator that may have
>> significance.  On a PC that is successful in building the program, under the
>> project name in the project directory I see CMakeLists.txt, a directory
>> named "Project Files" with a subdirectory "ITK", and the source code files.
>> On the laptop I see CMakeLists.txt, two directories, "CMake 2.8" and "ITK",
>> and the source files.  I do not understand why "CMake 2.8" turns up in the
>> project directory on the laptop but not on the PC.
>>
>> I'd be grateful if somebody could shed some light on this odd and annoying
>> problem.
>>
>> Gib
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>


More information about the vtkusers mailing list