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

macOS m1 执行编译报错找不到 <string> #4

Open
yuhr123 opened this issue Oct 1, 2024 · 2 comments
Open

macOS m1 执行编译报错找不到 <string> #4

yuhr123 opened this issue Oct 1, 2024 · 2 comments

Comments

@yuhr123
Copy link

yuhr123 commented Oct 1, 2024

之前成功编译过,今天 pull 了一下,按照 readme 中的编译说明,执行 cmake --build . --config release 会报下面的错误:

[  3%] Building CXX object 3rd/sxtwl_cpp/src/CMakeFiles/sxtwl.dir/JD.cpp.o
In file included from /Users/herald/repo/qimen/3rd/sxtwl_cpp/src/JD.cpp:1:
/Users/herald/repo/qimen/3rd/sxtwl_cpp/src/JD.h:4:10: fatal error: 'string' file not found
    4 | #include <string>
      |          ^~~~~~~~
1 error generated.
make[2]: *** [3rd/sxtwl_cpp/src/CMakeFiles/sxtwl.dir/JD.cpp.o] Error 1
make[1]: *** [3rd/sxtwl_cpp/src/CMakeFiles/sxtwl.dir/all] Error 2
make: *** [all] Error 2

macOS 版本:15.0
x-select 版本:2409

@taynpg
Copy link
Owner

taynpg commented Oct 1, 2024

好的,感谢反馈,我有空的时候验证一下。

@taynpg
Copy link
Owner

taynpg commented Oct 5, 2024

我尝试在我的M1 Pro上编译可行,要不你全部重新拉取一下,使用git clone --recursive https://github.com/taynpg/csp

image

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

2 participants