bupticybee / TexasSolver

🚀 A very efficient Texas Holdem GTO solver :spades::hearts::clubs::diamonds:
https://bupticybee.github.io/texassolver_page
GNU Affero General Public License v3.0
1.73k stars 306 forks source link

console cmake出错 #135

Open sniperHW opened 1 year ago

sniperHW commented 1 year ago

-- The C compiler identification is AppleClang 12.0.0.12000032 -- The CXX compiler identification is AppleClang 12.0.0.12000032 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Build type: CMake Error at /usr/local/Cellar/cmake/3.24.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) Call Stack (most recent call first): /usr/local/Cellar/cmake/3.24.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /usr/local/Cellar/cmake/3.24.2/share/cmake/Modules/FindOpenMP.cmake:545 (find_package_handle_standard_args) CMakeLists.txt:31 (FIND_PACKAGE)

-- Configuring incomplete, errors occurred!

sniperHW commented 1 year ago

编译平台式mac 10.15.7

bupticybee commented 1 year ago

很明显,用于编译的编译器不支持OpenMP,需要一个支持OpenMP的编译器

sniperHW commented 1 year ago

使用llvm-clang,cmake可以通过,但编译的时候很多标准库头文件找不到了。这个要怎么处理。

bupticybee commented 1 year ago

使用llvm-clang,cmake可以通过,但编译的时候很多标准库头文件找不到了。这个要怎么处理。

应该是cpp版本问题,需要17以上版本的编译器