Skip to content

Mac OS编译问题 #508

@nwtcode

Description

@nwtcode

Describe the bug
在 Max os 上按照说明无法编译通过

To Reproduce
Steps to reproduce the behavior:

  1. mkdir build && cd build
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions