Replies: 3 comments 3 replies
-
Hello @ssh4net, I haven't personally tested this, but in principle it should be as easy as:
Another way would be to keep everything in place inside of your |
Beta Was this translation helpful? Give feedback.
-
On this topic, the cmake install almost works. The following changes need to be made to make it work ootb. Assuming the following sequence of commands: git clone <mitsuba repo> mitsuba3
cd mitsuba3
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX="../install"
cmake --build . --config Release --target install This installs most of the pieces, but is missing drjit. To make it work I had to then: cp -r ..\ext\drjit\drjit ../install
cp .\Release\python\drjit\drjit_ext.cp39-win_amd64.pyd ../install/drjit And finally I needed to modify drjit's if os.name == 'nt':
os.add_dll_directory(os.path.join(os.getenv("MITSUBA_DIR"), "bin")) This still isn't quite enough to build against the installed mitsuba distribution: the drjit headers are also missing but I haven't needed or had time to look into that yet. |
Beta Was this translation helpful? Give feedback.
-
For completeness, let me add the following: As a general word of precaution, uninstall any If you're simply looking to apply some modifications to mitsuba and then have it accessible through Python without any This will also download any requirement from PyPi, including DrJit. If you want to roll your own version of Drjit, you must first (before installing mitsuba) run: Both of these commands will place the packages in the appropriate |
Beta Was this translation helpful? Give feedback.
-
Sorry for pretty dumb request, but is it possible add "how to" install compiled Mitsuba to make it work as installed with pip?
For this moment it required always run setpath.bat before any works in Jupyter notebook.
Beta Was this translation helpful? Give feedback.
All reactions