Bug 489694 - phonon-vlc-0.12.0 fails to build against vlc 4.0.0-dev (vlc.git as of 2024-07-03): src/mediaplayer.h:140:5: error: ‘libvlc_track_description_t’ does not name a type; did you mean ‘libvlc_title_description_t’?
Summary: phonon-vlc-0.12.0 fails to build against vlc 4.0.0-dev (vlc.git as of 2024-07...
Status: REPORTED
Alias: None
Product: phonon-backend-vlc
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 0.12.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-03 18:58 UTC by Andreas Sturmlechner
Modified: 2024-09-13 02:02 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
media-libs:phonon-vlc-0.12.0-r1:20240703-185029.log (18.78 KB, text/x-log)
2024-07-03 18:58 UTC, Andreas Sturmlechner
Details
Initial attempt to fix the VLC4 build. (8.31 KB, patch)
2024-09-13 02:02 UTC, David Korth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner 2024-07-03 18:58:45 UTC
Created attachment 171342 [details]
media-libs:phonon-vlc-0.12.0-r1:20240703-185029.log

It may be a bit early, but phonon-vlc is the only remaining phonon backend and vlc-4 will be released at some point hopefully, being Qt6 based.

Attaching full build.log.
Comment 1 David Korth 2024-09-13 02:02:25 UTC
Created attachment 173607 [details]
Initial attempt to fix the VLC4 build.

I put together some quick hacks to get phonon-vlc to work with the current git version of VLC4.

Main differences:
* The old track API (which was in deprecated.h) is completely gone. The new tracklist API must be used instead.
* Several enum values were renamed and/or removed.

I'm not sure how to properly reimplement MediaPlayer::setSubtitle() or MediaPlayer::setAudioTrack() yet.

I'll submit this on the KDE GitLab instance later.