[Ves] Apple Mach-O Linker Errors when building Kiwiviewer on Xcode 6.1.1

Michael Christie sujayc at hotmail.com
Sat Feb 28 22:15:26 EST 2015


Hello,
I'm a novice programmer who was hoping to build Kiwiviewer on my mac with Yosemite OS 10.10.
I followed the directions posted by Harish on this webpage:http://public.kitware.com/pipermail/ves/2014-November/002976.html
and from that I was able to do get through the steps described on the /Apps/iOS readme (I was previously having problems doing make -j4).
The problem is when i open up the Xcodeproject of KiwiSimple and KiwiViewer. This was actually my first time opening Xcode and using it. This is Xcode 6.1.1. Anyways, I try to build it and i get 4 errors and 2 warnings, copied below:
ld: warning: ignoring file ../frameworks/vtk.framework/vtk, missing required architecture x86_64 in file ../frameworks/vtk.framework/vtk (3 slices)
ld: warning: ignoring file ../frameworks/kiwi.framework/kiwi, missing required architecture x86_64 in file ../frameworks/kiwi.framework/kiwi (3 slices)
Undefined symbols for architecture x86_64:
  "vesKiwiBaseApp::render()", referenced from:
      -[MyGLKViewController glkView:drawInRect:] in MyGLKViewController.o
  "vesKiwiViewerApp::loadDataset(std::string const&)", referenced from:
      -[MyGLKViewController initializeKiwiApp] in MyGLKViewController.o
  "vesKiwiViewerApp::vesKiwiViewerApp()", referenced from:
      -[MyGLKViewController initializeKiwiApp] in MyGLKViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Under Build Settings of the KiwiSimple target, I have "Architectures" set to "Standard architectures (armv7, arm64) ...."The "Base SDK" is iOS 8.1, I enabled "Build Active Architecture Only" and my "Valid Architectures" are "armv7 arm64"
To the side under the Frameworks folder, I have libbz2.dylib, libxml2.dylib, libz.dylib, vtk.framework and its headers, kiwi.framework and its headers, OpenGLES.framework, GLKit.framework, UIKit.framework, Foundation.framework, and CoreGraphics.framework. Nothing in these are colored red.
The only thing that is red for me is the Product itself, KiwiSimple.app.
I'll gladly provide any other information. Please tell me what could be going wrong. This is the first time I ever used CMake and Xcode. I could have easily forgotten to do something along the way, especially something that was not in the directions I mentioned above.
Thank you!
Mike

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20150228/dcc4cd6e/attachment.html>


More information about the Ves mailing list