[mythtv-users] Master / QT6

John Hoyt john.hoyt at gmail.com
Tue Oct 26 22:53:10 UTC 2021


>
>
> All the changes are in the main branch but one, and that one is a hack-
> n-slash to remove any references to QWebKit and QtScript. Both of those
> components were removed in Qt6. Once the new web server is committed to
> the main branch and the old one removed, it should be possible to build
> a qt6 version of main without the hack-n-slash patch.
>
>
Thanks David.  It looks like my real problem was that I needed to add the
qt5compat module to my ports.

After that I tripped on this error with Apple Remote Listener:

ccache clang++ -c -pipe -stdlib=libc++ -D_FILE_OFFSET_BITS=64 -DPIC
-std=c++17 -faligned-new -DNDEBUG -fomit-frame-pointer -fPIC
-DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -msse -pthread
-I/opt/local/include/soundtouch -g -Wall -Wextra -Wpointer-arith
-Wno-constant-logical-operand -Wno-unused-value -Qunused-arguments
-Wimplicit-fallthrough -std=gnu++1z  -arch x86_64 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk
-mmacosx-version-min=10.14 -fPIC -DMMX -DUSING_APPLEREMOTE -D_GNU_SOURCE
-DUSING_DBUS -DUSING_OPENGL -DUSING_QTWEBKIT -DMUI_API -DQT_NO_DEBUG
-DQT_WIDGETS_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE5COMPAT_LIB
-DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I.
-I/opt/local/libexec/qt6/include -I/opt/local/include/libxml2 -Iopengl
-Iplatforms -Iplatforms/drm -Idevices -Ivulkan -I../libmythbase -I../..
-I.. -I/opt/local/libexec/qt6/lib/QtWidgets.framework/Headers
-I/opt/local/libexec/qt6/lib/QtOpenGL.framework/Headers
-I/opt/local/libexec/qt6/lib/QtGui.framework/Headers
-I/opt/local/libexec/qt6/lib/QtCore5Compat.framework/Headers
-I/opt/local/libexec/qt6/lib/QtXml.framework/Headers
-I/opt/local/libexec/qt6/lib/QtSql.framework/Headers
-I/opt/local/libexec/qt6/lib/QtNetwork.framework/Headers
-I/opt/local/libexec/qt6/lib/QtDBus.framework/Headers
-I/opt/local/libexec/qt6/lib/QtCore.framework/Headers -Imoc
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/AGL.framework/Headers
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/AGL.framework/Headers
-I/opt/local/libexec/qt6/mkspecs/macx-clang -F/opt/local/libexec/qt6/lib -o
obj/AppleRemoteListener.o devices/AppleRemoteListener.cpp

devices/AppleRemoteListener.cpp:60:13: error: no viable conversion from
'QKeyCombination' to 'int'

        int keycode = a[i];

            ^         ~~~~

1 error generated.

make[2]: *** [obj/AppleRemoteListener.o] Error 1

make[1]: *** [sub-libmythui-make_first] Error 2

make: *** [libs] Error 2

Commenting out appleremote got me much further.

ccache clang++ -c -pipe -stdlib=libc++ -D_FILE_OFFSET_BITS=64 -DPIC
-std=c++17 -faligned-new -DNDEBUG -fomit-frame-pointer -fPIC
-DQT_DISABLE_DEPRECATED_BEFORE=0x060000 -msse -pthread
-I/opt/local/include/soundtouch -g -Wall -Wextra -Wpointer-arith
-Wno-constant-logical-operand -Wno-unused-value -Qunused-arguments
-Wimplicit-fallthrough -std=gnu++1z  -arch x86_64 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk
-mmacosx-version-min=10.14 -fPIC -DMMX -D_GNU_SOURCE -DMYTH_API
-DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE5COMPAT_LIB
-DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I.
-I/opt/local/libexec/qt6/include -I/opt/local/include/libxml2
-I../libmythfreesurround -I../libmythbase -I../.. -I.. -I. -I../libmythupnp
-I../libmythui -I../.. -I../../external/FFmpeg -I../libmythservicecontracts
-I/opt/local/libexec/qt6/lib/QtWidgets.framework/Headers
-I/opt/local/libexec/qt6/lib/QtGui.framework/Headers
-I/opt/local/libexec/qt6/lib/QtCore5Compat.framework/Headers
-I/opt/local/libexec/qt6/lib/QtNetwork.framework/Headers
-I/opt/local/libexec/qt6/lib/QtXml.framework/Headers
-I/opt/local/libexec/qt6/lib/QtSql.framework/Headers
-I/opt/local/libexec/qt6/lib/QtDBus.framework/Headers
-I/opt/local/libexec/qt6/lib/QtCore.framework/Headers -Imoc
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/AGL.framework/Headers
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.framework/Headers
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/AGL.framework/Headers
-I/opt/local/libexec/qt6/mkspecs/macx-clang -F/opt/local/libexec/qt6/lib -o
obj/audiooutputca.o audio/audiooutputca.cpp

audio/audiooutputca.cpp:578:30: error: invalid operands to binary
expression ('QString *' and 'const QString')

            if (name && name == deviceName)

                        ~~~~ ^  ~~~~~~~~~~

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:875:17:
note: candidate
function not viable: no known conversion from 'QString *' to 'const
QString' for 1st argument; dereference the argument with *

    friend bool operator==(const QString &s1, const QString &s2) noexcept

                ^

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:894:17:
note: candidate
function not viable: no known conversion from 'QString *' to
'QLatin1String' for 1st argument

    friend bool operator==(QLatin1String s1, const QString &s2) noexcept {
return s2 == s1; }

                ^

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:908:17:
note: candidate
function not viable: no known conversion from 'QString *' to
'std::nullptr_t' (aka 'nullptr_t') for 1st argument

    friend bool operator==(std::nullptr_t, const QString &s2) noexcept {
return s2 == nullptr; }

                ^

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:922:17:
note: candidate
function not viable: no known conversion from 'QString *' to 'const
char16_t *' for 1st argument

    friend bool operator==(const char16_t *s1, const QString &s2) noexcept
{ return s2 == s1; }

                ^

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:930:24:
note: candidate
function not viable: no known conversion from 'QString *' to 'QChar' for
1st argument

    friend inline bool operator==(QChar lhs, const QString &rhs) noexcept

                       ^

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:1006:36: note:
candidate function not viable: no known conversion from 'QString *' to
'const char *' for 1st argument

    QT_ASCII_CAST_WARN friend bool operator==(const char *s1, const QString
&s2)

                                   ^

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:884:17:
note: candidate
function not viable: no known conversion from 'QString *' to 'const
QString' for 1st argument; dereference the argument with *

    friend bool operator==(const QString &s1, QLatin1String s2) noexcept

                ^

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:902:17:
note: candidate
function not viable: no known conversion from 'QString *' to 'const
QString' for 1st argument; dereference the argument with *

    friend bool operator==(const QString &s1, std::nullptr_t) noexcept {
return s1.isEmpty(); }

                ^

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:915:17:
note: candidate
function not viable: no known conversion from 'QString *' to 'const
QString' for 1st argument; dereference the argument with *

    friend bool operator==(const QString &s1, const char16_t *s2) noexcept
{ return s1 == QStringView(s2); }

                ^

/opt/local/libexec/qt6/lib/QtCore.framework/Headers/qstring.h:941:24:
note: candidate
function not viable: no known conversion from 'QString *' to 'const
QString' for 1st argument; dereference the argument with *

    friend inline bool operator==(const QString &lhs, QChar rhs) noexcept {
return   rhs == lhs; }

                       ^

1 error generated.

make[2]: *** [obj/audiooutputca.o] Error 1

make[1]: *** [sub-libmyth-make_first] Error 2

make: *** [libs] Error 2

I'm wondering if I'm missing another module or just in uncharted territory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20211026/f87e8dac/attachment-0001.htm>


More information about the mythtv-users mailing list