[vtkusers] VTK build error in Xcode
Shawn Waldon
shawn.waldon at kitware.com
Tue May 3 10:40:11 EDT 2016
Quoting from that blog:
"
First ensure that you have the latest Xcode and XCode developer tools
installed.
To build the VTK framework for iOS development, configure CMake with
VTK_IOS_BUILD=ON. CMake will then present a limited set of options, which
will we shortly review. Be sure to generate only Unix Makefiles or Ninja
build files, as* Xcode will not work for this special build.* Then use
CMake as usual to produce project build files.
"
You have to install XCode so that your system will have a compiler. But
when you are configuring VTK, you have to select 'Unix Makefiles' or
'Ninja' as the generator. It says that the XCode generator doesn't work.
Then you open a terminal to the build directory and type 'make' or 'ninja'
depending on the generator you chose. Note that to change generators you
will have to delete the build directory and reconfigure.
HTH,
Shawn
On Tue, May 3, 2016 at 10:35 AM, Import EV 重富 <info at import-ev.com> wrote:
> Hi Mathieu,
>
> What I referred to is;
> https://blog.kitware.com/building-vtk-for-mobile-architectures/
>
> As far as I read iOS portion, I thought I could use Xcode to generate
> vtk.framework.
>
> -----
> Import EV Corp.
> -----
>
>
> From: Mathieu Westphal [mailto:mathieu.westphal at kitware.com]
> Sent: Tuesday, May 03, 2016 11:28 PM
> To: Import EV 重富
> Cc: Ken Martin; vtk
> Subject: Re: [vtkusers] VTK build error in Xcode
>
> Sorry, I read your message too fast, i have no knowledge about running vtk
> on ios, there is this wiki page :
> http://www.vtk.org/Wiki/VES/Developers_Guide, but you may already tried
> that.
>
>
> Mathieu Westphal
>
> On Tue, May 3, 2016 at 4:18 PM, Import EV 重富 <info at import-ev.com> wrote:
> Hi Mathieu,
> Thank you for your information.
>
> Is this for iOS?
> I need vtk.framework for iOS.
> If my question is out of focus, please point it out.
>
> -----
> Import EV Corp.
> -----
> From: Mathieu Westphal [mailto:mathieu.westphal at kitware.com]
> Sent: Tuesday, May 03, 2016 11:11 PM
> To: Import EV 重富
> Cc: Ken Martin; vtk
> Subject: Re: [vtkusers] VTK build error in Xcode
>
> Hello
> I don't know much about osx, but generally speaking, do not forget to
> check the wiki for info :
> http://www.vtk.org/Wiki/VTK/Building/MacOSX
> is is not ninja specific though.
>
>
> Mathieu Westphal
>
> On Tue, May 3, 2016 at 4:07 PM, Import EV 重富 <info at import-ev.com> wrote:
> Hi Ken,
> Thank you for your response.
>
> I did not know that.
> As far as I searched on the web, I found that someone used Xcode to
> generate "vtk.framework". So, I thought I can do the same thing.
>
> I am not familiar with VTK as well as Cmake.
> Could you kindly advise me how to use make or ninja to generate
> "vtk.framework".
>
> I guess I should use "vtk-compile-tools" somehow, as there is a
> description "-- Build files have been written
> to:/Users/MyMac/Desktop/VTK700bin/CMakeExternals/Build/vtk-compile-tools".
>
> Thanks for your additional help in this regards.
>
> -----
> Import EV Corp.
> -----
>
> From: Ken Martin [mailto:ken.martin at kitware.com]
> Sent: Tuesday, May 03, 2016 10:43 PM
> To: Import EV 重富
> Cc: vtk
> Subject: Re: [vtkusers] VTK build error in Xcode
>
> You have to build the VTK framework using make or ninja, the XCode
> generator is not currently tested.
>
> Thanks
> Ken
>
> On Tue, May 3, 2016 at 3:36 AM, Import EV 重富 <info at import-ev.com> wrote:
> I would like to use VTK library for iOS app.
> I use CMake to create VTK Xcode project and build it.
> I got the following error.
>
> ---
> ...
> -- Configuring done
> -- Generating done
> -- Build files have been written to:
> /Users/MyMac/Desktop/VTK700bin/CMakeExternals/Build/vtk-compile-tools
> cd /Users/MyMac/Desktop/VTK700bin/CMakeExternals/Build/vtk-compile-tools &&
> /Applications/CMake.app/Contents/bin/cmake -E touch
>
> /Users/MyMac/Desktop/VTK700bin/CMakeExternals/Prefix/vtk-compile-tools/src/v
> tk-compile-tools-stamp/Release/vtk-compile-tools-configure
> echo "Performing build step for 'vtk-compile-tools'"
> Performing build step for 'vtk-compile-tools'
> cd /Users/MyMac/Desktop/VTK700bin/CMakeExternals/Build/vtk-compile-tools &&
> make vtkCompileTools
> make[1]: *** No rule to make target `vtkCompileTools'. Stop.
> make: ***
>
> [/Users/TetsuMacBookAir/Desktop/DICOM/VTK700bin/CMakeExternals/Prefix/vtk-co
> mpile-tools/src/vtk-compile-tools-stamp/Release/vtk-compile-tools-build]
> Error 2
> Command /bin/sh failed with exit code 2
> ---
>
> I set VTK_IOS_BUILD = ON in CMake and other settings stay default.
>
> The version for each;
> VTK 7.0.0
> CMake 3.5.2
> Xcode 7.2.1
> OS X 10.10.5
>
> I have no idea why this error occurs.
> Anyone who is familiar with this, please help me.
>
> ---------
> Import EV
> ---------
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
>
> --
> Ken Martin PhD
> Chairman & CFO
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
> 518 371 3971
>
> This communication, including all attachments, contains confidential and
> legally privileged information, and it is intended only for the use of the
> addressee. Access to this email by anyone else is unauthorized. If you are
> not the intended recipient, any disclosure, copying, distribution or any
> action taken in reliance on it is prohibited and may be unlawful. If you
> received this communication in error please notify us immediately and
> destroy the original message. Thank you.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160503/9377ecb5/attachment.html>
More information about the vtkusers
mailing list