Skip to content

Compiling Issues #76

Description

@vladniko75

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?

Activity

  1. AbleToCode commented on Mar 27, 2026

    @AbleToCode

    Hi I reproduced one concrete media issue on a local Qt6 build:

    • Steps: Add Media Files... -> select an mp4 -> 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 QMediaPlayer signal signatures in MediaWidget (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 : )

  2. AbleToCode commented on Mar 27, 2026

    @AbleToCode

    fixed

  3. Camuenga commented on Mar 27, 2026

    @Camuenga

    Well, 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.

  4. Camuenga commented on Mar 27, 2026

    @Camuenga

    You should remove code that is not in use because there are many things that could break the code.

  5. higheraims commented on Jul 26, 2026

    @higheraims

    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: master vendors a copy of QMediaPlaylist which Qt6 from the multimedia module. It's back in under 3rdparty/, but it was never wired into softProjector.pro so a fresh checkout fails to link. Its header also has #include qmediaenumdebug.h, which newer Qt6 removed. Both are fixed in #82.

    Also you need the Qt6 multimedia dev package, or qmake fails with Unknown module(s) in QT: multimedia multimediawidgets

    Regarding ffmpeg playback.... Some QMediaPlayer connections in mediawidget.cpp have not been updated yet but Qt6 moved volume/mute to QAudioOutput and 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions