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

Compilation fails while using CMake instruction on Apple M3 chip. #135

Open
BorisDKozlov opened this issue Dec 5, 2024 · 0 comments
Open

Comments

@BorisDKozlov
Copy link

I did the following steps :
1.
cmake -S . -B build -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk"
2.
cmake --build build

Compilation fails with the following error:

/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/usr/include/c++/v1/cstdint:149:5: error: <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header.           This usually means that your header search paths are not configured properly.           The header search paths should contain the C++ Standard Library headers before           any C Standard Library, and you are probably using compiler flags that make that           not be the case.
  149 | #   error <cstdint> tried including <stdint.h> but didn't find libc++'s <stdint.h> header. \
      |     ^
  1. The issue got fixed by commenting out the following line :
    include_directories(${CURL_INCLUDEDIR})

NOTE: instruction suggests to apply cmake --build build -DCMAKE_OSX_SYSROOT="..." , however this fails and I did a configuration with 1. (described above)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant