-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSPRay determining wrong installation dir when /lib64
is a symlink to /usr/lib
#511
Comments
I also have an Arch-based system (with
Could it be that you have |
Hi @johguenther, thank you for your reply. I don't think I have mangled with Nevertheless, when I tried to build $ cmake -S . -B build The error still says it fails to find OSPRay headers (same as before): related error log (same as before):
I also tried with a single CMakeLists.txt in an empty directory, and the problem is reproduced on 3 of my Arch Linux machines. My cmake_minimum_required(VERSION 3.22)
project(ospray-test)
message("CMAKE_MODULE_PATH is: ${CMAKE_MODULE_PATH}")
find_package(ospray REQUIRED) With this CMakeLists.txt, here's the full error log: with empty CMAKE_MODULE_PATH:$ ls
CMakeLists.txt
$ cmake -S . -B build
-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /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: /bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMAKE_MODULE_PATH is:
CMake Error at /lib64/cmake/ospray-2.8.0/osprayConfig.cmake:26 (message):
Failed to find OSPRay - OSPRay install root: /, determined from relative
path from osprayConfg.cmake install location: /lib64/cmake/ospray-2.8.0,
does not contain OSPRay headers. Either the install directory was deleted,
or the install tree was only partially relocated outside of CMake after
OSPRay was built.
Call Stack (most recent call first):
/lib64/cmake/ospray-2.8.0/osprayConfig.cmake:69 (ospray_report_not_found)
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
See also "/.../build/CMakeFiles/CMakeOutput.log". If I specify with CMAKE_MODULE_PATH set to /usr/lib/cmake:$ rm -rf build/
$ cmake -DCMAKE_MODULE_PATH='/usr/lib/cmake' -S . -B build
-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /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: /bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMAKE_MODULE_PATH is: /usr/lib/cmake
CMake Error at /lib64/cmake/ospray-2.8.0/osprayConfig.cmake:26 (message):
Failed to find OSPRay - OSPRay install root: /, determined from relative
path from osprayConfg.cmake install location: /lib64/cmake/ospray-2.8.0,
does not contain OSPRay headers. Either the install directory was deleted,
or the install tree was only partially relocated outside of CMake after
OSPRay was built.
Call Stack (most recent call first):
/lib64/cmake/ospray-2.8.0/osprayConfig.cmake:69 (ospray_report_not_found)
CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
See also "/.../build/CMakeFiles/CMakeOutput.log". If you have time, could you please try a cmake run with the above 4-line |
CMake version 3.22.1 here as well, yet all is found in |
Well, in my case, all is found in Thank you for your help @johguenther, I will update this if I get any clue in the future. |
I just got a similar error on Arch ( The only difference is that it's not related to
|
Hi, when I try to build pcl on Arch Linux, OSPRay dumps an error message saying:
It comes from these lines in my OSPRay installation at file
/usr/lib/cmake/ospray-2.8.0/osprayConfig.cmake
:Where the value of variable
CURRENT_CONFIG_INSTALL_DIR
is/lib64/cmake/ospray-2.8.0
, which I think the cmake config expects this to be/usr/lib64/cmake/ospray-2.8.0
. On default Arch Linux installations,/lib64
is a symlink to/usr/lib
, so I have to create another symlink at/include
to point to/usr/include
as a workaround, so thatcmake
can find the OSPRay headers. Is there a way that could solve this in the released CMake script from this repo? It seems that these lines are related:https://github.com/ospray/ospray/blob/fe4b3806f8626b22defbeda172609aa7c8c74a2e/cmake/ospray_cmake_config/osprayConfig.cmake.in#L47-L53
Thank you!
The text was updated successfully, but these errors were encountered: