Author Topic: Qt6 Application Testing  (Read 139035 times)

TeLLie

  • Full Member
  • ***
  • Posts: 226
  • Karma: +11/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #405 on: June 05, 2023, 07:08:30 pm »
Thanks David
Works now, also get warning about outdated Tor version..

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2088
  • Karma: +159/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #406 on: June 05, 2023, 11:44:21 pm »

David McKenna

  • Hero Member
  • *****
  • Posts: 739
  • Karma: +24/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #407 on: June 06, 2023, 12:09:45 am »
 Thanks Paul! Seems to be working just fine (using it to post this)...

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2088
  • Karma: +159/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #408 on: June 16, 2023, 10:06:20 am »
Qt6 v6.5.1 (minus the webengine) for testing: https://smedley.id.au/tmp/qt6-6.5.1-os2-20230616.zip

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4662
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Qt6 Application Testing
« Reply #409 on: June 16, 2023, 02:35:06 pm »
Qt6 v6.5.1 (minus the webengine) for testing: https://smedley.id.au/tmp/qt6-6.5.1-os2-20230616.zip
Thanks Paul. I will be giving it a try.

Remember that you can show your appreciation to Paul at:
Quote
Paul's GitHub Sponsor page or Paul's Arca Noae Sponsoring Page.

Martin Iturbide
OS2World NewsMaster
... just share the dream.

David McKenna

  • Hero Member
  • *****
  • Posts: 739
  • Karma: +24/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #410 on: June 17, 2023, 02:53:00 am »
 Thanks Paul! Far as I can tell, this build has the same limitations as other ones, but no new issues have showed up (still no QML or Quick stuff working with the examples - plugin 'workerscript' not found). Dooble doesn't work either, but probably because no webengine for 6.5.1 yet. I still have to try other apps with it... will do over the weekend.

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2088
  • Karma: +159/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #411 on: June 17, 2023, 09:41:07 am »
Thanks Dave - I really need to spend some time trying to work out wtf is wrong with the workscript plugin...

Interesting - in Qt 5, bww simply set a short DLL name for the workerscriptplugin - see https://github.com/bitwiseworks/qtdeclarative-os2/commit/6fd7c791b6aa6f2c708715277e69b64812547ed5 and the scanges in workerscript.pro
« Last Edit: June 17, 2023, 09:47:59 am by Paul Smedley »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2088
  • Karma: +159/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #412 on: June 18, 2023, 09:23:53 am »
So interesting... I built QtDeclarative 6.3.x with -no-feature-qml-worker-script to disable the worker script plugin.

Now I get:
Code: [Select]
{0}[u:\dev\qt6-declarative-os2-6.3.x\build] examples\qml\dynamicscene\dynamicsceneexample.exe
qrc:/dynamicscene/dynamicscene.qml:52:1: module "QtQuick.Particles" plugin "particles" not found
     import QtQuick.Particles

hmmmm...

Edit - the lack of OS/2 code at https://github.com/psmedley/qt6-declarative-os2/blob/6.3.x/src/qml/qml/qqmlpluginimporter.cpp#L393 probably explains it....
...and https://github.com/psmedley/qt6-declarative-os2/commit/0693d1d996af0c04327163a59d22139695c5d988 will hopefully fix it

OK... I can now load the DLLs - next problem is that the generated qmldir files have the long DLL names, so I'll need to find the code that generates them and modify it to write the short DLL names.

Edit2: Interesting - qt5 seems to create a symlink from the long name to the short name - will need to think how to achieve this within the cmake system (qt5 usings qmake)
« Last Edit: June 18, 2023, 12:13:43 pm by Paul Smedley »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2088
  • Karma: +159/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #413 on: June 19, 2023, 11:46:42 am »
OK... so I modified things so the generated qmldir uses the short DLL name where it is set. and most of the examples in examples/qml work now ;)

The ones in examples/quick fail with:
qrc:/affectors/affectors.qml:52:1: module "shared" is not installed
     import shared

Still need to work this out....

Also.... I need to work through and set the OS2_SHORT_NAME for *all* DLL's that are > 8 characters - even those where the cmake rules to shorten results in no clashes. Bit of work here, but should be a one off activity - and will hopefully apply cleanly to the newer code bases (I'm working on 6.3.2 right now).
« Last Edit: June 19, 2023, 12:01:06 pm by Paul Smedley »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2088
  • Karma: +159/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #414 on: June 21, 2023, 10:25:23 am »
New build - most of the qml examples work now - https://smedley.id.au/tmp/qt6-6.3.2-os2-20230621.zip

The examples in \qt6\examples\quick still fail.... investigating - and still need to checkin the changes...

David McKenna

  • Hero Member
  • *****
  • Posts: 739
  • Karma: +24/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #415 on: June 23, 2023, 12:06:33 am »
Hey Paul,

  This is some real progress - a breakthrough even! The QML examples stuff does indeed work, although it seems it exposes a new issue (QTCharts not installed) which it looks like you have added to your GitHub site. On a couple of QML tests I see a 'Button is not a type' error - is that a missing definition? The Quick stuff all seems to fail with 'Module 'Shared' not installed' - another short DLL name issue?

 Dooble seems to work as well as before - not really affected by this build.

 Thanks for keeping at it - if it was easy, everybody would do it!

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2088
  • Karma: +159/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #416 on: June 23, 2023, 11:26:51 am »
Hi David!

Thanks for testing! qtcharts should be installed - I'll double check. Without the DLL for qtcharts, Dooble shouldn't start. Which examples gives the error about qtcharts? I have no idea (yet) why the quick examples given error about "shared" logically it's a DLL name issue, but I don't see where it's trying to load "shared" from.

David McKenna

  • Hero Member
  • *****
  • Posts: 739
  • Karma: +24/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #417 on: June 23, 2023, 11:58:10 am »
Paul,

  All of the examples that start with 'QML...' in the 'Charts' directory will show the 'QTCharts not installed' error. Before they showed the 'workerscript not found' error.

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2088
  • Karma: +159/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #418 on: June 23, 2023, 11:07:13 pm »
  All of the examples that start with 'QML...' in the 'Charts' directory will show the 'QTCharts not installed' error. Before they showed the 'workerscript not found' error.

OK I can reproduce this, will try and investigate later today.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2088
  • Karma: +159/-0
    • View Profile
Re: Qt6 Application Testing
« Reply #419 on: June 24, 2023, 12:04:41 am »
My favourite fix - reconfigure and rebuild and it works. I must not have fullyrebuilt after patching things. https://smedley.id.au/tmp/qt6-6.3.2-os2-20230624.zip fixes the qml qtcharts examples, and some spurious logging messages in qtwebengine.