[11 Apr 2011] MacOS Binary

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
nexus
Posts: 150
Joined: Sun Mar 07, 2010 11:54 am

[11 Apr 2011] MacOS Binary

Post by nexus »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 11 Apr 2011 13:33:13 +0200 (CEST)

I tried to compile a MacOS binary. However, I don't know where to put the directories/files that have to be dynamically loaded during the runtime of my hollywood application.

I have four directories:

Code: Select all

<path-to-project-dir>/
-->fonts/
-->pics/
-->init/
-->data/
and the hollywood application itself:

Code: Select all

<path-to-project-dir>/
-->hwapp
When compiling "hwapp" to a mac binary, you get the follwoing filesystem layout:

Code: Select all

<path-to-project-dir>/
-->hwapp.app/
-->-->Contents/
-->-->-->Info.plist
-->-->-->MacOS/
-->-->-->-->hwapp
-->-->-->Resources/
-->-->-->-->hwapp.icns
However, when i copy the entire <path-to-project-dir> to a MacOS machine and execute the "hwapp" binary, then I get error messages like: "Cannot open font fonts/cmunss.otf with size 30"

So, where do I have to store my directories like "fonts", "pics", etc, such that MacOS can find them in a relative path from whereever it defines its working directory?

I have no clue about MacOS, so please be as specific as possible in your response :)

Thanks, Tom
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[15 Apr 2011] Re: MacOS Binary

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 15 Apr 2011 12:29:32 +0200
So, where do I have to store my directories like "fonts", "pics", etc, such that MacOS can find them in a relative path from whereever it defines its working directory?

I have no clue about MacOS, so please be as specific as possible in your response :)
Answered in: http://forums.hollywood-mal.com/viewtop ... f=10&t=241
Locked