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

fatal error: 'cstddef' file not found on bigsur #24

Open
xmansch opened this issue Dec 5, 2021 · 2 comments
Open

fatal error: 'cstddef' file not found on bigsur #24

xmansch opened this issue Dec 5, 2021 · 2 comments

Comments

@xmansch
Copy link

xmansch commented Dec 5, 2021

Hello, can you help me with compiling sdk on mac ?

@palmerj
Copy link

palmerj commented Jul 4, 2022

I just tried to build cdoom now and had the same issue. I modified the cmake file and this seemed to work:

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -215,8 +215,8 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
 		add_definitions(-DMACOS_X=1)

 		if(cpu STREQUAL "x86_64")
-			add_compile_options(-arch x86_64 -mmacosx-version-min=10.6)
-			set(ldflags "${ldflags} -arch x86_64 -mmacosx-version-min=10.6")
+			add_compile_options(-arch x86_64 -mmacosx-version-min=10.9)
+			set(ldflags "${ldflags} -arch x86_64 -mmacosx-version-min=10.9")
 		elseif(cpu STREQUAL "arm64")
 			add_compile_options(-arch arm64 -mmacosx-version-min=11.0)
 			set(ldflags "${ldflags} -arch arm64 -mmacosx-version-min=11.0")
@@ -228,7 +228,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
 			endif()

 			add_compile_options(-mmacosx-version-min=10.4)
-			set(ldflags "${ldflags} -mmacosx-version-min=10.4")
+			set(ldflags "${ldflags} -mmacosx-version-min=10.9")
 		elseif(cpu STREQUAL "ppc")
 			CHECK_CXX_COMPILER_FLAG("-arch ppc" cxx_has_arch_ppc)
 			if(cxx_has_arch_ppc)

@PandaWhisperer
Copy link

Thanks @palmerj, that fixed it for me. BTW, looks like only the first change is needed (on a 64 bit machine, anyway).

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