Building error qt4.8.6 phonon on mac os x10.10
-
When I build qt4.8.6 without configure option of phonon , it has no error and can build successfully.But it returns errors when add option of phonon.
The configure : ./configure -prefix /usr/local/Qt-4.8.6 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ -phonon -webkit -arch x86And the error:
gcc -c -pipe -O2 -arch i386 -arch i386 -Xarch_i386 -mmacosx-version-min=10.4 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ -DQT_NO_DEBUG -DQT_PLUGIN -DQT_PHONON_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I/qt-4.8.6/mkspecs/macx-g++ -I/qt-4.8.6/src/plugins/phonon/qt7 -I../../../../lib/QtCore.framework/Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/QtGui.framework/Versions/4/Headers -I../../../../include/QtGui -I../../../../lib/QtOpenGL.framework/Versions/4/Headers -I../../../../include/QtOpenGL -I../../../../lib/phonon.framework/Versions/4/Headers -I../../../../include/phonon -I../../../../include -I/qt-4.8.6/src/plugins/phonon/qt7 -I../../../../include/phonon_compat -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -I.moc/release-shared -I. -F/qt-4.8.6-build2/lib /qt-4.8.6/src/3rdparty/phonon/qt7/videowidget.mm -o .obj/release-shared/videowidget.o
4 warnings generated.
/qt-4.8.6/src/3rdparty/phonon/qt7/videowidget.mm:154:109: warning: semicolon before method body is ignored [-Wsemicolon-before-method-body]- (void) drawVideoFrame:(Phonon::QT7::VideoFrame &)frame forWidget:(QWidget *)widget shareImages:(bool)share;
^
1 warning generated.
rm -f libphonon_qt7_debug.dylib
g++ -headerpad_max_install_names -arch i386 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ -single_module -dynamiclib -Xarch_i386 -mmacosx-version-min=10.4 -o libphonon_qt7_debug.dylib .obj/debug-shared/quicktimevideoplayer.o .obj/debug-shared/backendheader.o .obj/debug-shared/medianodevideopart.o .obj/debug-shared/medianodeevent.o .obj/debug-shared/audiooutput.o .obj/debug-shared/backendinfo.o .obj/debug-shared/audiosplitter.o .obj/debug-shared/audioeffects.o .obj/debug-shared/quicktimestreamreader.o .obj/debug-shared/medianode.o .obj/debug-shared/backend.o .obj/debug-shared/mediaobject.o .obj/debug-shared/mediaobjectaudionode.o .obj/debug-shared/audiomixer.o .obj/debug-shared/quicktimeaudioplayer.o .obj/debug-shared/videoframe.o .obj/debug-shared/quicktimemetadata.o .obj/debug-shared/audiodevice.o .obj/debug-shared/audioconnection.o .obj/debug-shared/audiograph.o .obj/debug-shared/audionode.o .obj/debug-shared/videowidget.o -F/qt-4.8.6-build2/lib -L/qt-4.8.6-build2/lib -framework AppKit -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuartzCore -framework QTKit -framework phonon -L/qt-4.8.6-build2/lib -F/qt-4.8.6-build2/lib -framework QtGui -framework QtCore -framework QtOpenGL -framework OpenGL -framework AGL -Xarch_i386 -framework -Xarch_i386 QuickTime -Xarch_ppc -framework -Xarch_ppc QuickTime
clang: error: invalid Xarch argument: '-Xarch_i386 -framework', options requiring arguments are unsupported
make[4]: *** [../../../../plugins/phonon_backend/libphonon_qt7_debug.dylib] Error 1
make[3]: *** [debug-all] Error 2
make[3]: *** Waiting for unfinished jobs....
/qt-4.8.6/src/3rdparty/phonon/qt7/videowidget.mm:154:109: warning: semicolon before method body is ignored [-Wsemicolon-before-method-body] - (void) drawVideoFrame:(Phonon::QT7::VideoFrame &)frame forWidget:(QWidget *)widget shareImages:(bool)share;
^
1 warning generated.
rm -f libphonon_qt7.dylib
g++ -headerpad_max_install_names -arch i386 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/ -single_module -dynamiclib -Xarch_i386 -mmacosx-version-min=10.4 -o libphonon_qt7.dylib .obj/release-shared/quicktimevideoplayer.o .obj/release-shared/backendheader.o .obj/release-shared/medianodevideopart.o .obj/release-shared/medianodeevent.o .obj/release-shared/audiooutput.o .obj/release-shared/backendinfo.o .obj/release-shared/audiosplitter.o .obj/release-shared/audioeffects.o .obj/release-shared/quicktimestreamreader.o .obj/release-shared/medianode.o .obj/release-shared/backend.o .obj/release-shared/mediaobject.o .obj/release-shared/mediaobjectaudionode.o .obj/release-shared/audiomixer.o .obj/release-shared/quicktimeaudioplayer.o .obj/release-shared/videoframe.o .obj/release-shared/quicktimemetadata.o .obj/release-shared/audiodevice.o .obj/release-shared/audioconnection.o .obj/release-shared/audiograph.o .obj/release-shared/audionode.o .obj/release-shared/videowidget.o -F/qt-4.8.6-build2/lib -L/qt-4.8.6-build2/lib -framework AppKit -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework QuartzCore -framework QTKit -framework phonon -L/qt-4.8.6-build2/lib -F/qt-4.8.6-build2/lib -framework QtGui -framework QtCore -framework QtOpenGL -framework OpenGL -framework AGL -Xarch_i386 -framework -Xarch_i386 QuickTime -Xarch_ppc -framework -Xarch_ppc QuickTime
clang: error: invalid Xarch argument: '-Xarch_i386 -framework', options requiring arguments are unsupported
make[4]: *** [../../../../plugins/phonon_backend/libphonon_qt7.dylib] Error 1
make[3]: *** [release-all] Error 2
make[2]: *** [sub-qt7-make_default] Error 2
make[1]: *** [sub-phonon-make_default] Error 2
make: *** [sub-plugins-make_default-ordered] Error 2
Is there necessary to build phonon individually after the qt build without phonon?
But after do that , it seems to not successful when i use qt to build my project.Does someone meet the similar problems?
Thanks !! - (void) drawVideoFrame:(Phonon::QT7::VideoFrame &)frame forWidget:(QWidget *)widget shareImages:(bool)share;
-
Hi,
You should rather try with 4.8.7 (or from git)