Raspberry Pi qt subsystem

Raspberry PI specific forum
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Raspberry Pi qt subsystem

Post 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
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Raspberry Pi qt subsystem

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 16622
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Raspberry Pi qt subsystem

Post by Fred »

Could you tell us your version of QT ?
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Raspberry Pi qt subsystem

Post 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).
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Raspberry Pi qt subsystem

Post 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
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Raspberry Pi qt subsystem

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Raspberry Pi qt subsystem

Post 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.
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Raspberry Pi qt subsystem

Post by mk-soft »

What hardware and Linux version are you using ?
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Fred
Administrator
Administrator
Posts: 16622
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Raspberry Pi qt subsystem

Post by Fred »

You should have this symbol in QT 5.11, it's a very old class (since 4.4).
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Raspberry Pi qt subsystem

Post 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/
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Raspberry Pi qt subsystem

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Raspberry Pi qt subsystem

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: Raspberry Pi qt subsystem

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