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
MacOS BigSur / M1 Monterey build failures #12
Comments
I'll have to try to wrangle up a VM for testing this. Although it's not causing the error in question, SDL 1.x should be the dependency here. Is it asking you to explicitly install the SDL2 library/headers? In the meantime, does changing line 31 of source_files/epi/epi_macosx.h to this help?: #ifdef GNUC |
Ahh yes, it is SDL 1.2 not SDL2. Sorry, I've spent a lot of time lately with SDL2 source ports. So you were right about that one addition. I'm working on a few others to get it building. I'll report back once that is done. EDIT: So you were right with that fix you mentioned. Below are a few others. Since your CMake file does not define a MACOSX preprocessor macro, the resulting Makefile does not define MACOSX, and so anything in an ifdef/else with MACOSX will not be triggered. I would suggest to go the least painful route and use 'APPLE' as this will be triggered when running on all Apple systems. epi.h
deh_edge/i_defs.h
edge/i_defs_gl.h
edge/unx_system.cc Remove the MACOSX ifndef. This is no longer true and MacOS needs this function.
Finally (I also renamed all MACOSX macros to APPLE), I also had to manually configure the link.txt file to correctly point to all the right things (CMake should do this when it is properly configured for a MacOS system). link.txt: After all this, it links without issues and it is playable. Phew.. as always, I'll be more than happy to test any CMake additions for Mac systems that you may do. |
Wow, well I'm happy to see that got up and running relatively quickly! I'll leave this open while I fold in the changes you've suggested. Thanks for the help. |
6728121 should have the changes you've mentioned above...were those enough for link.txt to be fixed when starting fresh, or were there further adjustments needed? |
I had an issue with OpenGL and SDL linking. I used the below in the unix target_link_libraries part:
Then it linked without issues. Compilation went through without a hitch. |
I wonder if that's related to me trying to make non-Window builds link with the bundled glew folder instead...would you be able to attach your CMakeLists.txt? |
Would you mind giving this one a spin? If it doesn't work, I may need to add a find_package(GLEW) for Apple targets |
Perfect! Works fine with your latest master. |
Sweet, thanks for testing. I just pushed the same CMakeLists as 17a48ac and will close this issue then. Let me know if any other Apple issues crop up. |
Clang Target:
SDL2/GLEW etc.. are all correctly resolved and identified via CMake.
The text was updated successfully, but these errors were encountered: