Lazarus

Programming => Widgetset => QT => Topic started by: JoeJoeTV on January 26, 2022, 06:17:32 pm

Title: Help setting up environment for developing for steam link
Post by: JoeJoeTV on January 26, 2022, 06:17:32 pm
Hello there!

I recently got a used steam link and saw, that it runs linux 3.8 and one can access it and install custom apps.
I also saw that it supports OpenGL ES 2.0, Qt 5.14.1 aswell as SDL 2.0 and that there is an sdk (https://github.com/ValveSoftware/steamlink-sdk).

I tried installing an ARM cross-compiler for Lazarus and tried compiling a small test application with Qt to run on the stem link.
When I copied it over, it didn't start from the App screen, so i tried executing it from ssh to get mor info and sure enough, "libQt5Pas" is missing. I tried copying an ARM version of libQt5Pas over and tried it again with low expectations and it failed, because other libraries are missing and the libc version is wrong.

So I looked at the sdk, because that has the right library versions and even an example for a Qt application written in C++, but I don't know how to set it up to work with Lazarus/FPC.

Can anyone tell me, how I would set this up, so FPC uses the right libraries and maybe build libQt5Pas in the right environment?

Thanks in advance!
Title: Re: Help setting up environment for developing for steam link
Post by: zeljko on January 27, 2022, 03:22:08 pm
There's somewhere on forum link to arm* libQt5Pas and other Qt5 libs AFAIR. Maybe even on Qt subforum.
Title: Re: Help setting up environment for developing for steam link
Post by: JoeJoeTV on January 27, 2022, 08:07:40 pm
As stated, I already tried using pre compiled arm libs i found on here, but they didn't work, because I think the libc on the steam link is dfferentnt to the one they were compiled for.
Title: Re: Help setting up environment for developing for steam link
Post by: JoeJoeTV on January 27, 2022, 08:57:30 pm
I just tried again to compile a simple qt app with a cross compiler and move it to the steam link.
I then copied the CrossLibsLinuxARM, libQT5Pas 2.6 arm and libqtx11extras arm into a lib folder near the executable and tried running it from ssh to get errors and I got the following error. Maybe it's from mismatched libraries, but I'm not sure:

Code: Pascal  [Select][+][-]
  1. ./project1: lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by lib/libQt5Pas.so.1)
  2. ./project1: lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/Qt-5.14.1/lib/libQt5PrintSupport.so.5)
  3. ./project1: lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/Qt-5.14.1/lib/libQt5Widgets.so.5)
  4. ./project1: lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/Qt-5.14.1/lib/libQt5Gui.so.5)
  5. ./project1: lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/Qt-5.14.1/lib/libQt5Network.so.5)
  6. ./project1: lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/Qt-5.14.1/lib/libQt5Core.so.5)
  7. ./project1: lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/Qt-5.14.1/lib/libQt5Core.so.5)
  8.  

Ideal would be, if I could set up Lazarus to use the libraries and so on from the sdk.
TinyPortal © 2005-2018