Fedora is a PITA. It puts things in weird places and doesn’t always install all the libraries you think it does. Make sure that you have both the static and dynamic version of the libraries or things think they can link but then the resolution fails later down the road (Fedora often puts them in two different packages).
SDL2 used to have a similar problem (don’t know if it ever got ironed out):