You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a ton of progress getting my Swift/SDL app working. Builds fine under SPM and Xcode on macOS, but on Linux I'm running into some issues. In particular, the way it's trying to link SDL2_ttf is wrong. That is, it should be linking against libSDL2_ttf, but instead it’s trying to link against libSDL2TTF. I can't actually find that string anywhere in my code, and pkg-config gives this:
Additional Detail from JIRA
md5: 6cd95e507db6ba57eec9c2432d238bc2
Issue Description:
From my post on the forums: https://forums.swift.org/t/spm-using-wrong-name-for-linked-library-on-linux/31589
I made a ton of progress getting my Swift/SDL app working. Builds fine under SPM and Xcode on macOS, but on Linux I'm running into some issues. In particular, the way it's trying to link SDL2_ttf is wrong. That is, it should be linking against
libSDL2_ttf
, but instead it’s trying to link againstlibSDL2TTF
. I can't actually find that string anywhere in my code, andpkg-config
gives this:But when Swift goes to link, it does:
You can see more details here.
Here’s my
Package.swift
for the library:I can’t figure out why it’s trying to do that. It’s finding
SDL2
just fine.The text was updated successfully, but these errors were encountered: