Anonymous Maarten
Anonymous Maarten
> I think it is correct to have the directfb include flags in the Cflags in sdl2.pc. (@madebr, we'll need to do the same for X11, since those headers are...
Older cmake versions have issues with the latest sdl2 release because it includes `.m` objective-c sources, for which CMake has only added support [in recent versions](https://cmake.org/cmake/help/latest/command/enable_language.html). Also, `-x objective-c` means...
> I am using cmake version 3.24.1, which should be quite updated Great, that rules things out. Can you try adding `enable_language(OBJC)` somewhere in an appropriate location?
> Sure I can try to add enable_language(OBJC), in the sdl cmakelists? > > Because compilation fails on SDL-static, not on my project Yes, it should be in sdl's cmakelists...
The downside of my proposal to use `enable_language(OBJC)` is that is increases the required CMake version to 3.16 (for Apple systems) An alternative could be to add the following: ```cmake...
Can you please post the error log for a clean build of sdl2/sdl2-static? Because perhaps the error is because some objective-c header is included in a C source.
Thanks for the log. Curiously, it passes `-x c` to the compiler which means it interprets the source as c. This really should not happen. Have you confirmed that the...
Your logs contain ```cmake set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) ``` Can you try adding the following after `enable_language(OBJC)` (without adding `OBJCXX`) ```cmake list(REMOVE CMAKE_C_SOURCE_FILE_EXTENSIONS m) ```
Are you building sdl standalone or as a subproject? Can you try doing: ```cmake project(SDL2 C CXX OBJC) ``` at the top of our cmake scrip? (instead of we doing...
`FetchContent` is basically doing `add_subdirectory`. To iterate faster, you should be able to fetch from a local repo and replace the argument of `GIT_REPOSITORY` with a path on your filesystem....