Troubleshooting Help #55
-
Hi, I'm trying to build Moonray on Windows using a Docker container, but I keep running into two issues: I can run the command without mounting tmp, but if I do that then when I try Could not find a package configuration file provided by "OpenImageIO" with
Add the installation prefix of "OpenImageIO" to CMAKE_PREFIX_PATH or set In another thread I noticed people having trouble downloading all the submodules, so I'm wondering if this is the case here, too. I already had to manually download some of the submodules because when I do I could really use some help figuring this out. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
You were using docker run -v E:/openmoonray:/openmoonray:shared -v /tmp:/tmp:shared --network=host --rm -it openmoonray_build But /tmp does not make sense on a windows machine. Try creating the directory E:/tmp on your windows machine and then use the following slightly modified command docker run -v E:/openmoonray:/openmoonray:shared -v E:/tmp:/tmp:shared --network=host --rm -it openmoonray_build and that should work for you (if the prior steps worked properly) |
Beta Was this translation helpful? Give feedback.
-
I’m stuck at this error as well. I’ve had to step away and hope to get back to it in a few days. I could try to update the cmake setup but that feels wrong. Sorry if you are on a shorter timeline.Sent from iSomewhereOn Mar 20, 2023, at 23:03, DoragoDoggo ***@***.***> wrote:
It also says "In file included from /openmoonray/moonray/moonray_arras/mcrt_computation/lib/common/rec_load/RecLoad.cc:6:
/openmoonray/moonray/moonray_arras/mcrt_computation/lib/common/rec_load/RecLoad.h:16:10: fatal error: scene_rdl2/common/rec_time/RecTime.h: No such file or directory
16 | #include <scene_rdl2/common/rec_time/RecTime.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [moonray/moonray_arras/mcrt_computation/lib/common/rec_load/CMakeFiles/common_rec_load.dir/build.make:76: moonray/moonray_arras/mcrt_computation/lib/common/rec_load/CMakeFiles/common_rec_load.dir/RecLoad.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:20981: moonray/moonray_arras/mcrt_computation/lib/common/rec_load/CMakeFiles/common_rec_load.dir/all] Error 2"
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I am through this and have it building/rendering. I cleared away everything and did that initial clone from a wsl2 shell (not PowerShell as I had before). Something someone wrote in one of these posts suggested this to me. Something downloads slightly differently when done from linux/unix than when done from windows. By downloading in the wsl2 shell and placing in the same preferred place on windows, everything else just worked. Specifically, instead of just doing cd c:\users\username\documents\dev in PowerShell or CMD, I opened a wsl2 shell (I think mine is Ubuntu but it likely does not matter) and there cd-ed to the windows location of my choosing (where "username" is just your windows username) and in this location (on windows) where I wanted clone this in the first place (I did delete the old openmoonray folder first): cd /mnt/c/users/username/documents/dev and from there on, everything worked exactly as advertised. Hope that helps (that is the only thing I needed the wsl2 shell for). |
Beta Was this translation helpful? Give feedback.
I am through this and have it building/rendering. I cleared away everything and did that initial clone from a wsl2 shell (not PowerShell as I had before). Something someone wrote in one of these posts suggested this to me. Something downloads slightly differently when done from linux/unix than when done from windows. By downloading in the wsl2 shell and placing in the same preferred place on windows, everything else just worked.
Specifically, instead of just doing
cd c:\users\username\documents\dev
git clone --recurse-submodules https://github.com/dreamworksanimation/openmoonray.git
in PowerShell or CMD, I opened a wsl2 shell (I think mine is Ubuntu but it likely does not matter) and ther…