Re: [Interest] signing webenginewidgets issue

2024-06-15 Thread Alexander Carôt via Interest
P.S.: Nevermind – I simply did not wait long enough for the app to be 
notarized. The solution for me was to only include this key:

com.apple.security.cs.allow-jit

and then I could sign, notarize and launch.


--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797


> Gesendet: Samstag, 15. Juni 2024 um 13:44 Uhr
> Von: "Alexander Carôt via Interest" 
> An: "qt qt" 
> Betreff: [Interest] signing webenginewidgets issue
>
> Hello all,
> 
> I just saw an issue when signing and notarizing an app containing a web 
> browser based on webenginewidgets (applies also for the Qt example 
> minibrowser):
> 
> 1.) Codesigning via 
> 
> codesign --options=runtime --deep ./minibrowser.app -s "Developer ID 
> Application: XXX" 
> 
> works fine but breaks the app: Launching minibrowser afterwards makes the 
> webprocess crash.
> 
> 2.) Including the following keys into an entitlements file:
> 
> com.apple.security.cs.allow-jit
> com.apple.security.cs.disable-library-validation
> com.apple.security.cs.allow-dyld-environment-variables
> com.apple.security.cs.allow-unsigned-executable-memory
> 
> and then signing via 
> 
> codesign --options=runtime --entitlements ./entitlements.xml --deep 
> ./minibrowser.app -s "Developer ID Application: XXX"
> 
> does not lead to the crash anymore and
> 
> codesign --verify --deep --strict --verbose=2 ./minibrowser.app
> 
> tells that all is signed just fine, however, when I package the app as a DMG, 
> load it up to the web, load it down to my desktop and launch it, it tells me 
> that the developer cannot be verified – so it basically tells that it is not 
> signed.
> 
> The same happens when I only include the first key:
> 
> com.apple.security.cs.allow-jit
> 
> but here comes the message that the package cannot be opened because it 
> cannot be checked in terms of malware etc.
> 
> Can anyone help with this ?
> 
> Thanks a lot in advance,
> best
> 
> Alex
> 
> 
> 
> 
> --
> http://www.carot.de
> Email : alexan...@carot.de
> Tel.: +49 (0)177 5719797
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] signing webenginewidgets issue

2024-06-15 Thread Alexander Carôt via Interest
Hello all,

I just saw an issue when signing and notarizing an app containing a web browser 
based on webenginewidgets (applies also for the Qt example minibrowser):

1.) Codesigning via 

codesign --options=runtime --deep ./minibrowser.app -s "Developer ID 
Application: XXX" 

works fine but breaks the app: Launching minibrowser afterwards makes the 
webprocess crash.

2.) Including the following keys into an entitlements file:

com.apple.security.cs.allow-jit
com.apple.security.cs.disable-library-validation
com.apple.security.cs.allow-dyld-environment-variables
com.apple.security.cs.allow-unsigned-executable-memory

and then signing via 

codesign --options=runtime --entitlements ./entitlements.xml --deep 
./minibrowser.app -s "Developer ID Application: XXX"

does not lead to the crash anymore and

codesign --verify --deep --strict --verbose=2 ./minibrowser.app

tells that all is signed just fine, however, when I package the app as a DMG, 
load it up to the web, load it down to my desktop and launch it, it tells me 
that the developer cannot be verified – so it basically tells that it is not 
signed.

The same happens when I only include the first key:

com.apple.security.cs.allow-jit

but here comes the message that the package cannot be opened because it cannot 
be checked in terms of malware etc.

Can anyone help with this ?

Thanks a lot in advance,
best

Alex




--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] QtVirtualKeyboard Raspi4 Wayland

2024-06-10 Thread Alexander Carôt via Interest
Hello all,

I tried to get QtVirtualKeyboard running on a Raspi4 (Bookworm / Wayland) with 
a touch screen but it seems to recognize it as a desktop app:

Project ERROR: Could not find feature vkb-desktop.

When I force to run it as non-vkb-desktop it compiles fine but when running the 
binary it says

"qt.qpa-plugin: Could not find the Qt platform "wayland in "" "

and then complains about numerous non-existing QML files.

Before I start researching/fixing I wonder if QtVirtualKeyboard should with 
Raspi4/Wayland at all.

Thanks in advance for hints of any kind,
best

Alex


--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt6 build on Raspi

2024-03-26 Thread Alexander Carôt via Interest
Nevermind: I just created an AWS instance of an ARM machine in order to build 
and then transfer to the Raspi. This probably is the most simple solution – 
progress update asap.

Best

Alex

--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797


> Gesendet: Montag, 25. März 2024 um 08:06 Uhr
> Von: "Alexander Carôt via Interest" 
> An: ham...@risingsoftware.com
> Cc: interest@qt-project.org
> Betreff: Re: [Interest] Qt6 build on Raspi
>
> Hi Hamish,
> 
> >>> https://archive.raspbian.org/raspbian/pool/main/q/qt6-base
> 
> I will give it a try but before I start I wonder if the following modules are 
> also available because I can't spot them on the directory:
> 
> websockets
> webengine
> multimedia
> multimediawidgets
> 
> Thanks for letting me know,
> best
> 
> Alex
> 
> --
> http://www.carot.de
> Email : alexan...@carot.de
> Tel.: +49 (0)177 5719797
> 
> 
> > Gesendet: Sonntag, 10. März 2024 um 08:25 Uhr
> > Von: "Hamish Moffatt via Interest" 
> > An: interest@qt-project.org
> > Betreff: Re: [Interest] Qt6 build on Raspi
> >
> > On 9/3/24 20:57, Alexander Carôt via Interest wrote:
> > >>>> ... or build on a system with sufficient RAM.
> > > I see – can I use any ARM based machine in order to work on a Raspi4 or 
> > > are there specific requirements ?
> > >
> > > Furthermore, I might have missed something but are there probably 
> > > pre-built Qt6 binaries for Raspi available ?
> > >
> > It's in Debian 12 (bookworm) and Raspbian bookworm. 
> > https://archive.raspbian.org/raspbian/pool/main/q/qt6-base/
> > 
> > That's the open source edition. If you need commercial then I think you 
> > have to build it yourself on another armhf system.
> > 
> > 
> > Hamish
> > 
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > https://lists.qt-project.org/listinfo/interest
> >
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt6 build on Raspi

2024-03-25 Thread Alexander Carôt via Interest
Hi Hamish,

>>> https://archive.raspbian.org/raspbian/pool/main/q/qt6-base

I will give it a try but before I start I wonder if the following modules are 
also available because I can't spot them on the directory:

websockets
webengine
multimedia
multimediawidgets

Thanks for letting me know,
best

Alex

--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797


> Gesendet: Sonntag, 10. März 2024 um 08:25 Uhr
> Von: "Hamish Moffatt via Interest" 
> An: interest@qt-project.org
> Betreff: Re: [Interest] Qt6 build on Raspi
>
> On 9/3/24 20:57, Alexander Carôt via Interest wrote:
> >>>> ... or build on a system with sufficient RAM.
> > I see – can I use any ARM based machine in order to work on a Raspi4 or are 
> > there specific requirements ?
> >
> > Furthermore, I might have missed something but are there probably pre-built 
> > Qt6 binaries for Raspi available ?
> >
> It's in Debian 12 (bookworm) and Raspbian bookworm. 
> https://archive.raspbian.org/raspbian/pool/main/q/qt6-base/
> 
> That's the open source edition. If you need commercial then I think you 
> have to build it yourself on another armhf system.
> 
> 
> Hamish
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt6 build on Raspi

2024-03-12 Thread Alexander Carôt via Interest
Thanks to Frank, Hamish and Maurice,

I tried several options to build on the Raspi itself but it always failed after 
several hours, thus, for now I will go with the pre-built suggestions below and 
possibly give it another try on a powerful ARM machine.

I will provide feedback asap,
best

Alex

--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797


> Gesendet: Sonntag, 10. März 2024 um 17:22 Uhr
> Von: "Maurice Kalinowski via Interest" 
> An: "Hamish Moffatt" , "interest@qt-project.org" 
> 
> Betreff: Re: [Interest] Qt6 build on Raspi
>
> We are about to provide native arm packages soon, including installer, 
> binaries for the modules, Qt Creator, etc... Actually, you can try these out 
> as well from your Qt Account Download.
> 
> Please note, that the latest beta had some very rough edges, which we are 
> fixing until hopefully the 6.7.0 final release.
> We're eager to get feedback.
> 
> BR,
> Maurice
> 
> 
> > -Original Message-
> > From: Interest  On Behalf Of Hamish Moffatt
> > via Interest
> > Sent: Sunday, 10 March 2024 08:26
> > To: interest@qt-project.org
> > Subject: Re: [Interest] Qt6 build on Raspi
> > 
> > On 9/3/24 20:57, Alexander Carôt via Interest wrote:
> > >>>> ... or build on a system with sufficient RAM.
> > > I see – can I use any ARM based machine in order to work on a Raspi4 or 
> > > are
> > there specific requirements ?
> > >
> > > Furthermore, I might have missed something but are there probably 
> > > pre-built
> > Qt6 binaries for Raspi available ?
> > >
> > It's in Debian 12 (bookworm) and Raspbian bookworm.
> > https://archive.raspbian.org/raspbian/pool/main/q/qt6-base/
> > 
> > That's the open source edition. If you need commercial then I think you
> > have to build it yourself on another armhf system.
> > 
> > 
> > Hamish
> > 
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > https://lists.qt-project.org/listinfo/interest
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Qt6 build on Raspi

2024-03-09 Thread Alexander Carôt via Interest
>>> ... or build on a system with sufficient RAM.

I see – can I use any ARM based machine in order to work on a Raspi4 or are 
there specific requirements ?

Furthermore, I might have missed something but are there probably pre-built Qt6 
binaries for Raspi available ?

Thanks,
best

Alex

--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797


> Gesendet: Freitag, 08. März 2024 um 18:02 Uhr
> Von: "Thiago Macieira" 
> An: interest@qt-project.org
> Betreff: Re: [Interest] Qt6 build on Raspi
>
> On Friday, 8 March 2024 00:20:24 PST Frank Mertens wrote:
> > I usually do not build on the Raspberry directly. Modern compilers take ever
> > more memory. Another problem might be parallelism of the optimizing link
> > stage. Checkout CMAKE_JOB_POOL_LINK and CMAKE_JOB_POOK_COMPILE.
> > You probably have to limit both to not run out of memory.
> 
> That's just going to fail the build if the compilers can't get enough memory. 
> Alexander says he tried to build with -j1 and that still got the system to 
> freeze.
> 
> Alexander: add more RAM or build on a system with sufficient RAM.
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Principal Engineer - Intel DCAI Cloud Engineering
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Qt6 build on Raspi

2024-03-07 Thread Alexander Carôt via Interest
Hi all,

when compiling qt6 from the current git sources on my Raspi via

cmake --build .

it turn out that the machine freezes after having compiled about 500 sources: 
The build is stuck and I cannot ssh to the Raspi from another terminal window 
anymore, however, I can still ping it.

Originally I did a

cmake --build . --parallel 4

and then stepwise decreased the amount of threads to 1, however, it did not 
make any difference.

Can anyone help with how to resolve ? I don't care about the duration unless it 
continues to comopletely freeze.

Thanks in advance,
best

Alex


--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] server certificate integration

2024-02-26 Thread Alexander Carôt via Interest
Hi Samuel and Alex,

thanks a lot – this already helps ! I just saw that in the basic example the 
files are being integrated as resources and of course I could theoretically 
point to the certificate files directly.

Best

Alex 


--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797


> Gesendet: Montag, 26. Februar 2024 um 16:20 Uhr
> Von: "Samuel Gaist" 
> An: "Alexander Carôt" 
> Cc: "qt qt" 
> Betreff: Re: [Interest] server certificate integration
>
> Hi,
> 
> Why not pass the path to the certificate as a parameter of your application ?
> 
> That way, you can configure it in the startup script of your server and just 
> need to restart/reload it when the time comes to update the certificate.
> 
> Another possibility is to use a configuration file in which you point your 
> application to where the certificates are.
> 
> Hope it helps
> 
> Best regards
> Samuel
> 
> > On 26 Feb 2024, at 16:11, Alexander Carôt via Interest 
> >  wrote:
> > 
> > Hi all,
> > 
> > I have a secure websocket server based on the Qt example:
> > 
> > https://doc.qt.io/qt-6/qtwebsockets-sslechoserver-example.html
> > 
> > It requires a certificate and a key which are compiled into the server and 
> > it functions well.
> > 
> > However, whenever the certificate expires (such as Let’s encrypt after 90 
> > days) I need to recompile the server with the renewed certificate.
> > 
> > In order to avoid this process I wonder if it is possible to somehow 
> > externally point to the the new certificates without integration at 
> > compilation time.
> > 
> > Thanks for any hint,
> > best
> > 
> > Alex
> > 
> > --
> > http://www.carot.de
> > Email : alexan...@carot.de
> > Tel.: +49 (0)177 5719797
> > 
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > https://lists.qt-project.org/listinfo/interest
> 
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] server certificate integration

2024-02-26 Thread Alexander Carôt via Interest
Hi all,

I have a secure websocket server based on the Qt example:

https://doc.qt.io/qt-6/qtwebsockets-sslechoserver-example.html

It requires a certificate and a key which are compiled into the server and it 
functions well.

However, whenever the certificate expires (such as Let’s encrypt after 90 days) 
I need to recompile the server with the renewed certificate.

In order to avoid this process I wonder if it is possible to somehow externally 
point to the the new certificates without integration at compilation time.

Thanks for any hint,
best

Alex

--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] displaying Qt-coded JPEG image in browser

2024-01-26 Thread Alexander Carôt via Interest
>> QString encodedString = QString::fromLatin1(finalJpg.toBase64());

Thanks for general comments, hints and especially this working solution ! It 
does the job very well and besides single images it also works for 25 fps video 
streams (what I did not expect).

Thanks again and
all the best

Alex

--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797


> Gesendet: Freitag, 26. Januar 2024 um 16:17 Uhr
> Von: "Thiago Macieira" 
> An: "qt qt" 
> Cc: "Alexander Carôt" 
> Betreff: Re: [Interest] displaying Qt-coded JPEG image in browser
>
> On Friday, 26 January 2024 04:55:59 PST Alexander Carôt via Interest wrote:
> > QString jpgBufferString( finalJpg.data() );
> 
> This here will corrupt the data, because you can't load arbitrary binary data 
> into QString like this: it's trying to decode as UTF-8 and failing.
> 
> > QString encodedString = jpgBufferString.toUtf8().toBase64();
> 
> You should encode to Base64 at the QByteArray level first, before going to 
> QString. So:
> 
>  QString encodedString = QString::fromLatin1(finalJpg.toBase64());
> 
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Cloud Software Architect - Intel DCAI Cloud Engineering
>
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] displaying Qt-coded JPEG image in browser

2024-01-26 Thread Alexander Carôt via Interest
> Hi, maybe passing JPG through fromUtf8() and toUtf8() munges it too
> much, what happens if you simplify, instead of:
>
> QString jpgBufferString( finalJpg.data() );
> QString encodedString = jpgBufferString.toUtf8().toBase64();
>
> try:
> QString encodedString = finalJpg.data().toBase64();

Hi, would love to do that but this leads to

error: member reference base type 'char *' is not a structure or union

and if I did:

QString jpgBufferString( finalJpg.data() );
QString encodedString = jpgBufferString.toBase64();

I get:

error: no member named 'toBase64' in 'QString'




___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] displaying Qt-coded JPEG image in browser

2024-01-26 Thread Alexander Carôt via Interest
Hi all,

I have a raw image:

QImage *img = new QImage(imgBufferOut,
 reso.width(),
 reso.height(),
 QImage::Format_RGB888);


that I convert to JPG via


QBuffer bufferJpeg;
bufferJpeg.open(QIODevice::WriteOnly);
img->save(, "JPEG");
finalJpg = bufferJpeg.data();


Now I transfer the content finalJpg in form of a Base64 encoded QString via a 
websocket to a web browser. Within the browser it should be displayed via


const imageDataUri = "data:image/jpeg;base64," + msg.jpgBuffer;
videoImage.src = imageDataUri;


Now my question is how should I create the required sting ? I tried:


QString jpgBufferString( finalJpg.data() );
QString encodedString = jpgBufferString.toUtf8().toBase64();


but this does not decode the image and simply shows the broken image icon in 
the browser.

Can anyone help with this ?

Thanks in advance,
best

Alex

--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] external QWebEngine content rendering ?

2024-01-16 Thread Alexander Carôt via Interest
Hello all,

probably some kind of uncommon question but I will give it a try:

I have an app that integrates a QWebEngine webbrowser.

It instantiates the browser calls within main at the beginning which launches 
the browser and then instantiates another class which works as an audio/video 
transmission core engine.

The core engine uses the webbrowser as its graphical interface using a 
websocket on localhost as its technical interface.

The core engine generates video which so far has been displayed via a 
conventional Qt GUI video window – and this is what I'd like to change:

Instead of the Qt app window I want to have the video data being displayed 
within the browser, however, I'd like to avoid transfering this massive amount 
of data via the websocket interface.

Therefore, I wonder if (maybe) there is a way to externally render the 
browser's content directly from the core engine class' generated video data.

Any (also alternative) hint appreciated,
best

Alex

--
http://www.carot.de
Email : alexan...@carot.de
Tel.: +49 (0)177 5719797

___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest