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

SDL2: cannot work with CMake #8275

Closed
carlo-bramini opened this issue Apr 4, 2023 · 1 comment
Closed

SDL2: cannot work with CMake #8275

carlo-bramini opened this issue Apr 4, 2023 · 1 comment

Comments

@carlo-bramini
Copy link

I updated my packages with HaikuDepot application.
The process updated SDL2 from 2.0.20 to 2.26.4-2 and I discovered that the development package doesn't work anymore with CMake.
Running a simple script prints this message on the console:

CMake Error at /boot/system/lib/cmake/SDL2/SDL2mainTargets.cmake:80 (message):
  The imported target "SDL2::SDL2main" references the file

     "/boot/system/lib/libSDL2main.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/boot/system/lib/cmake/SDL2/SDL2mainTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /boot/system/lib/cmake/SDL2/SDL2Config.cmake:49 (include)
  CMakeLists.txt:18 (find_package)

Actually, CMake is right because I have found that static library installed here:

/boot/system/develop/lib/libSDL2main.a

Manually fixing the issue by making a link to /boot/system/lib/libSDL2main.a didn't work because it prints that the filesystem is read-only, but I think that there is something else to do.

@korli
Copy link
Contributor

korli commented Apr 4, 2023

Can you point at an impacted haiku ports package?

threedeyes added a commit that referenced this issue Apr 5, 2023
win8linux pushed a commit to win8linux/haikuports that referenced this issue Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants