3 Replies Latest reply: May 23, 2012 5:24 PM by etresoft
BryanMcN Level 1 Level 1 (0 points)

I have a mac osx application that relies on a number of tools (libusb, twain-sane interface, sane backends, and imageMagick) and I'm not sure how to redistribute these. I'm new to the mac world so please don't assume I know anything . I was lucky that these tools had their own package installers, but that doesn't help me for redistribution.

 

For imageMagick for example I was planning to include the source and then configure and make install it, but when I tried this myself I found that I didn't have a C compiler and had to download XCode and command line tools in order for it to work. I imagine anyone downloading my app would run into a similar problem, so I'm not sure how to proceed.

 

Am I meant to build these ahead of time and then on install move them to /usr/local/bin or /usr/local/lib where appropriate? Any help would be appricated, thanks.


Mac mini, Mac OS X (10.7.4)
  • etresoft Level 7 Level 7 (26,405 points)

    What is your distribution method? If you are installing yourself, you can (as much as the license will allow it), just install tools into the places where they could live. If you are planning on distributing via the Mac App Store, then those 3rd party tools need to be inside your application's bundle. It just so happens that the application bundle is the best place for them. Then, if someone wants to backup or uninstall your application, it doesn't have bits and pieces all over the system.

     

    Another alternative is that you could wrap the 3rd party product into a private framework and include that inside your application bundle. Before executing any of those 3rd party tools, you may need to setup environment variable point to your application bundle frameworks directory.

  • BryanMcN Level 1 Level 1 (0 points)

    We won't be putting this on the Mac App Store and we have FileStorm Pro so I was planning on using that. I did a quick bit of googling for private frameworks and it seemed very much aimed at XCode projects. I made my app in realbasic so would I still be able to go down that route?

  • etresoft Level 7 Level 7 (26,405 points)

    I have no clue. You would have to ask them.