RenderKit / ospray

An Open, Scalable, Portable, Ray Tracing Based Rendering Engine for High-Fidelity Visualization
http://ospray.org
Apache License 2.0
982 stars 178 forks source link

Error building benchmark - ospray 2.7.0 source tarball #494

Closed nyue closed 2 years ago

nyue commented 2 years ago

I am building via standard build (not superbuild)

I came across this build failure, anyone else encountered this ?

cmake \
        -D OSPRAY_MODULE_BILINEAR_PATCH=ON \
        -D OSPRAY_APPS_BENCHMARK=ON \
        -D OSPRAY_APPS_EXAMPLES=OFF \
        -D OSPRAY_APPS_TESTING=OFF \
[  4%] Built target ospray
[ 90%] Built target ospray_module_ispc
[ 90%] Building CXX object apps/ospBenchmark/CMakeFiles/ospBenchmark.dir/ospBenchmark.cpp.o
In file included from /home/nyue/projects/ospray/ospray-2.7.0/apps/ospBenchmark/ospBenchmark.cpp:4:
/home/nyue/projects/ospray/ospray-2.7.0/apps/ospBenchmark/BaseFixture.h:6:10: fatal error: ArcballCamera.h: No such file or directory
    6 | #include "ArcballCamera.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [apps/ospBenchmark/CMakeFiles/ospBenchmark.dir/ospBenchmark.cpp.o] Error 1
make[1]: *** [apps/ospBenchmark/CMakeFiles/ospBenchmark.dir/all] Error 2
make: *** [all] Error 2
johguenther commented 2 years ago

OSPRAY_APPS_BENCHMARK needs OSPRAY_ENABLE_APPS enabled as well.

nyue commented 2 years ago

I do have it enabled


 CMAKE_BUILD_TYPE                 Release
 CMAKE_CXX_COMPILER               /mnt/nyue/systems/gcc/9.3.0/bin/g++
 CMAKE_INSTALL_PREFIX             /mnt/nyue/systems/ospray/head
 OSPRAY_APPS_BENCHMARK            ON
 OSPRAY_APPS_ENABLE_GLM           OFF
 OSPRAY_APPS_EXAMPLES             OFF
 OSPRAY_APPS_TESTING              OFF
 OSPRAY_APPS_TUTORIALS            ON
 OSPRAY_BUILD_ISA                 ALL
 OSPRAY_ENABLE_APPS               ON
 OSPRAY_ENABLE_MODULES            ON
 OSPRAY_MODULE_BILINEAR_PATCH     ON
 OSPRAY_MODULE_DENOISER           OFF
 OSPRAY_MODULE_MPI                OFF
 OSPRAY_MODULE_MULTIDEVICE        OFF
 OSPRAY_TEST_ISA                  AVX512SKX
 TBB_DIR                          /mnt/nyue/systems/tbb/2021.3.0/lib64/cmake/TBB
johguenther commented 2 years ago

Ha, we have a typo in apps/common/CMakeLists.txt, thanks for reporting! As a workaround, enable OSPRAY_APPS_TESTING as well, or just set OSPRAY_APPS_BENCHARK=ON (without M)...