Error running Mixxx after compiling with QT 4.7 RC

Asked by jus

Compiled http://bazaar.launchpad.net/~mixxxdevelopers/mixxx/release-1.8.x/revision/2517 on MacOS 10.5.8 with the latest QT 4.7 RC (precompiled bundle @ http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.7.0-rc1.dmg).
Just wanna know if this QT version brings improved OpenGL performance for Mixxx (waveforms issues) on MacOS.
Unlike all the QT 4.7 betas before, i had no problem compiling/bundling Mixxx with QT 4.7 RC.

But i got following error message on launch:

MBP:~ user$ /Users/user/Desktop/Mixxx\ 1.8\ r2517\ release-1.8.x.app/Contents/MacOS/Mixxx
dyld: Library not loaded: QtGui.framework/Versions/4/QtGui
  Referenced from: /Users/user/Desktop/Mixxx 1.8 r2517 release-1.8.x.app/Contents/MacOS/../Frameworks/QtOpenGL
  Reason: Incompatible library version: QtOpenGL requires version 4.7.0 or later, but QtGui provides version 4.6.0
Trace/BPT trap

Googling brings up no reference to QT 4.7 , so i just ask if someone experienced similar problem / has a solution before filing a bug report @ nokia.

Thanks...

Question information

Language:
English Edit question
Status:
Answered
For:
Mixxx Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Albert Santoni (gamegod) said :
#1

Hey Jus,

Can you run "otool -L" on your mixxx binary and post the output?

The command might be:
otool -L /Users/user/Desktop/Mixxx\ 1.8\ r2517\
release-1.8.x.app/Contents/MacOS/Mixxx

This will spit out a list of all the dylibs that your binary is linked
against. I think it's somehow still linking against your old version
of Qt.

Thanks,
Albert

On Wed, Sep 1, 2010 at 12:25 AM, jus
<email address hidden> wrote:
> New question #123598 on Mixxx:
> https://answers.launchpad.net/mixxx/+question/123598
>
> Compiled http://bazaar.launchpad.net/~mixxxdevelopers/mixxx/release-1.8.x/revision/2517 on MacOS 10.5.8 with the latest QT 4.7 RC (precompiled bundle @ http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.7.0-rc1.dmg).
> Just wanna know if this QT version brings improved OpenGL performance for Mixxx (waveforms issues) on MacOS.
> Unlike all the QT 4.7 betas before, i had no problem compiling/bundling Mixxx with QT 4.7 RC.
>
> But i got following error message on launch:
>
> MBP:~ user$ /Users/user/Desktop/Mixxx\ 1.8\ r2517\ release-1.8.x.app/Contents/MacOS/Mixxx
> dyld: Library not loaded: QtGui.framework/Versions/4/QtGui
>  Referenced from: /Users/user/Desktop/Mixxx 1.8 r2517 release-1.8.x.app/Contents/MacOS/../Frameworks/QtOpenGL
>  Reason: Incompatible library version: QtOpenGL requires version 4.7.0 or later, but QtGui provides version 4.6.0
> Trace/BPT trap
>
> Googling brings up no reference to QT 4.7 , so i just ask if someone experienced similar problem / has a solution before filing a bug report @ nokia.
>
> Thanks...
>
> --
> You received this question notification because you are a member of
> Mixxx Development Team, which is an answer contact for Mixxx.
>

Revision history for this message
jus (jus) said :
#2

MBP:~ user$ otool -L /Users/user/Desktop/Mixxx\ 1.8\ r2517\ release-1.8.x.app/Contents/MacOS/Mixxx:
 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
 @executable_path/../Frameworks/QtCore (compatibility version 4.7.0, current version 4.7.0)
 @executable_path/../Frameworks/QtOpenGL (compatibility version 4.7.0, current version 4.7.0)
 @executable_path/../Frameworks/Qt3Support (compatibility version 4.7.0, current version 4.7.0)
 @executable_path/../Frameworks/QtGui (compatibility version 4.7.0, current version 4.7.0)
 @executable_path/../Frameworks/QtSql (compatibility version 4.7.0, current version 4.7.0)
 @executable_path/../Frameworks/QtXml (compatibility version 4.7.0, current version 4.7.0)
 @executable_path/../Frameworks/QtXmlPatterns (compatibility version 4.7.0, current version 4.7.0)
 @executable_path/../Frameworks/QtNetwork (compatibility version 4.7.0, current version 4.7.0)
 @executable_path/../Frameworks/QtScript (compatibility version 4.7.0, current version 4.7.0)
 @executable_path/../Frameworks/QtWebKit (compatibility version 4.7.0, current version 4.7.0)
 /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI (compatibility version 1.0.0, current version 49.0.0)
 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
 /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime (compatibility version 1.0.0, current version 1674.0.0)
 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1.0.0)
 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (compatibility version 1.0.0, current version 1.0.0)
 @executable_path/../Frameworks/libportaudio.2.dylib (compatibility version 3.0.0, current version 3.0.0)
 @executable_path/../Frameworks/libid3tag.0.dylib (compatibility version 4.0.0, current version 4.0.0)
 @executable_path/../Frameworks/libmad.0.dylib (compatibility version 3.0.0, current version 3.1.0)
 @executable_path/../Frameworks/libsndfile.1.dylib (compatibility version 2.0.0, current version 2.20.0)
 @executable_path/../Frameworks/libvorbisfile.3.dylib (compatibility version 7.0.0, current version 7.2.0)
 @executable_path/../Frameworks/libvorbis.0.dylib (compatibility version 5.0.0, current version 5.3.0)
 @executable_path/../Frameworks/libogg.0.dylib (compatibility version 7.0.0, current version 7.0.0)
 @executable_path/../Frameworks/libportmidi.dylib (compatibility version 0.0.0, current version 0.0.0)
 @executable_path/../Frameworks/libmp4v2.1.dylib (compatibility version 1.0.0, current version 1.9.0)
 @executable_path/../Frameworks/libfaad.2.dylib (compatibility version 3.0.0, current version 3.0.0)
 /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
 /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
 /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.5)

Revision history for this message
Albert Santoni (gamegod) said :
#3

Hmmm, the libraries that are in your Mixxx.app bundle might still be
the old ones. I'd try just blowing away your Mixxx.app bundle in your
mixxx tree and running scons bundle again. This is the only thing I've
been able to think of...

Thanks,
Albert

On Wed, Sep 1, 2010 at 11:14 PM, jus
<email address hidden> wrote:
> Question #123598 on Mixxx changed:
> https://answers.launchpad.net/mixxx/+question/123598
>
> jus posted a new comment:
> MBP:~ user$ otool -L /Users/user/Desktop/Mixxx\ 1.8\ r2517\ release-1.8.x.app/Contents/MacOS/Mixxx:
>        /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
>        @executable_path/../Frameworks/QtCore (compatibility version 4.7.0, current version 4.7.0)
>        @executable_path/../Frameworks/QtOpenGL (compatibility version 4.7.0, current version 4.7.0)
>        @executable_path/../Frameworks/Qt3Support (compatibility version 4.7.0, current version 4.7.0)
>        @executable_path/../Frameworks/QtGui (compatibility version 4.7.0, current version 4.7.0)
>        @executable_path/../Frameworks/QtSql (compatibility version 4.7.0, current version 4.7.0)
>        @executable_path/../Frameworks/QtXml (compatibility version 4.7.0, current version 4.7.0)
>        @executable_path/../Frameworks/QtXmlPatterns (compatibility version 4.7.0, current version 4.7.0)
>        @executable_path/../Frameworks/QtNetwork (compatibility version 4.7.0, current version 4.7.0)
>        @executable_path/../Frameworks/QtScript (compatibility version 4.7.0, current version 4.7.0)
>        @executable_path/../Frameworks/QtWebKit (compatibility version 4.7.0, current version 4.7.0)
>        /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI (compatibility version 1.0.0, current version 49.0.0)
>        /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (compatibility version 1.0.0, current version 1.0.0)
>        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
>        /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime (compatibility version 1.0.0, current version 1674.0.0)
>        /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1.0.0)
>        /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (compatibility version 1.0.0, current version 1.0.0)
>        @executable_path/../Frameworks/libportaudio.2.dylib (compatibility version 3.0.0, current version 3.0.0)
>        @executable_path/../Frameworks/libid3tag.0.dylib (compatibility version 4.0.0, current version 4.0.0)
>        @executable_path/../Frameworks/libmad.0.dylib (compatibility version 3.0.0, current version 3.1.0)
>        @executable_path/../Frameworks/libsndfile.1.dylib (compatibility version 2.0.0, current version 2.20.0)
>        @executable_path/../Frameworks/libvorbisfile.3.dylib (compatibility version 7.0.0, current version 7.2.0)
>        @executable_path/../Frameworks/libvorbis.0.dylib (compatibility version 5.0.0, current version 5.3.0)
>        @executable_path/../Frameworks/libogg.0.dylib (compatibility version 7.0.0, current version 7.0.0)
>        @executable_path/../Frameworks/libportmidi.dylib (compatibility version 0.0.0, current version 0.0.0)
>        @executable_path/../Frameworks/libmp4v2.1.dylib (compatibility version 1.0.0, current version 1.9.0)
>        @executable_path/../Frameworks/libfaad.2.dylib (compatibility version 3.0.0, current version 3.0.0)
>        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
>        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.5)
>
> --
> You received this question notification because you are a member of
> Mixxx Development Team, which is an answer contact for Mixxx.
>

Revision history for this message
RAFFI TEA (raffitea) said :
#4

I observed a similar problem on Ubuntu with a QT 4.7 Beta when I played around with QML. I was not able to initialize OpenGL. That's why I am not able to test QML more intensively.

Revision history for this message
Albert Santoni (gamegod) said :
#5

Hey Jus,

I solved this problem for me by completely uninstalling Qt by running:

sudo /Developer/Tools/uninstall-qtsdk.py

and then reinstaling the Qt SDK. (I reinstalled 4.6.3, but I assume this will fix our problems with 4.7 on OS X.)

Thanks!
Albert

Revision history for this message
jus (jus) said :
#6

Thanks Albert, i have removed the QT 4.7 RC with uninstall-qtsdk.py and installed QT 4.7.0 final.
Try to build latest trunk http://bazaar.launchpad.net/~mixxxdevelopers/mixxx/trunk/revision/2474 and want give some feedback on this revision.

Scons terminates because of errors at first:
/nodefaultlib:LIBCMT.lib: No such file or directory
/nodefaultlib:LIBCMTd.lib: No such file or directory
/entry:mainCRTStartup: No such file or directory
scons: *** [osx32_build/mixxx] Error 1
scons: building terminated because of errors.

Then after comment out lines 671-673 in build/depends.py
Scons terminates because of errors at again:
ld: unknown option: --gc-sections
collect2: ld returned 1 exit status
scons: *** [osx32_build/mixxx] Error 1
scons: building terminated because of errors.

After commented out lines 673-674 in build/features.py
compile was fine.

My specs: MacOS 10.5.8
localhost:~ user$ gcc -v
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5493)
localhost:~ user$ ld -v
@(#)PROGRAM:ld PROJECT:ld64-85.2.1
localhost:~ user$

PS.
Same scons errors was with QT 4.6.3 on this machine.

Can you help with this problem?

Provide an answer of your own, or ask jus for more information if necessary.

To post a message you must log in.