Closed dbrumley closed 2 years ago
I have the same issue on fresh projects from this template without any changes. (in the github CI)
Looks like MacOs latest has changed? I guess this relates to: https://github.com/conan-io/conan-center-index/issues/8480 With the root cause beeing: https://github.com/fmtlib/fmt/issues/2455
The closest we can get is MacOS-11 on github, but I've created a PR to look into it #193
Are you still seeing a sigsegv here? I am able to build both cpp_boilerplate_project and cpp_starter_project on Apple Silicon (macOS 12.3), and I haven't seen anything like that.
I upgraded to 10.3 (build 21E230) as well, so I can no longer check 10.1. I can confirm on 10.3 I am no longer getting a SIGSEGV.
It does not compile out-the-gate with cmake -S . -B ./build
, though. Log attached.
It failed to build libiconv
, which is a dependency of SDL2. I expect that if you remove the SDL example from your project, everything else will compile without a hitch.
You can try clearing your conan cache with conan remove '*'
and trying again; sometimes that works.
I don't know what it is about the SDL2 conan package, but I have had so many issues with it not building properly on Linux that I often give up on it. When it does build properly, it can take multiple hours on Linux, and when you run the example program, it can't figure out how to write to the screen. I am able to build it on a Mac in just a few minutes, but the executable still can't draw to the screen. I've never had this kind of trouble with the Qt, FLTK or IMGUI examples.
If you want, we can open a new issue for the "SDL2 fails to build properly" issue (it's very much not Mac specific), but I think it's fair to close this issue since the sigsegv is no longer an issue for the current MacOS.
I'm going to close this issue.
FWIW, removing build
, running conan remove '*'
, and what I think was removing SDL from the cmakelist didn't work. It's completely likely it's user error on my side; just didn't want to put in the time to figure it out.
I've found this project isn't really what I was looking for. I was looking for a fairly robust and simple CPP modern cmake template, while this is a more ambitious project. While I'm sure this has the right built-ins for serious CPP development and package management, it's not quite for me (I'm not a serious CPP developer).
I could be making an obvious mistake, but this doesn't seem to build on macos 12.1 (monterey) and triggers a clang sigsegv with one of the dependencies. I've attached the build log, with the crux being:
Am I doing something wrong?
compile.log