Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Does QtAV work well with Qt 6.x? #1389

Open
rpw98 opened this issue Oct 8, 2021 · 11 comments
Open

Question: Does QtAV work well with Qt 6.x? #1389

rpw98 opened this issue Oct 8, 2021 · 11 comments

Comments

@rpw98
Copy link

rpw98 commented Oct 8, 2021

I'm thinking about updating my code from Qt 5.15 to Qt 6.2. But I don't know if QtAV will work with Qt 6.2. Has anyone successfully built QtAV with Qt 6.1/6.2?

Thanks.

@nicmorais
Copy link

I'm trying to build QtAV on Qt 6.2, but had no success so far.

@wang-bin
Copy link
Owner

wang-bin commented Jan 8, 2022

You can try https://github.com/wang-bin/mdk-sdk, it's designed to support any app framework, including qt.

wang-bin added a commit that referenced this issue Jan 8, 2022
no qml. examples are wip.
fix #1381, #1294, #1389
@MohammadKanan
Copy link

With Qt 6.3 compile fails
I am using QtAV with qml , is it still wip @wang-bin , I am using cmake build , with qt 5.15 QtAV cmake build is possible both with ninja and make builds .. but wuth Qt6.3 both fail .. any clue ? is it possible to know what optional modules of Qt6 are needed other tthan Multimedia ?

@cgilles
Copy link
Contributor

cgilles commented May 18, 2022

My personal feedback : cmake port from qmake is incomplete. Use qmake in all cases.

I'm sure : as QtAV development is stopped since february, i fork the project in digiKam core and review, patch, and improve the implementations. Look the README here for details:

https://invent.kde.org/graphics/digikam/-/tree/master/core/libs/video/qtav

My cmake port is complete. I also fix plenty of static analyzer reports. My code compile under Qt6, but i drop QML as i don't need for digiKam.

Best

Gilles Caulier

@MohammadKanan
Copy link

MohammadKanan commented May 18, 2022

@cgilles Yes , seems to be the case .. CMakeLists still finding Qt5 modules, still qmake also fails with qt6

@cgilles
Copy link
Contributor

cgilles commented May 18, 2022

Note: my port to Qt6 is complete. QtAV original code port to Qt6 was partial. Look weel the README, i explain well all tasks done over QtAV source code.

@MohammadKanan
Copy link

Qt 6.2.4 / qmake failes this error
filter/X11FilterContext.cpp:185: error: ‘class QFontMetrics’ has no member named ‘width’
QtAV/src/filter/X11FilterContext.cpp: In member function ‘virtual void QtAV::X11FilterContext::drawPlainText(const QPointF&, const QString&)’:

@cgilles
Copy link
Contributor

cgilles commented May 18, 2022

@MohammadKanan
Copy link

@cgilles , thank you unfortunately my primary interest is the QML port , you say its not included in your fix ?

@wang-bin
Copy link
Owner

wang-bin commented May 18, 2022

With Qt 6.3 compile fails
I am using QtAV with qml , is it still wip @wang-bin , I am using cmake build , with qt 5.15 QtAV cmake build is possible both with ninja and make builds .. but wuth Qt6.3 both fail .. any clue ? is it possible to know what optional modules of Qt6 are needed other tthan Multimedia ?

Won't support qt6 qml because qt6 turns to use rhi instead of opengl. Rewritting the whole rendering code is required to support rhi. You can try this https://github.com/wang-bin/mdk-examples/tree/master/Qt/qmlrhi

@cgilles
Copy link
Contributor

cgilles commented May 18, 2022

yes, with digiKam , we don't use QML code in favor of C++, for speed reasons, and to be homogeneous, as digiKam is more than 1.5 M C++ code lines.

But you can backport my fixes in a personal QtAV port including original QML code, with your fixes for these implementations.

Gilles Caulier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants