1
General / SFML as a static library on Mac
« on: November 29, 2015, 04:52:34 pm »
Hello,
I'm obviously doing something wrong. I compiled SFML as static libraries for Mac OS X. In my project I am linking those libraries but then the linker is complaining that it can't resolve all of the symbols coming from the dependencies of SFML. I understand that they're not static libraries but frameworks. Why aren't they being included as static libraries as well?
And even then, how are you supposed to tell Cmake to link those frameworks as well?
I tried adding the usual -framework FLAC etc to target_link_libraries but it complains that it cannot find those frameworks. How do you tell where they are? (They're in the same folder as the SFML static libraries in my project btw)
Thanks in advance!
I'm obviously doing something wrong. I compiled SFML as static libraries for Mac OS X. In my project I am linking those libraries but then the linker is complaining that it can't resolve all of the symbols coming from the dependencies of SFML. I understand that they're not static libraries but frameworks. Why aren't they being included as static libraries as well?
And even then, how are you supposed to tell Cmake to link those frameworks as well?
I tried adding the usual -framework FLAC etc to target_link_libraries but it complains that it cannot find those frameworks. How do you tell where they are? (They're in the same folder as the SFML static libraries in my project btw)
Thanks in advance!