Closed Balajanovski closed 7 years ago
Issue resolved. Cause: my idiocy
Can you explain what you did to fix this issue? Running into the same thing on Linux.
Even though the main SDL lib was installed via brew, the macOS package manager, I had the same problem. I think on Linux you can install libsdl2-image-dev
with apt, but that package isn't available via brew.
I resolved it by manually installing SDL_image from https://www.libsdl.org/projects/SDL_image/. In the case of macOS that meant copying the lib to /Library/Frameworks/. The page and files include instructions for Linux and Windows too.
I also needed SDL_mixer, which I retrieved from here: https://www.libsdl.org/projects/SDL_mixer/
I have created the directory and put all the cmake files in it. I have properly linked it as a module in my
CMakeLists.txt
file. I have downloaded SDL2, yet for some reason I am getting this error.My
CMakeLists.txt
file:My
CMakeOutput.log