-
Notifications
You must be signed in to change notification settings - Fork 321
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
failed to build due qt5 #32
Comments
I have exacty the same problem on my arch linux setup. I tried changing the loaded modules to the Qt5 modules (in mitsuba/data/scons/qt.py) and got it to compile. I can even run mtsgui. However, once I try to open a scene in it, I get I will investigate some more... |
UPDATE: I think downloading Qt5 manually is not necessary if you already installed it in your system. So you can leave out step 1. Ok, so I figured it out now:
(insert your path accordingly)
|
Interesting -- especially since compiling Mitsuba with Qt5 currently works on Windows and MacOS. Do you think that this is a linux-specific requirement? |
It seems so, I don't have enough data to tell for sure though. Merlin compiled Mitsuba with Qt5 on OSX last week and that seemed fine (no changes required). I don't have a Windows setup to test, but I guess you have tested that. I am not sure whether the Qt naming scheme can differ between distributions/package managers. |
@wjakob, I can confirm that Linux indeed needs this change, because of pkg-config's naming conventions: Line 467 in 46650b7
If one has Qt4 around in PATH, it returns those modules instead and thus breaks the build. However: changing module names e.g. QtGui -> Qt5Gui breaks -framework linking in MacOS, so...
|
I also have similar issue but quite different.
Currently I'm using ubuntu 16.04 and installed all dependencies. |
@frostedpenguin, QtWidgets only appears in pkg-config in Qt5 (see qtbase5-dev). |
- Map between Qt package names and pkg-config names - thread.cpp: pthreads needed an additional parameter, my bad; fixes mitsuba-renderer#32
- Map between Qt package names and pkg-config names; fixes mitsuba-renderer#32 - thread.cpp: pthreads needed an additional parameter, my bad
For reference, I successfully built mstgui in Ubuntu 18.04.1 with @amyspark's solution. One error I met was 'Qt5XmlPatterns not found' and resolved it by |
Hi, I had the same problem and after doing what @dvicini suggested I tried to build running the following command:
but I got this errors now:
other (maybe) helpful info:
returns: QMake version 3.0 added path such that returns: :/home/fen/anaconda3/envs/myProject/lib/pkgconfig/:/home/fen/anaconda3/envs/myProject/lib Using Ubuntu 18.04.2 LTS. Can anyone help? Solved |
@SilvioJin 's solution confirm in Ubuntu 20.04. Just changed |
I am using one of the latest Linux Mint (Ubuntu based)
it fails to build while looking for qt libraries:
It looks like it is expecting the 5 in the Qt5* library names.
For instance, if I run in command line:
it returns OK.
The text was updated successfully, but these errors were encountered: