Author Topic: Qt6 Development  (Read 27080 times)

TeLLie

  • Full Member
  • ***
  • Posts: 175
  • Karma: +7/-0
    • View Profile
Re: Qt6
« Reply #195 on: December 04, 2022, 06:22:58 pm »
Hi David,

The zip file is ok, afaik
C:\Home\Downloads>7z T qt6-6.2.4-os2-20221204.zip

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.IBM-850,Utf16=on,HugeFiles=on,32 bits,4 CPUs 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (806C1),ASM,AES-NI)

Scanning the drive for archives:
1 file, 60993569 bytes (59 MiB)

Testing archive: qt6-6.2.4-os2-20221204.zip
--
Path = qt6-6.2.4-os2-20221204.zip
Type = zip
Physical Size = 60993569

Everything is Ok

Folders: 519
Files: 6964
Size:       202940092
Compressed: 60993569

David McKenna

  • Hero Member
  • *****
  • Posts: 503
  • Karma: +18/-0
    • View Profile
Re: Qt6
« Reply #196 on: December 04, 2022, 06:32:00 pm »
Hey Tellie!

  Thanks for showing that... I have been using 'UNZIP' to extract Paul's archives, but seeing your example I tried using '7z' and I got more files extracted with '7z' than with 'Unzip'! No idea why, didn't get any errors when using 'Unzip', but I'll be using '7z' from now on. Both QT6 and Scribus got more files extracted with 7z... strange.

  Anyway, the folders I mentioned as empty are no longer empty after using '7z'. Thanks!

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Qt6
« Reply #197 on: December 05, 2022, 02:57:56 am »
I can't explain this... I just unzipped a copy locally and those directories definitely aren't empty.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Qt6
« Reply #198 on: December 05, 2022, 07:30:42 am »
I built libtorrent and qbittorrent today - however qbittorrent needs some code to implement random number generation... https://github.com/qbittorrent/qBittorrent/blob/master/src/base/utils/random.cpp#L89

This is too much for my brain today, so it will have to wait.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Qt6
« Reply #199 on: December 05, 2022, 08:53:16 am »
With some help from Steven, I got the random code working. It loads and seems to be able to add a torrent, but isn't downloading (for me at least) - possible due to the SSL errors on the console?
Code: [Select]
[U:\qbittorrent]qbittorrent
QtSingleCoreApplication: listen on local socket failed, QLocalServer::listen: Na
me error
Fontconfig error: Cannot load default config file
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslKey
qt.network.ssl: Active TLS backend does not support key creation
qt.network.ssl: The backend "cert-only" does not support QSslSocket
qt.network.ssl: The backend named "cert-only" does not support TLS
qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
https://smedley.id.au/tmp/qbittorrent-4.5.0-os2-20221205.zip

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Qt6
« Reply #200 on: December 05, 2022, 10:22:33 pm »
Hey All,

I've created the following Issues in github to document some of the functional issues I've seen:
QSSL issues - https://github.com/psmedley/qt6-base-os2/issues/2
DosOpen error in console - https://github.com/psmedley/qt6-base-os2/issues/3
Socket error: QLocalSocket::connectToServer: Unknown error 49 - https://github.com/psmedley/qt6-base-os2/issues/4
"Broken filename passed to function" seen in console - https://github.com/psmedley/qt6-base-os2/issues/5

I should also document one for the menus being slightly off, but I don't have the brain capacity right now to attempt to describe it :)
« Last Edit: December 05, 2022, 10:29:09 pm by Paul Smedley »

David McKenna

  • Hero Member
  • *****
  • Posts: 503
  • Karma: +18/-0
    • View Profile
Re: Qt6
« Reply #201 on: December 05, 2022, 10:51:05 pm »
Hey Paul,

  I really wanted QBitTorrent to work, but just couldn't do it - same issues you mention. Tried all kinds of settings but no go. I also wonder about the message at the top of the console 'QtSingleCoreApplication: listen on local socket failed, QLocalServer::listen: Name error' which I see as well. I also see a lot of 'OpenType support missing for....' various things over and over.

  Re: Unzip problem - I think I was getting into a depleted memory situation with that. The new QT6 and apps suck up a lot of memory and I was testing for a long time so probably got into trouble with that. I've been marking DLL's to load high since then and so far no issues with unzip...

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Qt6
« Reply #202 on: December 06, 2022, 01:02:51 am »
https://smedley.id.au/tmp/tlsplugin-qt6-20221206.zip makes the TLS errors go away.

Ensure you remove the contents of \qt6\plugins\tls before unzipping, as the DLL name has changed and the alst full build included both new/old names :(

Of course, qbittorrent still thinks it's offline due to:
Code: [Select]
QtSingleCoreApplication: listen on local socket failed, QLocalServer::listen: Name error
« Last Edit: December 06, 2022, 01:20:00 am by Paul Smedley »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Qt6
« Reply #203 on: December 06, 2022, 02:55:06 am »
OK I kinda know what's wrong now..... I added some debug and It's trying to connect to:
Code: [Select]
full ServerName: "\\socket\\C:/Home/.config/qBittorrent/ipc-socket"
That isn't ever going to work :)

David McKenna

  • Hero Member
  • *****
  • Posts: 503
  • Karma: +18/-0
    • View Profile
Re: Qt6
« Reply #204 on: December 06, 2022, 04:02:05 am »
Paul,

  Get a 404 on the tls plugin link...

Regards,

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Qt6
« Reply #205 on: December 06, 2022, 04:09:58 am »
Paul,

  Get a 404 on the tls plugin link...

Regards,

Oops - didn't copy the file over to the right directory...

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Qt6
« Reply #206 on: December 06, 2022, 05:56:50 am »
New full build, that rolls in some changes to corelib, network and of course the TLS plugin... qbittorrent still not working :(

https://smedley.id.au/tmp/qt6-6.2.4-os2-20221206.zip

Paul Smedley

  • Hero Member
  • *****
  • Posts: 1501
  • Karma: +130/-0
    • View Profile
Re: Qt6
« Reply #207 on: December 06, 2022, 06:56:25 am »
Getting back to thinking about the crash in focuswriter when typing sounds are enabled - do sounds work at all in Qt5? I can't for the life of me see any code that enables this....

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4043
  • Karma: +81/-0
    • View Profile
Re: Qt6
« Reply #208 on: December 06, 2022, 07:56:36 am »
Getting back to thinking about the crash in focuswriter when typing sounds are enabled - do sounds work at all in Qt5? I can't for the life of me see any code that enables this....

They work in Dooble, playing the local radio station.

TeLLie

  • Full Member
  • ***
  • Posts: 175
  • Karma: +7/-0
    • View Profile
Re: Qt6
« Reply #209 on: December 06, 2022, 08:21:29 am »
Hi Paul,
Afair type sounds worked in previous builds
But not sure with qt5.
But need to look as i have the older sources on a older HD.
Well let you know asap...