Skip to content

build fails at SDL_image (macOS 15.5 M3) : undeclared identifier 'SDL_CursorFrameInfo' #21

Description

@gamecubate

Followed instructions per README, in sequence.

Fails at SDL_image. See log below.

Does this seem familiar ? Running macOS Sequoia 15.5 on M3.

$ git clone https://github.com/libsdl-org/SDL.git
$ cd SDL
$ cmake -S . -B build
$ make -C build && make -C build install
=> SUCCESS
$ cd ..

$ git clone https://github.com/libsdl-org/SDL_ttf.git
$ cd SDL_ttf
$ cmake -S . -B build
$ make -C build && make -C build install
=> SUCCESS
$ cd ..

$ git clone https://github.com/libsdl-org/SDL_image.git
$ cd SDL_image
$ cmake -S . -B build
$ make -C build && make -C build install
[  3%] Building C object CMakeFiles/SDL3_image-shared.dir/src/IMG.c.o
/Users/alexandre.rousseau/local/wip/tmp/LISP/SDL3/SDL_image/src/IMG.c:499:5: error: use of undeclared identifier 'SDL_CursorFrameInfo'
  499 |     SDL_CursorFrameInfo *frames;
      |     ^

$ rg SDL_CursorFrameInfo
src/IMG.c
499:    SDL_CursorFrameInfo *frames;
507:    frames = (SDL_CursorFrameInfo *)SDL_calloc(anim->count, sizeof(*frames));

Xcode/macOS/SDL3.framework/Versions/A/Headers/SDL_mouse.h
138:typedef struct SDL_CursorFrameInfo
142:} SDL_CursorFrameInfo;
630: * surfaces and durations in an array of SDL_CursorFrameInfo structs. The hot
672:extern SDL_DECLSPEC SDL_Cursor *SDLCALL SDL_CreateAnimatedCursor(SDL_CursorFrameInfo *frames,

Xcode/iOS/SDL3.framework/Headers/SDL_mouse.h
138:typedef struct SDL_CursorFrameInfo
142:} SDL_CursorFrameInfo;
630: * surfaces and durations in an array of SDL_CursorFrameInfo structs. The hot
672:extern SDL_DECLSPEC SDL_Cursor *SDLCALL SDL_CreateAnimatedCursor(SDL_CursorFrameInfo *frames,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions