0

I want to pack the VTK framework inside my App like a .framework bundle in OSX.

Is it possible to do so? If yes, please help me to do it.

I have downloaded the source of latest release 5.10.1

Please help me.

Raiyan Kabir
  • 1,016
  • 2
  • 11
  • 23

1 Answers1

1

Yes, it is possible. Bundle is just a directory with some defined structure. See Framework Programming Guide for the details.

cody
  • 3,233
  • 1
  • 22
  • 25
  • This document shows how to do it with Xcode. As VTK is a cmake project and its platform independent, I was wondering whether it is possible to make a framework out of the binary I have. I have to source code and its too large to add to an Xcode project. Besides the code is in C++ rather than Objective-C. – Raiyan Kabir Apr 09 '13 at 04:55
  • That document shows what is framework in general. As I said before it is just a directory where you place you headers, binaries and other resources if any. See "Anatomy of Framework Bundles". And doesn't matter what language C++ or Objective-C (you can even mix them) - your framework will have only headers and your binary. By the way - you can create Xcode project using cmake but that is not required. – cody Apr 09 '13 at 05:13
  • I'm to sure about the binary myFramework mentioned in the documentation. That is a compiled binary. Can I make a working framework without that binary. The reason for my concern is There is no such binary available in VTK. All the components are dyld files. That is dynamic binary. Please help me further to make it. – Raiyan Kabir Apr 09 '13 at 07:51
  • And why do you need a framework then? Why not just use those dylibs. Just copy them to your application's bundle. Or may be I just misunderstood your question? – cody Apr 09 '13 at 08:32
  • I think that is something I could do. But I was wondering how do I tell the linker to find the libraries in the lib folder inside my application bundle. – Raiyan Kabir Apr 09 '13 at 09:24
  • 1
    Check this thread: http://stackoverflow.com/questions/1596945/building-osx-app-bundle there is nice and full answer for your question. – cody Apr 09 '13 at 09:49