News:

OS2World.com Forum is back !!!

Remember to visit OS2World at:
http://www.os2world.com

Main Menu

Qt6 Development

Started by Paul Smedley, November 10, 2022, 09:28:30 PM

Previous topic - Next topic

Paul Smedley

Quote from: Dave Yeo on May 24, 2024, 06:26:39 AM
Quote from: Paul Smedley on May 21, 2024, 07:18:27 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

Quote from: Paul Smedley on May 24, 2024, 07:03:31 AM
Quote from: Dave Yeo on May 24, 2024, 06:25:18 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

#782
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

Paul Smedley

#783
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

Paul Smedley

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

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

A few more exceptq reports  with the latest exceptq...

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

Mentore

Quote from: Paul Smedley 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....

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

Mentore

Paul Smedley

Quote from: Dave Yeo on May 24, 2024, 06:26:39 AM
Quote from: Paul Smedley on May 21, 2024, 07:18:27 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

Not found. Tried with more recent dates, 29 and 30, still not found

Paul Smedley

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

Quote from: Paul Smedley 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.

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

Dave Yeo

Still the same error,

[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

weird, working for me...
{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

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...