mitsuba icon indicating copy to clipboard operation
mitsuba copied to clipboard

python3 error in build/SConscript.configure

Open KIKI007 opened this issue 6 years ago • 3 comments

Hi,

I found the build/SConscript.configure and build/SConscript.install have several python 2 version print: for example:

print 'Using configuation file "%s"" % configFile'

and when I use scons, they give me an error notice of this and stop compiling.

I think it may be better to change it?

Best ZIQI WANG

KIKI007 avatar Jul 15 '18 11:07 KIKI007

@KIKI007 Thanks for the suggestion Ziqi. Would you be able to test PR #83 on your system, and report the results with your OS, Python and SCons versions please?

merlinND avatar Jul 24 '18 16:07 merlinND

Greetings, in addition to the PR #83, it seems that the file data/scons/qt5.py needs to be modified as well, in order for it to be compatible with Python 3. At the moment I cannot build the GUI with SCons 3.1.2, Python 3.6.9 and Mac OSX Catalina 10.15.1, as it reports a syntax error on line 138 of the qt5.py file (not recognising basestring).

no-materials avatar Feb 09 '20 17:02 no-materials

Hey on trying PR #83 I get the following error. I am on ubuntu 20.04

$ scons -j8 

scons: Reading SConscript files ...
Using configuation file "/home/lenovo/Desktop/research/mitsuba/config.py"
Unable to detect a Qt installation -- not building the GUI!
Checking for g++ ...no
Could not compile a simple C++ fragment, verify that g++ is installed! This could also mean that the Boost libraries are missing. The file "config.log" should contain more information.

Any help is highly appreciated. Thanks

avani17101 avatar Sep 01 '20 20:09 avani17101