Page 1 of 1

[11 Apr 2011] MacOS Binary

Posted: Sat Jun 13, 2020 5:32 pm
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

[15 Apr 2011] Re: MacOS Binary

Posted: Sat Jun 13, 2020 5:32 pm
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