lfreist / hwinfo

cross platform C++ library for hardware information (CPU, RAM, GPU, ...)
MIT License
433 stars 74 forks source link

ubuntu20.04 arm,compile errors: #75

Open xinsuinizhuan opened 7 months ago

xinsuinizhuan commented 7 months ago

图片 图片

cmake . make -j6

lfreist commented 7 months ago

concepts are part of C++20 and your compiler may not support it yet. I suggest three solutions:

  1. use -std=c++20 compiler flag to enable c++20 features (e.g. for gcc v.9.4)
  2. upgrade your compiler
  3. pass the NO_OCL CMake flag to the build HWinfo with c++11

I hope, this solves the issues.