Porting Qt 6.2 to OS/2 operating system
-
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"
Any clues on how to resolve the parse error?
Cheers,
Paul
-
@psmedley said in Porting Qt 6.2 to OS/2 operating system:
U:/DEV/qtbase-everywhere-src-6.2.4/src/plugins/platforms/os2/main.cpp:49:1: error: Parse error at "IID"
What exactly is in this line?
You should also consider asking this on Qt developers mailing list. -
@jsulm Line 49 of https://github.com/psmedley/qt6-os2/blob/main/src/plugins/platforms/os2/main.cpp is:
Q_PLUGIN_METADATA(IID QPlatformIntegrationFactoryInterface_iid FILE "os2.json")
The windows equivalent looks very similar to my eyes.
Cheers,
Paul