Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Rich Walsh

Pages: [1] 2 3 ... 26
1
Programming / Re: Qt6 Application Testing
« on: January 09, 2025, 10:15:23 pm »
well, for completeness, I guess it should be:
Code: [Select]
return fp.isEmpty() || (fp.at(1) != u':' && fp.at(1) != u'/')  || fp.at(0) != u'/'; ?

Nope. "fp.at(1) != u'/'" would disqualify "./myapp.exe". I believe it should be:

Code: [Select]
return fp.isEmpty() || (fp.at(1) != u':' && fp.at(0) != u'/');

This should return FALSE for f/q DOSish paths (C:/blahblah) and f/q UNIX paths (/blahblah).


2
Programming / Re: Qt6 Development
« on: January 03, 2025, 08:18:29 am »
What is this mythical qt6-os2? qt6-base-os2 contains the core modules, gui, networking, etc.

..ummm... isn't that what https://github.com/bitwiseworks/qt5-os2/ is? I.e. a master repo with the individual modules as sub-repos. Look at https://github.com/bitwiseworks/qt5-os2/blob/master/init-repository-os2.sh which runs the main 'init-repository' script.

That was what I assumed. Obviously a wrong assumption.

Someone is missing something here - it could be me, but...

Just like any other project, you have to clone the QT6 master repo from the original at 'qt.io', then port it to your platform. For QT5, it looks like BWW didn't have to do anything except add a small script which can probably be reused for QT6.

Perhaps I'll try it...

3
Programming / Re: Qt6 Development
« on: January 03, 2025, 07:44:08 am »
What is this mythical qt6-os2? qt6-base-os2 contains the core modules, gui, networking, etc.

..ummm... isn't that what https://github.com/bitwiseworks/qt5-os2/ is? I.e. a master repo with the individual modules as sub-repos. Look at https://github.com/bitwiseworks/qt5-os2/blob/master/init-repository-os2.sh which runs the main 'init-repository' script.

4
Web applications / Re: Dooble releases, Qt5 builds
« on: January 02, 2025, 07:16:46 pm »
In new version 2024.12.31., I cannot use diacritic characters like č š đ ž.

Were they working for you before? Did you update the Qt5 libs that I posted?

I mentioned this in an email to Dave and Paul last week: composing an accented character using Alt-Gr doesn't work. Instead, the menu gets the focus when releasing Altr-Gr.

However, composing a character that uses a diacritical that is already a dead-key on the keyboard does work. For example, a tilde (~) + 'n' produces 'ñ'. (I'm using the US International keyboard layout for testing so YMMV.)

I just restored the original QT5 dlls and the original version of Dooble, and Alt-Gr didn't work with them either so this is nothing new. I'll look into it.

5
Programming / Re: Qt6 Development
« on: December 30, 2024, 07:38:22 pm »
I cannot get the base build, i get lots of errors.
Not remember what those are, as im not @ home.

Are you getting this?

Code: [Select]
warning: visibility attribute not supported in this configuration; ignored [-Wattributes]

My first attempt to build produced thousands of these. I had to add "-no-reduce-exports" to the 'configure' commandline to get rid of them. I traced the cause of the errors back to 'qtbase\src\corelib\global\qcompilerdetection.h (ln 227)' where I found:

Code: [Select]
#  ifdef Q_OS_DOSLIKE
#    define Q_DECL_EXPORT     __declspec(dllexport)
#    define Q_DECL_IMPORT     __declspec(dllimport)
#  elif defined(QT_VISIBILITY_AVAILABLE)
#    define Q_DECL_EXPORT     __attribute__((visibility("default")))
#    define Q_DECL_IMPORT     __attribute__((visibility("default")))
#    define Q_DECL_HIDDEN     __attribute__((visibility("hidden")))
#  endif

Shouldn't Q_OS_DOSLIKE be defined for OS/2?

6
Setup & Installation / Re: Installing CUPS on MCP
« on: December 29, 2024, 06:47:53 am »
Do you have the 'PSPRINT' driver installed? I believe it provides the list of printers. You can find it on any AOS install DVD at 'x:\CID\SERVER\PRINTPAK\PSPRINT.ZIP'

7
Programming / Re: Qt6 Application Testing
« on: December 29, 2024, 06:12:50 am »
With Paul's updates and Dave latest build of QT6, a site like https://ru.ecomstation.ru should look like attached screen shot.

Dooble switches itself to CP-1208 (UTF-8) so it's titlebar can display any characters WarpSans supports (Latin-1, Latin-2, PC Extended, Baltic, Cyrillic, Hebrew, Greek and Arabic). Changing the  titlebar font to one of the WT-J fonts adds Chinese, Japanese, and Korean.

The Window List (and everything else) continues to use CP-850, so the range of text it can display is limited. Any character not in CP-850 is replaced with a "mid dot" which is easier on the eye than a question mark.

FYI... Only the PM codepage gets changed; the Process codepage (used for filenames, etc.) remains the same (usually CP-850). When Dave releases his next build of Dooble, you'll be able to *turn off* codepage switching using "SET QT_PM_CP=0".

8
Programming / Re: DISKIO - storage device detection logic
« on: December 23, 2024, 06:40:02 am »
In the 'fsDeviceAttr' field, Bit 3 (0x08) will be on if this is PRM.

9
Programming / Re: time during compiling
« on: December 21, 2024, 12:05:40 am »
I was wondering if its possible to add a time to see howlong a build takes.

I use:

Code: [Select]
@date.exe > ..\bld.log
@cmake --build . --parallel 6  | tee -a ..\bld.log
@date.exe >> ..\bld.log

'date.exe' is the standard *nix util, not the OS/2 "date" command

10
Storage / Re: DISKIO - updated version in need of TEST
« on: December 17, 2024, 06:43:07 am »
Code: [Select]
Number of fixed disks: 17
Number of CD-ROM drives: 1

Dhrystone 2.1 C benchmark routines (C) 1988 Reinhold P. Weicker
Dhrystone benchmark for this CPU: -567273196 runs/sec

Hard disk 1: 255 sides, 62261 cylinders, 63 sectors per track = 488390 MB

Drive cache/bus transfer rate:
SYS1808:
The process has stopped.  The software diagnostic
code (exception code) is  009B.

Even if it didn't crash with a "divide by zero" error (009B), 'Diskio' would be unlikely to provide useful info about my disks. Both of them are GPT and are normally *hidden* from the system by 'gpt.flt'.

What OS/2 sees are a bunch of _emulated_ MBR disks, one for each mounted partition plus a few spares that appear to be unpartitioned. Doing a speed test on a phony disk that refers to some partition somewhere on one of the physical disks wouldn't be overly informative. In any case, I don't think you can access them using the Physical Disk IOCTLs that 'Diskio' depends on, so we'll probably never know.

FWIW... GPT disks can be made visible, though I'm not sure how accessible they are. I look forward to trying 'Diskio' again with the disks visible once the current crop of issues is resolved.

11
Internet / Re: Dooble releases-Qt6
« on: December 04, 2024, 10:05:03 am »
https://doc.qt.io/qt-6/qtextcodec.html might help...
[...]
scratch this, QTextCodec is part of qt5compat which can't be used in building qt6core

I hate to run people around with a bunch of almost-but-not-quite-right binaries that we could easily test ourselves before release. Could we please take this development process offline until we do get it right? I'll send you and Dave an email.

12
Internet / Re: Dooble releases-Qt6
« on: December 04, 2024, 07:13:11 am »
Hi Remy, you are going to have to wait for new builds.

Actually, Remy, et al. are going to have to wait for even more new builds beyond those currently available.

Dave/Paul: in my window list patch, I used '.toLatin1()' to generate the switch list text. This is incorrect because Latin1 is not CP850 and produces the wrong accented characters. The screenshot shows QT5 on the left and QT6 on the right. Whatever QT5 does is the correct way to go (but _only_ for the switch list entry - the actual titlebar text must remain '.toLocal8Bit()').

13
Internet / Re: Dooble releases-Qt6
« on: December 04, 2024, 12:46:21 am »
Yes, the Window List also shows the old broken title. This is due to not using UTF8. I guess the Window list can't be fixed. Rich will have to comment on whether it is worth fixing the xcentre or whether fixing it would have side affects.

If the final patches I sent you and Paul (in 2 emails) work as expected, this will all be resolved. Western European languages supported by CP850 should look correct everywhere. Russian/Chinese/etc. will display properly in the titlebar but have lots of question marks in the Window List.

14
Multimedia / Re: TUF Gaming X570 PRO (wifi)
« on: December 01, 2024, 09:02:28 pm »
Unfortunately ArcaOS 5.1 is unstable with this mobo, often it crashes with module exceptions e.g. "GOTCHA" OR "XWPDAEMN" after 5 secs after the desktop appears

These crashes are *highly* unlikely to have anything to do with the motherboard. Both apps hook the global message queue to intercept various keystrokes. This is almost certainly a pure software problem that doesn't involve any hardwre other than the CPU and memory.

Have you installed any 3rd-party software (other than the webcam driver) that you could remove/disable?  If the problem persists, file a bug report with AN since they installed both of these (I maintain 'xwpdaemn", so I'm curious to see what's going wrong).

15
Internet / Re: Dooble releases-Qt6
« on: December 01, 2024, 08:37:35 pm »
The problem to overcome is that Cloudflare has become the gatekeeper of much of the internet with it's "Are you human" checks.

I think I found an underlying cause for at least some of these Cloudfare checks: the UserAgent string.

A news website I read daily had become unusable because every time I clicked on a link to an article, I got Cloudflare. Casting about for solutions, I reset my UserAgent to the default. Since then, I haven't gotten the Cloudflare page on that site even once (or anywhere else, IIRC). I have to assume that it compares the capabilities that _should_ be present for a given UA with the capabilities the browser itself reports. If they don't match, it assumes something is fishy.

BTW... I'm going to take my titlebar activities to PM/email (at such time as I have something to report or try). Meanwhile, it might be better to put your titlebar tweaks on hold since they'll likely have to be rolled back if my efforts are successful. For the time being, seeing raw UTF8 is unlikely to cause users grievous psychological damage.

Pages: [1] 2 3 ... 26