Genesis icon indicating copy to clipboard operation
Genesis copied to clipboard

when i used system dependencies (2.A) to build LuisaRender and its python binding it have some problem

Open HANQAQ opened this issue 10 months ago • 4 comments

when i use:cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D PYTHON_VERSIONS=3.9 -D LUISA_COMPUTE_DOWNLOAD_NVCOMP=ON -D LUISA_COMPUTE_ENABLE_GUI=OFF it show:--``` Found pybind11: /home/han/mambaforge/envs/genesis/include (found version "2.13.6") -- Configuring done (0.7s) -- Generating done (0.3s) -- Build files have been written to: /home/han/Genesis/genesis/ext/LuisaRender/build

then 
i use:`cmake --build build -j $(nproc)`
it show:```
warning: `luisa_compute_backend_impl` (lib) generated 10 warnings
error: could not compile `luisa_compute_backend_impl` (lib) due to 4 previous errors; 10 warnings emitted
make[2]: *** [src/compute/src/rust/CMakeFiles/luisa_compute_rust_build_embree.dir/build.make:147: src/compute/src/rust/rust/release/libluisa_compute_ir_static.a] Error 101
make[2]: *** Deleting file 'src/compute/src/rust/rust/release/libluisa_compute_ir_static.a'
make[1]: *** [CMakeFiles/Makefile2:2186: src/compute/src/rust/CMakeFiles/luisa_compute_rust_build_embree.dir/all] Error 2
[ 46%] Building CXX object src/compute/src/osl/CMakeFiles/luisa-compute-osl.dir/oso_parser.cpp.o
/usr/bin/ld: CMakeFiles/luisa-cuda-nvrtc-standalone-compiler.dir/cuda_nvrtc_compiler.cpp.o: in function `main':
cuda_nvrtc_compiler.cpp:(.text.startup+0x173): undefined reference to `nvrtcGetOptiXIRSize'
/usr/bin/ld: cuda_nvrtc_compiler.cpp:(.text.startup+0x197): undefined reference to `nvrtcGetOptiXIR'
collect2: error: ld returned 1 exit status
make[2]: *** [src/compute/src/backends/cuda/CMakeFiles/luisa-cuda-nvrtc-standalone-compiler.dir/build.make:104: bin/luisa_nvrtc] Error 1
make[1]: *** [CMakeFiles/Makefile2:2576: src/compute/src/backends/cuda/CMakeFiles/luisa-cuda-nvrtc-standalone-compiler.dir/all] Error 2
[ 46%] Linking CXX shared library ../../../../bin/liblc-ir-v2.so
[ 46%] Built target luisa-compute-ir-v2
[ 46%] Linking CXX shared library ../../../../bin/liblc-tensor.so
[ 46%] Built target luisa-compute-tensor
[ 46%] Linking CXX shared library ../../../../bin/liblc-osl.so
[ 46%] Built target luisa-compute-osl
make: *** [Makefile:136: all] Error 2

how i solve this problem

HANQAQ avatar Dec 20 '24 10:12 HANQAQ