<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
My pleasure.
<div class=""><br class="">
</div>
<div class="">cameron.</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 3. mar. 2015, at 02.54, Michael Christie <<a href="mailto:sujayc@hotmail.com" class="">sujayc@hotmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
Nevermind! There was one option under Build Settings that I needed to change. iOS Deployment Target under "Deployment" was set to iOS 6 by default for me. I switched it to the latest iOS, iOS 8.1, and everything built correctly, no errors. I now see a teapot.
<div class=""><br class="">
</div>
<div class="">Thank you Cameron for helping me through this.<br class="">
<br class="">
<div class="">
<hr id="stopSpelling" class="">
From: <a href="mailto:sujayc@hotmail.com" class="">sujayc@hotmail.com</a><br class="">
To: <a href="mailto:cameron.palmer@ntnu.no" class="">cameron.palmer@ntnu.no</a><br class="">
Date: Mon, 2 Mar 2015 20:21:18 -0500<br class="">
CC: <a href="mailto:ves@public.kitware.com" class="">ves@public.kitware.com</a><br class="">
Subject: Re: [Ves] Apple Mach-O Linker Errors when building Kiwiviewer on Xcode 6.1.1<br class="">
<br class="">
<div dir="ltr" class="">I can't run it on my iPad because I haven't yet enrolled in the Apple iOS Developer program ($99 a year). For now, is it possible I can make it work on the simulator instead?
<div class=""><br class="">
</div>
<div class="">Also, I wanted to mention that if I set "Build Active Architecture Only" to "No" I get 126 errors. All Linker errors. Is that normal?</div>
<div class=""><br class="">
</div>
<div class="">Thank you very much for your help.<br class="">
<br class="">
<div class="">
<hr id="ecxstopSpelling" class="">
From: <a href="mailto:cameron.palmer@ntnu.no" class="">cameron.palmer@ntnu.no</a><br class="">
To: <a href="mailto:sujayc@hotmail.com" class="">sujayc@hotmail.com</a><br class="">
CC: <a href="mailto:ves@public.kitware.com" class="">ves@public.kitware.com</a><br class="">
Subject: Re: [Ves] Apple Mach-O Linker Errors when building Kiwiviewer on Xcode 6.1.1<br class="">
Date: Sun, 1 Mar 2015 21:04:58 +0000<br class="">
<br class="">
That is correct, by default Xcode will now insist on compiling for all architectures unless you explicitly prevent it using that variable. Are you trying to run on the device or the simulator? Try running on the iPhone/iPad not in the simulator.
<div class=""><br class="">
</div>
<div class="">cameron.</div>
<div class=""><br class="">
<div class="">
<blockquote class="">
<div class="">On 1. mar. 2015, at 16.34, Michael Christie <<a href="mailto:sujayc@hotmail.com" class="">sujayc@hotmail.com</a>> wrote:</div>
<br class="ecxApple-interchange-newline">
<div class="">
<div dir="ltr" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
Cameron,
<div class=""><br class="">
</div>
<div class="">Thank you for the response. I didn't have $(ARCHS_STANDARD_32_BIT) as an option under "Architectures" so I typed it in. Now I get only one error when I build:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
<br class="">
</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
Mike</div>
<br class="">
<div class="">
<hr id="ecxstopSpelling" class="">
From:<span class="ecxApple-converted-space"> </span><a href="mailto:cameron.palmer@ntnu.no" class="">cameron.palmer@ntnu.no</a><br class="">
To:<span class="ecxApple-converted-space"> </span><a href="mailto:sujayc@hotmail.com" class="">sujayc@hotmail.com</a><br class="">
CC:<span class="ecxApple-converted-space"> </span><a href="mailto:ves@public.kitware.com" class="">ves@public.kitware.com</a><br class="">
Subject: Re: [Ves] Apple Mach-O Linker Errors when building Kiwiviewer on Xcode 6.1.1<br class="">
Date: Sun, 1 Mar 2015 07:42:02 +0000<br class="">
<br class="">
<div class="">Try it without 64-bit.</div>
<div class=""><br class="">
</div>
<div class="">Architectures $(ARCHS_STANDARD_32_BIT)</div>
<div class=""><br class="">
</div>
<div class="">Valid architectures armv7 armv7s</div>
<div class=""><br class="">
<div class="">
<blockquote class="">
<div class="">On 1. mar. 2015, at 04.15, Michael Christie <<a href="mailto:sujayc@hotmail.com" class="">sujayc@hotmail.com</a>> wrote:</div>
<br class="ecxApple-interchange-newline">
<div class="">
<div dir="ltr" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
Hello,
<div class=""><br class="">
</div>
<div class="">I'm a novice programmer who was hoping to build Kiwiviewer on my mac with Yosemite OS 10.10.</div>
<div class=""><br class="">
</div>
<div class="">I followed the directions posted by Harish on this webpage:</div>
<div class=""><a href="http://public.kitware.com/pipermail/ves/2014-November/002976.html" target="_blank" class="">http://public.kitware.com/pipermail/ves/2014-November/002976.html</a></div>
<div class=""><br class="">
</div>
<div class="">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).</div>
<div class=""><br class="">
</div>
<div class="">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:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
ld: warning: ignoring file ../frameworks/vtk.framework/vtk, missing required architecture x86_64 in file ../frameworks/vtk.framework/vtk (3 slices)</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
ld: warning: ignoring file ../frameworks/kiwi.framework/kiwi, missing required architecture x86_64 in file ../frameworks/kiwi.framework/kiwi (3 slices)</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
Undefined symbols for architecture x86_64:</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
  "vesKiwiBaseApp::render()", referenced from:</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
      -[MyGLKViewController glkView:drawInRect:] in MyGLKViewController.o</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
  "vesKiwiViewerApp::loadDataset(std::string const&)", referenced from:</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
      -[MyGLKViewController initializeKiwiApp] in MyGLKViewController.o</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
  "vesKiwiViewerApp::vesKiwiViewerApp()", referenced from:</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
      -[MyGLKViewController initializeKiwiApp] in MyGLKViewController.o</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
ld: symbol(s) not found for architecture x86_64</div>
<div style="padding: 0px; text-indent: -12px; font-size: 11px; font-family: Menlo;" class="">
clang: error: linker command failed with exit code 1 (use -v to see invocation)</div>
</div>
<div class=""><br class="">
</div>
<div class="">Under Build Settings of the KiwiSimple target, I have "Architectures" set to "Standard architectures (armv7, arm64) ...."</div>
<div class="">The "Base SDK" is iOS 8.1, I enabled "Build Active Architecture Only" and my "Valid Architectures" are "armv7 arm64"</div>
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">The only thing that is red for me is the Product itself, KiwiSimple.app.</div>
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class="">Thank you!</div>
<div class=""><br class="">
</div>
<div class="">Mike</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
<span style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
<span style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; display: inline !important;" class="">Ves
 mailing list</span><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
<a href="mailto:Ves@public.kitware.com" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">Ves@public.kitware.com</a><br style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
<a href="http://public.kitware.com/mailman/listinfo/ves" target="_blank" style="font-family: Calibri; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">http://public.kitware.com/mailman/listinfo/ves</a></div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
<br class="">
_______________________________________________ Ves mailing list<a href="mailto:Ves@public.kitware.com" class="">Ves@public.kitware.com</a><span class="Apple-converted-space"> </span><a href="http://public.kitware.com/mailman/listinfo/ves" class="">http://public.kitware.com/mailman/listinfo/ves</a></div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>