Author Topic: Qt6 Development  (Read 339158 times)

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #780 on: May 24, 2024, 07:04:10 am »
Thanks Dave, that will give some clues.... Are you able to raise an issue in the qt6-base-os2 repo?

Ok, I think the issue is that the files in https://github.com/bitwiseworks/qtbase-os2/tree/master/mkspecs/features/os2 are missing in Qt6

I tried adding features/os2, no change. Then I tried using the whole features/ from Qt5, still no change.

I'll investigate more when I get a moment. At least we know how to work around it.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4982
  • Karma: +109/-1
    • View Profile
Re: Qt6 Development
« Reply #781 on: May 24, 2024, 07:52:49 am »
Mount U: under Ubuntu and do it? Probably have to do it as root, or do a chown first.
Maximize memory under OS/2 and try again. Maximum VIRTUALADDRESSLIMIT and don't load the WPS and minimize what else is loaded, also a small JFS cache., no HPFS or FAT32. I started running OS/2 on a 386 with 4MB's of ram. I had it tuned to run pretty good, didn't run the WPS for a long time until I upgraded to 8 MB's of ram.

I managed to get the checkout to complete using ACPI /MAXCPU=1

Good, something to remember.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #782 on: May 24, 2024, 09:13:18 am »
Just a shame it took me 3 hours of keeping trying to make it work before I tried forcing 1 CPU only.......

Edit:
After an initial few misapplied diffs (I must have been tired when hand applying some of the ones that failed) the build is chugging away.

There were circa 25,000 files to be processed when I started, current status is: [1931/23715] (the 23715 is the number of files remaining as of this run of make) so roughly 3000/25000 done
« Last Edit: May 24, 2024, 10:24:52 am by Paul Smedley »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #783 on: May 25, 2024, 04:51:11 am »
Around half way through compilation,  then the fun of fixing missing symbols and building the DLLs.  Fingers crossed I have more success with javascript this time,  than with 6.4.x  (even though the chromium levels are similar)

[88/11395] CXX obj/net/third_party/quiche/quiche/bbr_sender.o

Edit:
Last update (for Saturday), now at [52/4204] - 84%(ish) complete based on the original ~25,000 objects to compile
« Last Edit: May 25, 2024, 11:49:57 am by Paul Smedley »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #784 on: May 26, 2024, 12:19:13 pm »
Sunday update,  [608/734]

Also found a small defect in v8/base/platform/platform-os2.cc - not sure if it will make any difference, but it makes things close to other platforms.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #785 on: May 27, 2024, 11:13:39 pm »
OK I have DLLs...

The good news..... a very simple page like https://smedley.id.au loads (no ads, no javascript)

The bad news....  pretty much any other page crashes :) time to start analysing the traps...

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #786 on: May 30, 2024, 11:20:32 am »
A few more exceptq reports  with the latest exceptq...

All from pages with javascript, all slightly different....

Mentore

  • Full Member
  • ***
  • Posts: 198
  • Karma: +6/-0
    • View Profile
Re: Qt6 Development
« Reply #787 on: May 30, 2024, 03:18:44 pm »
A few more exceptq reports  with the latest exceptq...

All from pages with javascript, all slightly different....

Seem all are related to unallocated or uncommitted memory. Wonder why...

Mentore

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #788 on: June 01, 2024, 02:13:31 am »
Thanks Dave, that will give some clues.... Are you able to raise an issue in the qt6-base-os2 repo?

Ok, I think the issue is that the files in https://github.com/bitwiseworks/qtbase-os2/tree/master/mkspecs/features/os2 are missing in Qt6

I tried adding features/os2, no change. Then I tried using the whole features/ from Qt5, still no change.

https://smedley.id.au/tmp/qt6-6.2.8-os2-20240519-hotfix.zip fixes it for me.

Make sure you remove any existing .qmake.cache & .qmake.stash files

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4982
  • Karma: +109/-1
    • View Profile
Re: Qt6 Development
« Reply #789 on: June 01, 2024, 03:36:56 am »
Not found. Tried with more recent dates, 29 and 30, still not found

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #790 on: June 01, 2024, 05:19:38 am »
Sorry about that, I didn't copy the file from the OS/2 box to the server. I managed to VPN I to home and it should be in place now.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4982
  • Karma: +109/-1
    • View Profile
Re: Qt6 Development
« Reply #791 on: June 01, 2024, 07:52:46 am »
Sorry about that, I didn't copy the file from the OS/2 box to the server. I managed to VPN I to home and it should be in place now.

Got it, will test tomorrow, 'tis late here.
Thanks

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4982
  • Karma: +109/-1
    • View Profile
Re: Qt6 Development
« Reply #792 on: June 01, 2024, 08:19:42 pm »
Still the same error,
Code: [Select]
[L:\work\dooble\obj]qmake ../dooble.pro
L:/QT6-6.2.X/mkspecs/features/toolchain.prf:76: Variable QMAKE_CXX.COMPILER_MACROS is not defined.
Project ERROR: failed to parse default search paths from compiler output

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #793 on: June 01, 2024, 10:35:05 pm »
weird, working for me...
Code: [Select]
{0}[u:\dev\dooble] mkdir obj

{0}[u:\dev\dooble] cd obj

{0}[u:\dev\dooble\obj] qmake ..\dooble.pro
Project MESSAGE: The QtCharts module has been discovered.

{0}[u:\dev\dooble\obj] qmake --version
QMake version 3.1
Using Qt version 6.2.8 in U:/QT6-6.2.X/lib

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2244
  • Karma: +170/-0
    • View Profile
Re: Qt6 Development
« Reply #794 on: June 02, 2024, 12:05:51 am »
OK I finally have an idea what may be causing javascript issues with newer chromium...

I'm using platform-os2.cc  based on work dmik  did to get newer nodejs working...

At https://github.com/bitwiseworks/node-os2/blob/main/deps/v8/src/base/platform/platform-os2.cc#L127 it uses mmap.... however, also in platform-os2.cc we define an OS/2  specific version of GetProtectionFromMemoryPermission. For now, I've copied the posix  definition as GetProtectionFromMemoryPermissionPosix and changed the functions in platform-os2.cc that use mmap  to  use GetProtectionFromMemoryPermissionPosix

Fingers  crossed this gives some progress...