-
Notifications
You must be signed in to change notification settings - Fork 255
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
CMAKE using -D CMAKE_INSTALL_PREFIX=install will not copy drjit to Install folder. #1258
Comments
I can confirm. I was having trouble importing mitsuba in python, as it said "no dr jit found" basically. In the install prefix, there is a mitsuba folder, which is installed correctly. The corresponding dr jit folder is missing. There is a workaround, however. Copy the folder build/python/drjit to the installation root, alongside the mitsuba folder, or put it with the rest of the python site packages. I am working on fixing this myself as we speak in the drjit cmake. That whole section looks like it could use a little attention. |
Hi This is not something we support, or intend to support. As per the docs, we recommend building locally and the altering the Is there a specific reason why the procedure above doesn't fit your needs? The build system is already ridiculously complex, I'd prefer not to add any new paths. |
It's the mashup of the two that is problematic, and it currently doesnt seem to work "as is". On install, the mitsuba folder is installed to CMAKE_INSTALL_PREFIX, and yet the mitsuba module can't be imported in python because there's no default visibility into the drjit folder. That may be in the documentation, but a seasoned linux user would never expect to have to do that. Furthermore, a user should be able to remove the build directory after making an install target, and the program should still work - if we point PYTHONPATH into the build directory this promise is broken, and that's no good. In a typical install, i would reasonably expect $make install to place things like this bin/mitsuba (and related binaries) That's the standard "LFSH" way, and right now it just feels a little out of whack is all. I appreciate the complexity of the situation though, and I'm sure it's difficult to manage the cross platform components with all of the different variants that can be produced. |
Sorry if I wasn't clear, what I meant was that installation is not supported "locally" through CMake. The existing CMake install directives that are present are used by However this also means that installing through that Python toolchain is supported. You can run |
@njroussel |
Summary
System configuration
System information:
OS: Windows-10
CPU: Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
GPU: NVIDIA GeForce GTX 1080 Ti
NVIDIA GeForce GTX 1080 Ti
NVIDIA GeForce GTX 1080 Ti
NVIDIA GeForce GTX 1080 Ti
Python: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:27:10) [MSC v.1938 64 bit (AMD64)]
NVidia driver: 560.70
CUDA: 11.7.64
LLVM: 14.-1.-1
Dr.Jit: 0.4.6
Mitsuba: 3.5.2
Is custom build? False
Compiled with: MSVC 19.40.33811.0
Variants:
scalar_mono
scalar_mono_polarized
scalar_rgb
scalar_rgb_polarized
scalar_spectral
scalar_spectral_polarized
llvm_mono
llvm_mono_polarized
llvm_rgb
llvm_rgb_polarized
llvm_spectral
llvm_spectral_polarized
llvm_ad_mono
llvm_ad_mono_polarized
llvm_ad_rgb
llvm_ad_rgb_polarized
llvm_ad_spectral
llvm_ad_spectral_polarized
cuda_mono
cuda_mono_polarized
cuda_rgb
cuda_rgb_polarized
cuda_spectral
cuda_spectral_polarized
cuda_ad_mono
cuda_ad_mono_polarized
cuda_ad_rgb
cuda_ad_rgb_polarized
cuda_ad_spectral
cuda_ad_spectral_polarized
System information:
OS: Windows 10 Pro
CPU: AMD
GPU: 3090ti
Python version: 3.11
Dr.Jit version: 0.4.6
Mitsuba version: 3.5.2
Compiled with: VS 2022
Variants compiled: scalar, llvm, cuda all (except mono and double)
Description
If you define installation folder in Cmake script will not copy drjit (and maybe other external packages) to this folder
Steps to reproduce
The text was updated successfully, but these errors were encountered: