Rust-SDL2 / rust-sdl2

SDL2 bindings for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"ttf" feature fails to build with "bundled" on macOS

adamsoutar opened this issue · comments

Hi there - thanks so much for your work on this lib!

I've hit an issue I couldn't find in the existing list. I'm depending on sdl2 with bundled from HEAD due to #1302 , and that works until I add ttf as a feature. After that, the build fails like so:

  = note: ld: warning: directory not found for option '-L/Users/adam/Projects/velocity/velocity-sdl/target/release/build/sdl2-sys-f4d4c043108ea068/out/lib64'
          ld: library not found for -lSDL2_ttf
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

This is macOS 13.4.1 on M2 (maybe an issue with compiling on Apple Silicon?). Just wondering if anyone else has seen/worked around this?

Thanks!

Whoops, I didn't find #1195 (comment) before.

Looks like this is a dupe.