cmu-ci-lab / MitsubaToFRenderer

Mitsuba time-of-flight renderer.
54 stars 22 forks source link

Installation error at the "scons" step on WSL 2 (Ubuntu 16.04) #7

Closed jssy-jyggg closed 2 years ago

jssy-jyggg commented 2 years ago

To whom it may concern, Hello and I'm now trying to install your pack on WSL 2 (Ubuntu 16.04) following master/INSTALL.txt, encountering these problems when executing "scons --clean" (Line 34): image Here I am told to verify that g++ is installed, but I believe it has been done. I'm also attaching a screenshot of file "config.log" (see below) for potential use. Tracing back according to lines in master/INSTALL.txt, I noticed these problems at the step of installing basic packages: image Here the package "linux-headers-$(uname -r)" doesn't seem to exist, so I wonder if the package is crucial for building your project, and what I should do to tackle the situation. I'm new to Linux myself, so a detailed explanation is highly preferred. Thank you!

Appendix: config.log image

AdithyaPediredla commented 2 years ago

Hi jssy-jyggg:

Based on the error log, you do not have I/O permissions to "/home/jyggg/proj/MitsubaToFRenderer/config.log". Using sudo (i.e. sudo scons --clean) might fix your problem.

I have also created a docker image for MitsubaToFRenderer, which has the renderer (and all associated software and postprocessing code) preinstalled. You could use the docker image from any OS as well. I strongly suggest trying the docker image directly to avoid installing MitsubaToFRenderer from scratch.

Regards, Adithya

jssy-jyggg commented 2 years ago

Thanks for your reply, Adithya. However, the first screenshot I posted yesterday already shows the error when executing "sudo scons --clean", and the first problem is still unsolved. And I am still confused about the location of the docker image (as you have mentioned). Do you mean "INSTALL_20.04.txt" in the current master?

AdithyaPediredla commented 2 years ago

Hi jssy-jyggg:

I see. sudo is not able to find your g++. It might be easier to fix the IO permissions to your /home/jyggg/proj/MitsubaToFRenderer/ folder than making sudo find g++. Change the ownership (chown) of the folder to yourself instead of root. (You can also change access to the folder with sudo chmod -R 777 /home/jyggg/proj/MitsubaToFRenderer)

Regarding docker, you will need signup on docker hub first (https://login.docker.com/u/login/). Then search for adithyapedireda/mitsubatofrenderer in the docker page.

Regards, Adithya

AdithyaPediredla commented 2 years ago

Is the problem fixed? If yes, please close the issue

jssy-jyggg commented 2 years ago

Sorry for the late response. The ownership change didn't seem to have any visible effect, but the docker worked fine. Thanks for your work and attention!