Results 1 to 3 of 3

Thread: Problem with compiling SDL2 on macOS Ventura with Apple Silicon

  1. #1

    Problem with compiling SDL2 on macOS Ventura with Apple Silicon

    Hello everyone,

    unfortunately, I'm stuck here. I'm trying to compile a program that uses SDL2 on a Mac with macOS Ventura and Apple Silicon. I don't want to link against the library, but against the framework. I provide the following parameters, which worked under macOS Monterey:

    fpc spritemove.pas -Ff/Library/Frameworks
    However, under Ventura, I only get the following error messages:

    Linking spritemove
    ld: library not found for -lSDL2
    An error occurred while linking
    spritemove.pas(72,32) Error: Error while linking
    spritemove.pas(72,32) Fatal: There were 1 errors compiling module, stopping
    Fatal: Compilation aborted
    Error: /usr/local/bin/ppca64 returned an error exitcode
    By the way, it works perfectly fine with clang when I compile a C programm using SDL2 like this:

    clang SDLTest.c -o SDLTest -I/Library/Frameworks/SDL2.framework/Headers -F/Library/Frameworks -framework SDL2
    What am I doing wrong with fpc?
    Best regards,
    Cybermonkey

  2. #2
    Sorry, I posted this in the wrong forum.
    @moderators: feel free to move the thread in the correct forum.
    Best regards,
    Cybermonkey

  3. #3
    Quote Originally Posted by Cybermonkey View Post
    Sorry, I posted this in the wrong forum.
    @moderators: feel free to move the thread in the correct forum.
    I moved the thread to SDL/SDL 2 section.

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
  •