Page 1 of 1

Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 10:25 am
by User_Russian
When compiling a simple code

Code: Select all

OpenWindow(0, 0, 0, 400, 100, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
Repeat
  Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
Error appears

Code: Select all

/usr/bin/ld: VectorDrawing.a(VectorDrawing.o): in function `PB_VectorDrawing_Reset':
VectorDrawing.cpp:(.text+0x50): undefined reference to `QGradient::~QGradient()'
/usr/bin/ld: VectorDrawing.cpp:(.text+0x238): undefined reference to `QGradient::~QGradient()'
collect2: error: ld returned 1 exit status

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 10:53 am
by mk-soft
Here works ...

HW: PI4 Linux 11 (arm64)
PB: v6.00b6 (arm64)

Please check your install. Link: Simple install of ...
sudo apt-get install qtbase5-dev qttools5-dev qtmultimedia5-dev qtdeclarative5-dev libqt5svg5-dev libqt5webkit5-dev libqt5multimedia5-plugins

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 11:19 am
by Fred
Could you tell us your version of QT ?

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 11:28 am
by mk-soft
My working version: German
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
qtbase5-dev ist schon die neueste Version (5.15.2+dfsg-9).
qtdeclarative5-dev ist schon die neueste Version (5.15.2+dfsg-6).
libqt5multimedia5-plugins ist schon die neueste Version (5.15.2-3).
qtmultimedia5-dev ist schon die neueste Version (5.15.2-3).
libqt5svg5-dev ist schon die neueste Version (5.15.2-3).
qttools5-dev ist schon die neueste Version (5.15.2-5).
libqt5webkit5-dev ist schon die neueste Version (5.212.0~alpha4-11).

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 12:10 pm
by User_Russian
I installed qt as advised in Checkinstall.sh.

Code: Select all

sudo apt-get install libqt5webkit5-dev qtmultimedia5-dev libqt5svg5-dev qttools5-dev

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 1:03 pm
by mk-soft
I think the install information for qt inside checkinstall.sh is not complete.

Show link from freak: Here is some more info regarding the Qt subsystem

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 1:40 pm
by User_Russian
Fred wrote: Wed Apr 20, 2022 11:19 am Could you tell us your version of QT ?

Code: Select all

libqt5webkit5-dev	5.212.0
qtmultimedia5-dev	5.11.3-2
libqt5svg5-dev		5.11.3-2
qttools5-dev		5.11.3-4
Show link from freak
Installed, but the error is not fixed.

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 1:48 pm
by mk-soft
What hardware and Linux version are you using ?

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 2:06 pm
by Fred
You should have this symbol in QT 5.11, it's a very old class (since 4.4).

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 2:35 pm
by User_Russian
mk-soft wrote: Wed Apr 20, 2022 1:48 pm What hardware and Linux version are you using ?
RPI 4.
OS https://downloads.raspberrypi.org/raspi ... 020-08-24/

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 2:36 pm
by mk-soft
With debian buster is qt-default version 5.11.3

Either update to Bullseye or download and compile qt5 yourself.

Link: https://www.tal.org/tutorials/building- ... spberry-pi
Link: https://mechatronicsblog.com/cross-comp ... pberry-pi/

Very pity that it is not downward compatible

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 3:03 pm
by mk-soft
@user_russian
To just try it out, the effort under linux buster is far too great. It also runs under gtk3.

@Fred
Please specify in the description of the sub system the required version

Re: Raspberry Pi qt subsystem

Posted: Wed Apr 20, 2022 7:27 pm
by User_Russian
Yes you are right. I checked on the current version of the raspios 64 bit and there is no problem.

Probably OS "2020-08-20-raspios" outdated (released 1.5 years ago) and is not compatible with the qt subsystem of PB.