New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build on Ubuntu with Qt5 may need to modify include path #59
Comments
Seem to have a related issue on Debian 9 (stretch). The suggestion "Perhaps you should add ..." does not appear to help:
|
@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.. |
@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:
|
@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 If you do need gui support, you may probably check your qt uninstallation and your qt4 install directory. And may be The related code starts from
|
@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? |
@derekjgriffith I'm on Ubuntu 14.04. Is the error still about Qt? Or What's the error message? |
@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. |
Does the change in #54 help at all? |
I compiled successfully on ubuntu16.04. In my environment, both qt4 and qt5 exist, and I met the problem same as @derekjgriffith |
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):
or
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. |
Qt5 rearranges the the file structure and
QtGui/QAction.h
and 'QtGui/QApplication.hhave been moved to
QtWidgets` subdirectory and thus cause build error:The include paths need fixing.
The text was updated successfully, but these errors were encountered: