[vtkusers] Using Cmake for VTK + Qt applications on a Mac
Shriram Iyer
shriram.uc at gmail.com
Fri Mar 14 11:19:31 EDT 2008
Thanks Shekhar and Matthias.
I was getting the error because I was using a different version of cmake to
compile my project that the one I used earlier to compile VTK. Once I
recompiled VTK with the newer version of CMake, it worked fine.
Regards,
Shriram
On Fri, Mar 14, 2008 at 3:04 AM, Matthias Riechmann <riechmann at ira.uka.de>
wrote:
> Hi Shiram,
>
> I'm working on an application depending on Qt, VTK and ITK alltogether
> and so far I didn't encounter any principal problems building it with
> CMake except maybe some pitfalls at the beginning. And it's really
> platform independant, I have compiled applications on Windows, Mac OS
> and Linux.
> What might help for finding your problem: Post your CMakeLists.txt and
> maybe the UseVTK.cmake that causes so much trouble. Which version of VTK
> are you currently using?
>
>
> Matthias
>
>
>
>
> Shriram Iyer schrieb:
> > Hi everyone,
> >
> > I need help with getting cmake to work on a Mac for compiling VTK + Qt
> > applications. I was able to compile Qt 4.3.4 and VTK 5.0.4 without too
> > much trouble. But now, when I try running cmake on my project I get the
> > following error:
> >
> > -- Loading VTK CMake commands
> > CMake Error: Error in cmake code at
> > #:7:
> > LOAD_COMMAND Attempt to load command failed from file
> > "libcmVTK_WRAP_TCL2.so"
> > Current CMake stack:
> > [2] /usr/local/lib/vtk-5.0/UseVTK.cmake
> > [1] /Users/shriram/Development/Endurance/CMakeLists.txt
> > CMake Error: Error in cmake code at
> > /usr/local/lib/vtk-5.0/UseVTK.cmake:35:
> > A command failed during the invocation of macro
> > "VTK_LOAD_SINGLE_CMAKE_EXTENSION".
> > CMake Error: Error in cmake code at
> > #:27:
> > VTK_LOAD_SINGLE_CMAKE_EXTENSION unknown error.
> > Current CMake stack:
> > [2] /usr/local/lib/vtk-5.0/UseVTK.cmake
> > [1] /Users/shriram/Development/Endurance/CMakeLists.txt
> > CMake Error: Error in cmake code at
> > /usr/local/lib/vtk-5.0/UseVTK.cmake:35:
> > A command failed during the invocation of macro
> "VTK_LOAD_CMAKE_EXTENSIONS".
> > CMake Error: Error in cmake code at
> > /usr/local/lib/vtk-5.0/UseVTK.cmake:35:
> > VTK_LOAD_CMAKE_EXTENSIONS unknown error.
> > Current CMake stack:
> > [2] /usr/local/lib/vtk-5.0/UseVTK.cmake
> > [1] /Users/shriram/Development/Endurance/CMakeLists.txt
> > The end of a CMakeLists file was reached with an IF statement that was
> > not closed properly.
> > Within the directory: /Users/shriram/Development/Endurance
> > The arguments are: VTK_NEED_LOADED_COMMANDS
> > The end of a CMakeLists file was reached with an IF statement that was
> > not closed properly.
> > Within the directory: /Users/shriram/Development/Endurance
> > The arguments are: COMMAND VTK_WRAP_TCL2
> > -- Found Qt-Version 4.3.4
> > The end of a CMakeLists file was reached with an IF statement that was
> > not closed properly.
> > Within the directory: /Users/shriram/Development/Endurance
> > The arguments are: VTK_NEED_LOADED_COMMANDS
> > The end of a CMakeLists file was reached with an IF statement that was
> > not closed properly.
> > Within the directory: /Users/shriram/Development/Endurance
> > The arguments are: COMMAND VTK_WRAP_TCL2
> > -- Configuring done
> >
> > I'm not sure what's causing the problem here. I have tried three
> > versions of cmake including the CVS version.
> >
> > Any help would be greatly appreciated.
> >
> > Regards,
> > Shriram
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
>
--
--------------------------------------------------------
Shriram Iyer
Research Assistant
Electronic Visualization Laboratory
University of Illinois at Chicago
Phone: 773-574-2081
E-mail: siyer6 at uic.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080314/70b56223/attachment-0001.htm>
More information about the vtkusers
mailing list