Open abualiali opened 5 days ago
Sounds like you might not have SDL2 on your system, or CMake is looking in the wrong folder for SDL2's own .cmake files. What operating system are you on? There are find_package()
CMake commands which attempt to find SDL2 on your system automatically but if you don't have it installed in the default directories CMake tries to look in, or just don't have it at all, this is one of the errors it might throw.
I am going to guess you have some sort of folder misconfiguration. If CMake flat out couldn't find SDL2 it would just say so but in your case it can't find specific cmake config files. In that case do what the error message says and just change CMAKE_PREFIX_PATH
to point to wherever the installation prefix of SDL2 is on your system. If you're building with CMake you can just pass in this flag:
-DCMAKE_PREFIX_PATH=/path/to/SDL2 ...
If you don't have SDL2 installed and you're on Ubuntu, you can just run the following on your command line:
sudo apt update
sudo apt-get install libsdl2-dev
Then try building again with CMake (I'm assuming this is what you used). Make sure to build from scratch by removing the build/
folder in the root directory.
thank you i continue this problem
Please only ask questions related to source code.