My machine is working under Xubuntu 22.04 and doesn't have internet access. I downloaded Oclgrind 21.10 from the GitHub page https://github.com/jrprice/Oclgrind, then followed its recommendations for building on Linux and MacOS via CMake. I used the command presented in that page:
sudo cmake /home/irimi/Temp/Oclgrind-21.10 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr/lib/oclgrind -DLLVM_DIR=/usr/lib/llvm-14/lib/cmake/llvm
Suddenly, it didn't work returning only this:
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found LLVM 14.0.0
-- Using LLVMConfig.cmake in: /usr/lib/llvm-14/lib/cmake/llvm
CMake Error at CMakeLists.txt:111 (message):
Clang headers not found (set CLANG_ROOT)
-- Configuring incomplete, errors occurred!
See also "/home/irimi/Temp/Oclgrind-21.10/CMakeFiles/CMakeOutput.log".
I found some messages from persons who also got this issue, and installed packages clang-14, libc++-14-dev and libc++abi-dev following their way to fix it, but for me it didn't change anything. So my question is how do I correctly install Oclgrind on this machine to make it work? And thank you everyone in advance.
UPD: I added CLANG_ROOT to /etc/environment:
CLANG_ROOT="/lib/llvm-14/lib/clang/14.0.0/"
I tried two different variations of this path, the second is:
CLANG_ROOT="/lib/llvm-14/lib/clang/14.0.0/include/"
However, the result didn't change even a little.