#18340 closed bug (invalid)
HaikuDepot: SDL2 cannot work with CMake
Reported by: | Carlo_Bramini | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | - General | Version: | R1/beta4 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
I updated my packages with HaikuDepot application. The process updated SDL2 from 2.0.20 to 2.26.4 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.
Change History (4)
comment:1 by , 20 months ago
Description: | modified (diff) |
---|
comment:2 by , 20 months ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 by , 20 months ago
Hey Carlo! As humdinger said, it would be best to file this over HaikuPorts, but... may I ask you please to also tell us the exact revision of the SDL2 _devel package you installed?
Notice that the version-revision for the newest one is "2.26.4-2". That last "-2" is also important (as it denotes changes on the recipe/packaging of that particular SDL2 version).
Thanks in advance.
comment:4 by , 20 months ago
Thank you very much for the reply, I opened a new ticket to HaikuPorts as you suggested, I didn't know about that, sorry for the trouble.
https://github.com/haikuports/haikuports/issues/8275
For information, the installed revision of the library is "2.26.4-2" and I discovered the issue with my port of Tomb1Main engine for Haiku:
Issues with 3rd party ports should be reported at the HaikuPorts bugtracker.