Repository navigation
Compiling Issues #76
Description
Activity
Hi I reproduced one concrete media issue on a local Qt6 build:
- Steps:
Add Media Files...-> select anmp4-> select the file in Media tab. - Result: preview remains on
Loading...and does not enter normal playback.
Root cause found: media wiring still uses Qt5-style
QMediaPlayersignal signatures inMediaWidget(videoAvailableChanged,stateChanged,error). On Qt6 these callbacks do not fire as expected (hasVideoChanged, playback-state, errorOccurred path), so UI/player state is not updated correctly : )- Steps:
fixed
Reacted by UnableToCodeWell, I've been doing some tests and you can see that there's a lot of obsolete code and a lot of unused memory allocation. As well as a lot of instances of abstract classes. Function prototypes declared in the .h file but without their declarations in the .cpp files. In the case of Song.h and Song.cpp... Many memory violations.
You should remove code that is not in use because there are many things that could break the code.
If you're still trying to build current
master: the Qt6 migration is already merged in the tree, and I got it compiling and running on Linux (Fedora 44 / Qt 6.11.1, and Ubuntu 24.04 via CI). I've opened #82 with the fixes.The thing most likely blocking your compile:
mastervendors a copy ofQMediaPlaylistwhich Qt6 from the multimedia module. It's back in under3rdparty/, but it was never wired intosoftProjector.proso a fresh checkout fails to link. Its header also has#includeqmediaenumdebug.h, which newer Qt6 removed. Both are fixed in #82.Also you need the Qt6 multimedia dev package, or
qmakefails withUnknown module(s) in QT: multimedia multimediawidgetsRegarding ffmpeg playback.... Some
QMediaPlayerconnections inmediawidget.cpphave not been updated yet but Qt6 moved volume/mute toQAudioOutputand renamed the state/error signals. So audio becomes silent and the volume & mute controls don't do anything. #79 looks like it fixes that.The PR I opened was just for getting the build & packaging working for Linux because I need a Linux build. So I haven't addressed the other stuff on it but might do that in my fork if I need it. I'm mainly projecting songs without any video.
Reacted by Camuenga
Hi, i am facing a media playback issue, where the videos are not being consistently played back, or sometimes the software crashes. Ive tried 4 different codecs on version 2.2, but I see that version was from 2017. I tried for the last 5 hours to manually compile the latest version with QT Creator, but I see it is not working, and others have made forks and attempted to fix this on their own. I want QT6 support because it uses ffmpeg for media playback instead of codecs so it would be much more reliable. Is there a new release / installer coming out soon?