Beşinci yürütülmesi gereken komut olan cmake -D CMAKE_PREFIX_PATH=/absolute/path/to/OpenCL-Headers/install -D CMAKE_INSTALL_PREFIX=./OpenCL-ICD-Loader/install -S ./OpenCL-ICD-Loader -B ./OpenCL-ICD-Loader/build kodunu yazınca aşağıdaki hata çıkıyor karşıma:
Kod:
cruslan@Crusland:~$ cmake -D CMAKE_PREFIX_PATH=/absolute/path/to/OpenCL-Headers/install -D CMAKE_INSTALL_PREFIX=./OpenCL-ICD-Loader/install -S ./OpenCL-ICD-Loader -B ./OpenCL-ICD-Loader/build
CMake Error at CMakeLists.txt:133 (find_package):
By not providing "FindOpenCLHeaders.cmake" in CMAKE_MODULE_PATH this.
project has asked CMake to find a package configuration file provided by.
"OpenCLHeaders", but CMake did not find one.
Could not find a package configuration file provided by "OpenCLHeaders"
with any of the following names:
OpenCLHeadersConfig.cmake
openclheaders-config.cmake
Add the installation prefix of "OpenCLHeaders" to CMAKE_PREFIX_PATH or set.
"OpenCLHeaders_DIR" to a directory containing one of the above files. If.
"OpenCLHeaders" provides a separate development package or SDK, be sure it.
has been installed.
-- Configuring incomplete, errors occurred!
See also "/home/cruslan/OpenCL-ICD-Loader/build/CMakeFiles/CMakeOutput.log".
See also "/home/cruslan/OpenCL-ICD-Loader/build/CMakeFiles/CMakeError.log".
Hatanın ne olduğunu anlamadım ve ne yapmam gerektiği konusunda bir fikrim yok.
Sorunu çözdüm. Sorun yaşadığım komutta yani cmake -D CMAKE_PREFIX_PATH=/absolute/path/to/ -D CMAKE_INSTALL_PREFIX=./OpenCL-ICD-Loader/install -S ./OpenCL-ICD-Loader -B ./OpenCL-ICD-Loader/build komutunda CMAKE_PREFIX_PATH=/absolute/path/to/ kısmına önceki komutlarda indirilen paketlerin konumunu girmek gerekiyormuş. İndirilen kısmı dosya yöneticisi ile buldum, /home/cruslandizinindeymiş. O kısmı CMAKE_PREFIX_PATH=/home/cruslan/OpenCL-Headers/install olarak değiştirince komut çalıştı.