WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: With Qt-5.x version 5.14.0 qmake gives compile error  (Read 9318 times)

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #15 on: August 25, 2020, 04:00:16 PM »
Trying to run the package on TCL-11.0 requires a lot more dependencies to be loaded but still failed with:

Code: [Select]
tc@box:~$ sudo ostinato
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb.

Aborted
tc@box:~$

Only if I also load 'qt-5.x-dev' with all its dependencies it will run.

Other packages I had to install:
Code: [Select]
tce-load -wi harfbuzz.tcz
tce-load -wi libGL.tcz
tce-load -wi gcc_libs.tcz
tce-load -wi libzstd.tcz

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #16 on: August 25, 2020, 04:31:43 PM »
Hi rhermsen
... Only if I also load 'qt-5.x-dev' with all its dependencies it will run. ...
If you install  qt-5.x-opengl  instead of  qt-5.x-dev , does it run then?

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #17 on: August 25, 2020, 05:41:57 PM »
Hi Rich, that was the first one I tried, but that one was already installed.

Code: [Select]
tc@box:~$ tce-load -wi qt-5.x-opengl.tcz
qt-5.x-opengl is already installed!
tc@box:~$ tce-load -wi qt-5.x-dev

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #18 on: August 25, 2020, 08:18:41 PM »
Hi rhermsen
Instead of loading  qt-5.x-dev , run this:
Code: [Select]
ldd `which ostinato` | grep -i foundThose are not apostrophes in that command, they are back ticks and found on the  ~  key. If that command produces any  Not found
messages, you can find the missing libraries using the  Apps  utilities  Provides  function.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #19 on: August 26, 2020, 01:20:32 AM »
From this message:
Code: [Select]
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, webgl, xcb

..I'd guess that you'll need qt-5.x-all.

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 109
Re: With Qt-5.x version 5.14.0 qmake gives compile error
« Reply #20 on: October 13, 2020, 04:44:32 PM »
I had a look again and also compiled the same version of the program on TC-10.1 / Qt-5.11.2.
And found I was missing the following dependency 'qt-5.x-extended.tcz'

Regarding qt-5.x-bin.tcz path issue.
Used the following workaround in my script:

Code: [Select]
TCLVERSION=`version`
TCLVERSION=${TCLVERSION:0:2}
if [ $TCLVERSION -ge 11 ]
then
echo TCL version greater or equal to 11 install qt-5.x-bin.tcz locally
### begin workaround for Qt-5.14.0 ###
tce-load -wi libbluetooth5.tcz
tce-load -wi qt-5.x-xml.tcz
tce-load -wi qt-5.x-printsupport.tcz
tce-load -wi qt-5.x-extended.tcz
[ -f /mnt/vda1/tce/optional/qt-5.x-bin.tcz ] || wget http://www.tinycorelinux.net/11.x/x86/tcz/qt-5.x-bin.tcz -O /mnt/vda1/tce/optional/qt-5.x-bin.tcz
[ -f /mnt/vda1/tce/optional/qt-5.x-bin.tcz.dep ] || wget http://www.tinycorelinux.net/11.x/x86/tcz/qt-5.x-bin.tcz.dep -O /mnt/vda1/tce/optional/qt-5.x-bin.tcz.dep
[ -f /mnt/vda1/tce/optional/qt-5.x-bin.tcz.md5.txt ] || wget http://www.tinycorelinux.net/11.x/x86/tcz/qt-5.x-bin.tcz.md5.txt -O /mnt/vda1/tce/optional/qt-5.x-bin.tcz.md5.txt
tce-load -i -c /mnt/vda1/tce/optional/qt-5.x-bin.tcz
### end workaround for Qt-5.14.0 ###
fi
« Last Edit: October 13, 2020, 04:49:05 PM by rhermsen »