-
Notifications
You must be signed in to change notification settings - Fork 92
Description
Describe the bug
在 Max os 上按照说明无法编译通过
To Reproduce
Steps to reproduce the behavior:
- mkdir build && cd build
- cmake .. && make -j8
Expected behavior
应该正常编译通过
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Mac OS 15.7.3
- CPU Arch: X86
- Clang 17.0.0.17000603
- cmake 4.2.1
Additional context
报错信息如下:
[ 19%] Building CXX object src/CMakeFiles/libFreeKill.dir/cmake_pch.hxx.pch
In file included from :1:
In file included from /Users/zwei/Documents/code/freekill/FreeKill/build/src/CMakeFiles/libFreeKill.dir/cmake_pch.hxx:5:
In file included from /Users/zwei/Documents/code/freekill/FreeKill/src/pch.h:7:
In file included from /usr/local/lib/QtCore.framework/Headers/QtCore:4:
/usr/local/lib/QtCore.framework/Headers/qglobal.h:13:12: fatal error: 'type_traits' file not found
13 | # include <type_traits>
| ^~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/CMakeFiles/libFreeKill.dir/cmake_pch.hxx.pch] Error 1
make[1]: *** [src/CMakeFiles/libFreeKill.dir/all] Error 2
make: *** [all] Error 2