Hi again.
I think I figured out the problem. (Mixxx builds with the correct -I
options for me now.)
See the attached patch.
Mixxx just doesn't run though, giving an error:
./mixxx: symbol lookup error: ./mixxx: undefined symbol:
_Z13qFlagLocationPKc
...but that may just be due to where I installed qt-4.5.
Sean
<<--------------------------------------------------------------------------------->>
This E-Mail message has been scanned for viruses
and cleared by >>SmartMail<< from Smarter Technology, Inc.
<<--------------------------------------------------------------------------------->>
Index: src/SConscript
===================================================================
--- src/SConscript (revision 2458)
+++ src/SConscript (working copy)
@@ -400,12 +400,30 @@
Exit(1)
else:
#Grabs the QT4 include paths
+ """
env.ParseConfig('pkg-config QtCore --silence-errors --cflags --libs')
env.ParseConfig('pkg-config Qt3Support --silence-errors --cflags') #QT3 support breaks the build
env.ParseConfig('pkg-config QtGui --silence-errors --cflags --libs')
env.ParseConfig('pkg-config QtXml --silence-errors --cflags --libs')
env.ParseConfig('pkg-config QtOpenGL --silence-errors --cflags --libs')
- # Might be missing $QTDIR/include/Qt still...
+ """
+ #Try using David's qt4.py's Qt4-module finding thingy instead of pkg-config.
+ #(This hopefully respects our qtdir=blah flag while linking now.)
+ """
+ env.EnableQt4Modules([
+ 'QtCore',
+ 'QtGui',
+ 'QtOpenGL',
+ 'Qt3Support',
+ 'QtXml',
+ 'QtSvg',
+ #'QtUiTools',
+ #'QtDesigner',
+ #'QtWebKit',
+ ],
+ debug=False,
+ )
+ """
#Check for libasound (libasound2?) (needed for ALSA seq MIDI support)
if not conf.CheckLib('asound') and not conf.CheckForPKG('alsa', '1.0.10'):
@@ -520,8 +538,8 @@
env.Append(CXXFLAGS = '-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT') #Stolen from Mixxx's build output
# Manually add the include paths for win32 and OS X (we use pkg-config on Linux)
-if not platform == 'linux':
- env.Append(CXXFLAGS = '-I$QTDIR/include/Qt3Support -I$QTDIR/include/QtCore -I$QTDIR/include/QtGui -I$QTDIR/include/QtXml -I$QTDIR/include/QtOpenGL -I$QTDIR/include/Qt -I"$VCINSTALLDIR/include/atl"')
+#if not platform == 'linux':
+env.Append(CXXFLAGS = '-I$QTDIR/include/Qt3Support -I$QTDIR/include/QtCore -I$QTDIR/include/QtGui -I$QTDIR/include/QtXml -I$QTDIR/include/QtOpenGL -I$QTDIR/include/Qt -I"$VCINSTALLDIR/include/atl"')
if not platform == 'win32':
env.Append(CCFLAGS = Split(""" -pipe -Wall -W -g -D_REENTRANT """)) # omghax
@@ -750,7 +768,7 @@
env.Append(LIBS = 'QtScript4')
else:
env.Append(LIBS = 'QtScript')
- print "SuperCoolAwesomeScript (name contest pending)... enabled"
+ print "MixxxScript (QtScript)... enabled"
build_flags += 'script '
sources += Split("""script/scriptengine.cpp script/scriptcontrolqueue.cpp
script/scriptstudio.cpp script/scriptrecorder.cpp
Index: src/qt4.py
===================================================================
--- src/qt4.py (revision 2458)
+++ src/qt4.py (working copy)
@@ -243,7 +243,7 @@
# TODO: 'Replace' should be 'SetDefault'
# env.SetDefault(
env.Replace(
- QTDIR = _detect(env),
+# QTDIR = _detect(env),
QT4_BINPATH = os.path.join('$QTDIR', 'bin'),
QT4_CPPPATH = os.path.join('$QTDIR', 'include'),
QT4_LIBPATH = os.path.join('$QTDIR', 'lib'),
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel