Opened 10 years ago

Closed 10 years ago

#45298 closed defect (fixed)

qt5-mac: Build fails on Yosemite

Reported by: mf2k (Frank Schima) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: michaelld (Michael Dickens), mkae (Marko Käning), yorirou+macports@…, maehne (Torsten Maehne), comander@…, maxime.duluc@…, haven04@…, aduvenhage@…
Port: qt5-mac

Description

qt5-mac does not build yet on Yosemite. This is important because qt4-mac also does not build on Yosemite.

:info:build /usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DHEADER_OPENAL_PREFIX -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_QUICK_LIB -DQT_MULTIMEDIA_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt5-mac/qt5-mac/work/qt-everywhere-opensource-src-5.3.1/qtbase/mkspecs/macx-clang -I. -I../../multimedia/audio -I../../../lib/QtMultimedia.framework/Versions/5/Headers -I../../../lib/QtMultimedia.framework/Versions/5/Headers/5.3.1 -I../../../lib/QtMultimedia.framework/Versions/5/Headers/5.3.1/QtMultimedia -I/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt5-mac/qt5-mac/work/qt-everywhere-opensource-src-5.3.1/qtdeclarative/lib/QtQuick.framework/Versions/5/Headers -I/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt5-mac/qt5-mac/work/qt-everywhere-opensource-src-5.3.1/qtdeclarative/lib/QtQml.framework/Versions/5/Headers -I/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt5-mac/qt5-mac/work/qt-everywhere-opensource-src-5.3.1/qtbase/lib/QtNetwork.framework/Versions/5/Headers -I/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt5-mac/qt5-mac/work/qt-everywhere-opensource-src-5.3.1/qtbase/lib/QtGui.framework/Versions/5/Headers -I/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt5-mac/qt5-mac/work/qt-everywhere-opensource-src-5.3.1/qtbase/lib/QtCore.framework/Versions/5/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers -F/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt5-mac/qt5-mac/work/qt-everywhere-opensource-src-5.3.1/qtmultimedia/lib -F/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt5-mac/qt5-mac/work/qt-everywhere-opensource-src-5.3.1/qtdeclarative/lib -F/opt/local/var/macports/build/_opt_mports_trunk_dports_aqua_qt5-mac/qt5-mac/work/qt-everywhere-opensource-src-5.3.1/qtbase/lib -o .obj/qdeclarative_playvariation_p.o qdeclarative_playvariation_p.cpp
:info:build avfmediaplayersession.mm:325:24: error: cannot initialize a variable of type 'AVPlayerStatus' with an rvalue of type 'NSInteger' (aka 'long')
:info:build         AVPlayerStatus status = [[change objectForKey:NSKeyValueChangeNewKey] integerValue];
:info:build                        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build 1 error generated.

Attachments (1)

main.log.zip (196.2 KB) - added by mf2k (Frank Schima) 10 years ago.

Download all attachments as: .zip

Change History (13)

Changed 10 years ago by mf2k (Frank Schima)

Attachment: main.log.zip added

comment:1 Changed 10 years ago by mkae (Marko Käning)

Cc: mk@… added

Cc Me!

comment:2 Changed 10 years ago by cosmo@…

changing the code to:

        NSInteger val = [[change objectForKey:NSKeyValueChangeNewKey] integerValue];
        AVPlayerStatus status = (AVPlayerStatus)val;

seems to work

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 in reply to:  description Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to mf2k@…:

qt4-mac also does not build on Yosemite.

This was fixed.

comment:4 Changed 10 years ago by michaelld (Michael Dickens)

qt4-mac builds on Yosemite as of today.

comment:5 Changed 10 years ago by yorirou+macports@…

Cc: yorirou+macports@… added

Cc Me!

comment:6 Changed 10 years ago by maehne (Torsten Maehne)

Cc: Torsten.Maehne@… added

Cc Me!

comment:7 Changed 10 years ago by comander@…

Last edited 10 years ago by comander@… (previous) (diff)

comment:8 Changed 10 years ago by comander@…

Cc: comander@… added

Cc Me!

comment:9 Changed 10 years ago by maxime.duluc@…

Cc: maxime.duluc@… added

Cc Me!

comment:10 Changed 10 years ago by haven04@…

Cc: haven04@… added

Cc Me!

comment:11 Changed 10 years ago by aduvenhage@…

Cc: aduvenhage@… added

Cc Me!

comment:12 Changed 10 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

For completeness, the upstream bug report is https://bugreports.qt-project.org/browse/QTBUG-41136.
Should be fixed in r127528.

Note: See TracTickets for help on using tickets.