Results 1 to 9 of 9

Thread: Mac OS X app bundle can't find bundled framework files

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGD Staff / News Reporter phibermon's Avatar
    Join Date
    Sep 2009
    Location
    England
    Posts
    524
    It would help if we understood the nature of the relative paths etc

    it might be worth getting an existing SDL2 bundle online and just swapping in your binary - perhaps the path isn't compiled into the binary at all, perhaps it's defined in some other file in the bundle.

    If needs be I'll fire up my Hackintosh and attempt to replicate your conditions
    Last edited by phibermon; 19-02-2015 at 01:54 PM.
    When the moon hits your eye like a big pizza pie - that's an extinction level impact event.

  2. #2
    Everything runs fine if I have the SDL2 frameworks in /Library/Frameworks.

    But trying to find en existing SDL2 bundle and see if I can just use the frameworks from that is a brilliant idea. I'll see if I can find one. (Though I'm just using the SDL2 frameworks downloaded directly from libsdl.org and if they can't be bundled with my app, it must be a problem with my app and not the frameworks?)
    Last edited by Christian Knudsen; 19-02-2015 at 02:25 PM.
    Laserbrain Studios - Currently developing Hidden Asset!
    Ascii Sector
    - Real-time roguelike in space!

  3. #3
    Yes!

    Adding -k"-rpath @executable_path/../Frameworks" as a custom linker option for FPC did it!



    So the linker parameters weren't passed on from Xcode to Free Pascal. At this point I'm wonder what exactly I'm using Xcode for?!
    Laserbrain Studios - Currently developing Hidden Asset!
    Ascii Sector
    - Real-time roguelike in space!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •