Skip to content

Commit

Permalink
fix broken mtsgui
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Rath committed Apr 28, 2022
1 parent 5d8d5ce commit cbf422d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mitsuba/build/config-linux-gcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
DISTDIR = '#dist'
CXX = 'g++'
CC = 'gcc'
CXXFLAGS = ['-O3', '-Wall', '-g', '-pipe', '-march=nocona', '-msse2', '-ftree-vectorize', '-mfpmath=sse', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fno-math-errno', '-fomit-frame-pointer', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fvisibility=hidden', '-mtls-dialect=gnu2']
CXXFLAGS = ['-O3', '-Wall', '-g', '-pipe', '-march=nocona', '-msse2', '-ftree-vectorize', '-mfpmath=sse', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fno-math-errno', '-fomit-frame-pointer', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fvisibility=hidden', '-mtls-dialect=gnu2', '-fPIC']
LINKFLAGS = []
SHLINKFLAGS = ['-rdynamic', '-shared', '-fPIC', '-lstdc++']
BASEINCLUDE = ['#include']
Expand Down
5 changes: 4 additions & 1 deletion mitsuba/data/scons/qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,10 @@ def enable_modules(self, modules, debug=False, crosscompiling=False) :
pcmodules.remove("QtAssistant")
pcmodules.append("QtAssistantClient")
if sys.platform.startswith('linux'):
self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules))
self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join([
re.sub(r"^Qt", "Qt5", module)
for module in pcmodules
]))
elif sys.platform == 'darwin':
for module in pcmodules:
#self.AppendUnique(CPPPATH="$QTDIR/frameworks/%s.framework/Versions/5/Headers" % module)
Expand Down

0 comments on commit cbf422d

Please sign in to comment.