Skip to content

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

@BorisDKozlov

Description

@BorisDKozlov

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions