maybe you need to set your LD_LIBRARY_Path to where the libraries are . If there is such an option for Mac . <br><br><div class="gmail_quote">On Fri, Feb 26, 2010 at 9:57 PM, Stanley11 <span dir="ltr"><<a href="mailto:yal209@lehigh.edu">yal209@lehigh.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hi,<br>
<br>
I try to use VTK (5.4.2) + Xcode(3.2.1) on Mac (SnowLeopard 10.6) but fail<br>
in compiling the project SimpleCocaVTK downloaded from<br>
<a href="https://www.rogue-research.com/vtk/SimpleCocoaVTK.html" target="_blank">https://www.rogue-research.com/vtk/SimpleCocoaVTK.html</a>. I follow the<br>
instruction from wiki: install cmake, modify CMakeCache.txt (i.e.<br>
CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.6.sdk/ ) and build again.<br>
Everything seems ok. Then I start building a project: SimpleCocaVTK and do<br>
it absolutely following the steps in wiki but stop at an error:<br>
<br>
Ld<br>
SimpleCocoaVTK.build/Debug/SimpleCocoaVTK.build/Objects-normal/ppc/SimpleCocoaVTK<br>
normal ppc<br>
cd /Users/yaliu/Desktop/Code/VTK/SimpleCocoaVTK<br>
setenv MACOSX_DEPLOYMENT_TARGET 10.4<br>
/Developer/usr/bin/g++-4.2 -arch ppc -isysroot<br>
/Developer/SDKs/MacOSX10.6.sdk<br>
-L/Users/yaliu/Desktop/Code/VTK/SimpleCocoaVTK/Debug -L/lib<br>
-F/Users/yaliu/Desktop/Code/VTK/SimpleCocoaVTK/Debug -filelist<br>
/Users/yaliu/Desktop/Code/VTK/SimpleCocoaVTK/SimpleCocoaVTK.build/Debug/SimpleCocoaVTK.build/Objects-normal/ppc/SimpleCocoaVTK.LinkFileList<br>
-mmacosx-version-min=10.4 -lz -framework Cocoa -framework OpenGL -lvtkIO<br>
-lvtkFiltering -lvtkHybrid -lvtkRendering -lvtkpng -lvtkImaging -lvtkCommon<br>
-lvtkjpeg -lvtkexpat -lvtkGraphics -lvtkGenericFiltering -lvtktiff -lvtkftgl<br>
-lvtksys -o<br>
/Users/yaliu/Desktop/Code/VTK/SimpleCocoaVTK/SimpleCocoaVTK.build/Debug/SimpleCocoaVTK.build/Objects-normal/ppc/SimpleCocoaVTK<br>
<br>
ld: library not found for -lvtkIO<br>
collect2: ld returned 1 exit status<br>
Command /Developer/usr/bin/g++-4.2 failed with exit code 1<br>
<br>
The fact is that lvtkIO.a file is in the library. I search the database but<br>
don't get any helpful thing.<br>
I spend several days on it but results always piss me off.<br>
<br>
Does anyone have clue about this error?<br>
I am concerned about any success in running VTK+ Xcode on nowLeopard 10.6?<br>
Your opinion will be highly appreciated.<br>
<br>
Thank you very much,<br>
Stanley.<br>
--<br>
View this message in context: <a href="http://old.nabble.com/VTK-%285.4.2%29-%2B-Xcode%283.2.1%29-on-Mac-%28SnowLeopard-10.6%29-tp27725576p27725576.html" target="_blank">http://old.nabble.com/VTK-%285.4.2%29-%2B-Xcode%283.2.1%29-on-Mac-%28SnowLeopard-10.6%29-tp27725576p27725576.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>