Raspberry PI specific forum
User_Russian
Addict
Posts: 1443 Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia
Post
by User_Russian » Wed Apr 20, 2022 10:25 am
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
mk-soft
Always Here
Posts: 5393 Joined: Fri May 12, 2006 6:51 pm
Location: Germany
Post
by mk-soft » Wed Apr 20, 2022 10:53 am
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
Fred
Administrator
Posts: 16680 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Wed Apr 20, 2022 11:19 am
Could you tell us your version of QT ?
mk-soft
Always Here
Posts: 5393 Joined: Fri May 12, 2006 6:51 pm
Location: Germany
Post
by mk-soft » Wed Apr 20, 2022 11:28 am
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).
User_Russian
Addict
Posts: 1443 Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia
Post
by User_Russian » Wed Apr 20, 2022 12:10 pm
I installed qt as advised in Checkinstall.sh.
Code: Select all
sudo apt-get install libqt5webkit5-dev qtmultimedia5-dev libqt5svg5-dev qttools5-dev
User_Russian
Addict
Posts: 1443 Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia
Post
by User_Russian » Wed Apr 20, 2022 1:40 pm
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.
mk-soft
Always Here
Posts: 5393 Joined: Fri May 12, 2006 6:51 pm
Location: Germany
Post
by mk-soft » Wed Apr 20, 2022 1:48 pm
What hardware and Linux version are you using ?
Fred
Administrator
Posts: 16680 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Wed Apr 20, 2022 2:06 pm
You should have this symbol in QT 5.11, it's a very old class (since 4.4).
mk-soft
Always Here
Posts: 5393 Joined: Fri May 12, 2006 6:51 pm
Location: Germany
Post
by mk-soft » Wed Apr 20, 2022 3:03 pm
@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
User_Russian
Addict
Posts: 1443 Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia
Post
by User_Russian » Wed Apr 20, 2022 7:27 pm
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.