lfreist / hwinfo

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

ubuntu20.04 arm,compile errors: #75

Open xinsuinizhuan opened 10 months ago

xinsuinizhuan commented 10 months ago

图片 图片

cmake . make -j6

lfreist commented 10 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.