Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake error on SDL when trying to compile on linux #78

Open
ThatzOkay opened this issue Mar 15, 2023 · 2 comments
Open

CMake error on SDL when trying to compile on linux #78

ThatzOkay opened this issue Mar 15, 2023 · 2 comments

Comments

@ThatzOkay
Copy link

I am running arch linux and I am trying to compile the samples but when running the cmake .. I get error on SDL

CMake Error at sdl2/redrectangle/CMakeLists.txt:14 (find_package):
Could not find a configuration file for package "SDL2" that is compatible
with requested version "".

The following configuration files were considered but not accepted:

/usr/lib/cmake/SDL2/SDL2Config.cmake, version: 2.26.4 (64bit)
@ThatzOkay
Copy link
Author

ThatzOkay commented Mar 16, 2023

Fixed it by changing find_package(SDL2 Required) in sdl2/redrectangle/CMakeLists.txt line 14 to find_package(SDL2 REQUIRED PATHS ${VITASDK}/arm-vita-eabi/lib/cmake/SDL2)
to make sure it uses the vitaSDK SDL2

@faelpinho
Copy link

Same to me. Thanks @ThatzOkay .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants