Comments (10)
I compiled successfully on ubuntu16.04. In my environment, both qt4 and qt5 exist, and I met the problem same as @derekjgriffith
I changed "tools=['default', 'qt5']" to "tools=['default', 'qt4']," at build/SConscript.configure line 96. Just dependence issues left, and after install all depndence, all done. I think something wrong with qt5 and qt4... but still confusing.
hope useful, and hope someone can tell a way to clear that.
from mitsuba.
Seem to have a related issue on Debian 9 (stretch). The suggestion "Perhaps you should add ..." does not appear to help:
dgriffith@nimbus:~/GitHub/mitsuba$ scons -j 26
scons: Reading SConscript files ...
Using configuation file "/home/dgriffith/GitHub/mitsuba/config.py"
Checking for Qt 5.x... yes
Checking for g++ ...yes
Checking for C header file png.h... yes
Checking for C header file jpeglib.h... yes
Checking for C++ header file ImfRgba.h... yes
Checking for C++ header file xercesc/dom/DOMLSParser.hpp... yes
Checking for C++ header file dae.h... yes
Checking for C++ header file pyconfig.h... yes
Checking for C++ header file pyconfig.h... yes
Checking for C++ header file boost/version.hpp... yes
Checking for C++ header file Eigen/Core... yes
Checking for C++ header file fftw3.h... yes
Checking for C header file GL/gl.h... yes
Checking for C header file GL/glu.h... yes
Checking for C header file GL/glext.h... yes
Checking for C header file GL/glew.h... yes
Checking for C type GLEWContext... yes
Checking for C header file X11/extensions/xf86vmode.h... yes
Checking for Mitsuba version .. 0.6.0
Package QtWidgets was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtWidgets.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtWidgets' found
OSError: 'pkg-config QtGui QtWidgets QtCore QtOpenGL QtXml QtXmlPatterns QtNetwork --libs --cflags' exited 1:
File "/home/dgriffith/GitHub/mitsuba/SConstruct", line 54:
build('src/mtsgui/SConscript', ['mainEnv', 'converter_objects'], duplicate=True)
File "/home/dgriffith/GitHub/mitsuba/SConstruct", line 29:
variant_dir=os.path.join(env['BUILDDIR'], dirname), duplicate=duplicate)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 604:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 250:
exec file in call_stack[-1].globals
File "/home/dgriffith/GitHub/mitsuba/build/release/mtsgui/SConscript", line 28:
qtEnv.EnableQt5Modules(['QtGui', 'QtWidgets', 'QtCore', 'QtOpenGL', 'QtXml', 'QtXmlPatterns', 'QtNetwork'])
File "/usr/lib/scons/SCons/Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "/home/dgriffith/GitHub/mitsuba/data/scons/qt5.py", line 467:
self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules))
File "/usr/lib/scons/SCons/Environment.py", line 1557:
return function(self, self.backtick(command))
File "/usr/lib/scons/SCons/Environment.py", line 594:
raise OSError("'%s' exited %d" % (command, status))
dgriffith@nimbus:~/GitHub/mitsuba$
from mitsuba.
@derekjgriffith Hi, I manually changed the include paths and built again but there were still building errors need to be fixed. So I switched to qt4 and everything's fine..
from mitsuba.
@penguin1214 Thanks. How did you force mitsuba scons build to revert to Qt4? Have uninstalled Qt5 and qtchooser now only finds Qt4. Using QT_SELECT=qt4 scons does not change anything. Mitsuba scons build still seems to decide that Qt5 is available and errors similar to my last post:
dgriffith@nimbus:~/GitHub/mitsuba$ scons -j 26
scons: Reading SConscript files ...
Using configuation file "/home/dgriffith/GitHub/mitsuba/config.py"
Checking for Qt 5.x... yes
Checking for g++ ...yes
Checking for C header file png.h... yes
Checking for C header file jpeglib.h... yes
Checking for C++ header file ImfRgba.h... yes
Checking for C++ header file xercesc/dom/DOMLSParser.hpp... yes
Checking for C++ header file dae.h... yes
Checking for C++ header file pyconfig.h... yes
Checking for C++ header file pyconfig.h... yes
Checking for C++ header file boost/version.hpp... yes
Checking for C++ header file Eigen/Core... yes
Checking for C++ header file fftw3.h... yes
Checking for C header file GL/gl.h... yes
Checking for C header file GL/glu.h... yes
Checking for C header file GL/glext.h... yes
Checking for C header file GL/glew.h... yes
Checking for C type GLEWContext... yes
Checking for C header file X11/extensions/xf86vmode.h... yes
Checking for Mitsuba version .. 0.6.0
Package Qt5Core was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Core.pc'
to the PKG_CONFIG_PATH environment variable
Package 'Qt5Core', required by 'QtWidgets', not found
OSError: 'pkg-config QtGui QtWidgets QtCore QtOpenGL QtXml QtXmlPatterns QtNetwork --libs --cflags' exited 1:
File "/home/dgriffith/GitHub/mitsuba/SConstruct", line 54:
build('src/mtsgui/SConscript', ['mainEnv', 'converter_objects'], duplicate=True)
File "/home/dgriffith/GitHub/mitsuba/SConstruct", line 29:
variant_dir=os.path.join(env['BUILDDIR'], dirname), duplicate=duplicate)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 604:
return method(*args, **kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 541:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 250:
exec file in call_stack[-1].globals
File "/home/dgriffith/GitHub/mitsuba/build/release/mtsgui/SConscript", line 28:
qtEnv.EnableQt5Modules(['QtGui', 'QtWidgets', 'QtCore', 'QtOpenGL', 'QtXml', 'QtXmlPatterns', 'QtNetwork'])
File "/usr/lib/scons/SCons/Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "/home/dgriffith/GitHub/mitsuba/data/scons/qt5.py", line 467:
self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules))
File "/usr/lib/scons/SCons/Environment.py", line 1557:
return function(self, self.backtick(command))
File "/usr/lib/scons/SCons/Environment.py", line 594:
raise OSError("'%s' exited %d" % (command, status))
dgriffith@nimbus:~/GitHub/mitsuba$
from mitsuba.
@derekjgriffith Sorry I put it wrong. I checked my scripts and found out that I built mitsuba without Qt support, which means no GUI provided. If you don't need mtsgui
, you can just comment the related code in build/SConscript.configure
.
If you do need gui support, you may probably check your qt uninstallation and your qt4 install directory. And may be build/SConscript.configure
can provide some useful information to adapt your configuration, but I can't guarantee that.
The related code starts from line 95
and I just change them to
try:
env = Environment(options=vars, ENV = os.environ, tools=['default', 'qt5'], toolpath=['#data/scons'])
# print 'Checking for Qt 5.x... yes'
# hasQt = True
print 'Not building GUI'
hasQt = False
except Exception:
env = Environment(options=vars, ENV = os.environ, tools=['default'], toolpath=['#data/scons'])
print 'Unable to detect a Qt installation -- not building the GUI!'
hasQt = False
from mitsuba.
@penguin1214 Thanks again. I don't need the GUI. Have attempted compilation without GUI, but on Debian 9 (stretch) I still run into build errors. What platform/OS are you using?
from mitsuba.
@derekjgriffith I'm on Ubuntu 14.04. Is the error still about Qt? Or What's the error message?
from mitsuba.
@penguin1214 The build errors were related to the Collada DOM. Uninstalled Collada DOM (don't actually need that either) and then got build errors related to OpenEXR (IlmBase). Obtained and built IlmBase and OpenEXR from source and then I got a clean build of Mitsuba. Thanks for your help.
from mitsuba.
Does the change in #54 help at all?
from mitsuba.
Same problem here. I fixed it by switching the qmake to the Qt5-supported version by the qtchooser (make sure the qt5-qmake has been installed):
export QT_SELECT=5
scons
or
scons [-qt=5]
These files named "ui_xxx.h" are actually generated by the Qt user interface compiler so if you are using the qt5, you need the qt-5 supported qmake to compile correct files for you.
from mitsuba.
Related Issues (20)
- Bug report: wrong radius update in SPPM due to the photons in opposite side
- How to debug mitsuba using single-threaded? HOT 1
- How to save the albedo map, depth map, normal map and roughness map?
- Why not stop when the BSDF sampling ray hit the luminaire in MIPathTracer HOT 1
- Even in 'scons-python3' branch 'data/qt5.py' is still python2-stylistic HOT 2
- Set background color
- Add Mistuba 0.6.0 binaries to website?
- AttributeError: 'SConsEnvironment' object has no attribute 'has_key':
- 【MAC】build failed HOT 2
- Compile Mitsuba0.6 with VS2017 on Win11 HOT 1
- Compile failed when I use the openexr header file
- Ubuntu 20.04 compile error for GLEWContextStruct HOT 2
- Compilation failed on MacOS Big Sur HOT 1
- Can I adjust the absorption and scattering coefficients directly?
- Medium Rendering Issue HOT 1
- environment map HOT 1
- translate env map in spherical sensor HOT 4
- Where can I find some references to the algorithms implemented?
- Different fov along different axis HOT 1
- Missing Channel Names when using AOV Integrator HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitsuba.