[Development] Problems porting Qt5.15 to Qt 6.2 for OS/2

Alexey Edelev alexey.edelev at qt.io
Tue Nov 15 10:28:25 CET 2022


Hi,

Please try to add
LIBRARIES
    Qt::Gui

to the qt_internal_add_plugin call in https://github.com/psmedley/qt6-os2/blob/main/src/plugins/platforms/os2/CMakeLists.txt

Regards,
Alexey.

________________________________
From: Development <development-bounces at qt-project.org> on behalf of Paul Smedley <paul at smedley.id.au>
Sent: Tuesday, November 15, 2022 10:01 AM
To: development at qt-project.org <development at qt-project.org>
Subject: [Development] Problems porting Qt5.15 to Qt 6.2 for OS/2

Hi All,

I'm attempting to update the OS/2 port of Qt 5.15
(https://github.com/bitwiseworks/qtbase-os2) to Qt 6.2.4
(https://github.com/psmedley/qt6-os2)

Things are going pretty well and I have a number of DLLs built, howeever
I'm now stuck on building the OS/2 plugin.

I'm getting the following:

AutoMoc subprocess error
------------------------
The moc process failed to compile
   "SRC:/src/plugins/platforms/os2/main.cpp"
into

"SRC:/build/src/plugins/platforms/os2/QOS2IntegrationPlugin_autogen/include/main.moc"
included by
   "SRC:/src/plugins/platforms/os2/main.cpp"

Command
-------
U:/DEV/qtbase-everywhere-src-6.2.4/build/bin/moc.exe
-DQOS2IntegrationPlugin_EXPORTS -DQT_DEPRECATED_WARNINGS
-DQT_DEPRECATED_WARNINGS_SINCE=0x060000
-DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS
-DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
-DQT_PLUGIN
-IU:/DEV/qtbase-everywhere-src-6.2.4/src/plugins/platforms/os2
-IU:/DEV/qtbase-everywhere-src-6.2.4/build/src/plugins/platforms/os2
-IU:/DEV/qtbase-everywhere-src-6.2.4/build/include
-IU:/DEV/qtbase-everywhere-src-6.2.4/mkspecs/os2-g++ -Iu:/extras/include
-Iu:/openldap/include -Iu:/usr/include -IU:/OS2TK45/H
-IU:/usr/local1220/include/c++/12.2.0
-IU:/usr/local1220/include/c++/12.2.0/i686-pc-os2-emx
-IU:/usr/local1220/include/c++/12.2.0/backward
-IU:/usr/local1220/lib/gcc/i686-pc-os2-emx/12.2.0/include
-IU:/usr/local1220/lib/gcc/i686-pc-os2-emx/12.2.0/include-fixed
-I/usr/local/include -IU:/usr/local1220/include --include
U:/DEV/qtbase-everywhere-src-6.2.4/build/src/plugins/platforms/os2/QOS2IntegrationPlugin_autogen/moc_predefs.h
-o
U:/DEV/qtbase-everywhere-src-6.2.4/build/src/plugins/platforms/os2/QOS2IntegrationPlugin_autogen/include/main.moc
U:/DEV/qtbase-everywhere-src-6.2.4/src/plugins/platforms/os2/main.cpp

Output
------
U:/DEV/qtbase-everywhere-src-6.2.4/src/plugins/platforms/os2/main.cpp:49:1:
error: Parse error at "IID"

Line 49 of main.cpp contains:
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE
"os2.json")

Any clues on how to resolve the parse error?

Cheers,

Paul

_______________________________________________
Development mailing list
Development at qt-project.org
https://lists.qt-project.org/listinfo/development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20221115/40235801/attachment-0001.htm>


More information about the Development mailing list