[ptx] Hugin 0.6 on OS X Crashing
Ippei UKAI
ippei_ukai at mac.com
Tue Aug 1 21:42:25 BST 2006
Hi,
Briefly about .app package then:
First, you need the right package structure (normal directories). You
can read about it on apple's documentation, but you can just see any
existing application bundles.
Second, to be a proper application bundle, the files PkgInfo and
Info.plist should be in place.
Third, HuginOSX finds many resources inside the bundle, so have to
place resources in the right places. Again, you can see inside
HuginOSX and reproduce it, but main idea is thatall resources go in
to the Resources folder, but localised version goes into the
languages's .lproj folder. Localising part is done by my hand written
script which is in the CVS. The xrc is (almost) directly copied into
the Resource folder.
Lastly, all executable (and other platform-dependent) codes goes to
Contents/MacOS (HuginOSX and optionally enblend). If you use dynamic
libraries, you should compile the executables to dynamically link
@executable_path/lib*.dylib (I have no idea how, by the way... I
simply use static libs). Some projects choose to store dynamic libs
in Contents/Frameworks (@executable_path/../Frameworks/lib*.dylib).
Basically, on OSX, no application that is not bundled can handle GUI.
You definitely need application package. I also chose to simplify the
install process and linked all the libraries statically. You may
choose otherwise, but most 'nice' applications are distributed as d&d
installation than installer packages.
Ippei
On 2006-08-01, at 17:11, JD Smith wrote:
> On Mon, 2006-07-31 at 19:04 -0400, Brett Elliott wrote:
>> It does not produce a .app bundle. It does however produce an
>> executable.
>
> Ippei will have to say for sure, but I think the .app includes various
> components to which the executable is linked, and perhaps other
> important things.
>
> I would really like to see ./configure; make; produce hugin.app.
> Ippei,
> can you summarize the special steps you take to produce HuginOSX?
> Since
> there are so many Mac users, it would be an advantage to have one
> streamlined build process (with XCode as a valid side option, of
> course).
>
> JD
>
>
--
->> 鵜飼 一平 (UKAI Ippei) ->>>>>>>>>>>>>>>>>>>>>>>>
MSN & AIM: ippei_ukai at mac.com (Skype: ippei_ukai)
Homepage: http://homepage.mac.com/ippei_ukai/
More information about the ptx
mailing list