[vtkusers] Vtk programming on Mac OS X with Xcode

Jing LI jli023 at cs.auckland.ac.nz
Sun Jul 8 23:14:09 EDT 2007


Thanks for prompt replying. 

I just would like to run the vtk tutorial codes Cone.cxx on Mac using Xcode.


I started the Xcode, from File->New Project->C++ Tool, and entered the name
for the project as vtkcone1.

Deleted the main.cxx from the vtkcone1 project, and added Cone.cxx to the
project, set the Header Search Paths to the VTK include path, and built it.
The build was succeeded. Then I ran it, it gave out the error message:

"ZeroLink: unknown symbol '_ZN13vtkConeSource3NewEv'

Vtkcone1 has exited due to signal 6 (GIGABRT)."

I checked the ZeroLink flag, it is unchecked. I dragged the vtk*.a from
VTKBuild/bin to the Xcode project, and rerun it. It gave out the error

"
ZeroLink: unknown symbol '_CFConstantStringClassReference'

Vtkcone1 has exited due to signal 6 (SIGABRT). 
"

Any idea about it? How to fix it?

I greatly appreciate your help. 


Jing 


-----Original Message-----
From: Mike Jackson [mailto:imikejackson at gmail.com] 
Sent: Monday, 9 July 2007 1:11 p.m.
To: Jing LI
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] Vtk programming on Mac OS X with Xcode

How hard this will be depends on how much "Windows" specific C++ code  
you used. If you just stuck to generally accepted C++ and the VTK  
toolkit, just rerun cmake on your CMakeLists.txt file to generate  
Xcode projects and compile. If you did NOT use CMake for your  
projects then you will have a tougher time getting the Xcode projects  
setup.

Apple hosts a mail list just for Xcode questions: http:// 
lists.apple.com/xcode-users


-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Jul 8, 2007, at 7:50 PM, Jing LI wrote:

>
> I need to convert some VTK VS .Net 2005 solutions to XCode projects  
> on Mac.
> I am not familiar with Mac and XCode. I searched the web, only  
> found the
> tutorials on programming vtk using cocoa with XCode.
>
> I do not want to change the original VTK C++ codes much, just want  
> to do as
> simple as possible to make the VTK C++ codes run on Mac.
>
> Does any one have such experience?
>
> Thanks in advance,
>
> Jing
>
>
>
> _______________________________________________
> 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





More information about the vtkusers mailing list