[mythtv-users] Master / QT6

David Hampton mythtv at love2code.net
Wed Oct 27 00:41:34 UTC 2021


On Tue, 2021-10-26 at 18:53 -0400, John Hoyt wrote:
> > 
> > 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.frame
> work/Headers -
> I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
> /Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/AGL.framewor
> k/Headers -
> I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
> /Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/OpenGL.frame
> work/Headers -
> I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
> /Developer/SDKs/MacOSX12.0.sdk/System/Library/Frameworks/AGL.framewor
> k/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.
> ...
> I'm wondering if I'm missing another module or just in uncharted
> territory.

I have not tried building with qt6 on OSX since qt6 isn't yet supported
in macports. I saw your pull request, but I just don't have time to
figure out how to compile qt6 locally and get it installed. Once qt6
gets into macports it will be easier for me to test. Sorry.

David




More information about the mythtv-users mailing list