Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Raspberry Pi / Apps no longer run in Raspbian Stretch

Author
Message
MrZhangEPSB
User Offline
Joined: 23rd Aug 2017
Location:
Posted: 5th Sep 2017 08:47
In Raspbian Stretch, loading apps now throw an error:

error while loading shared libraries: libavcodec.so.56: cannot open shared object file: No such file or directory.

In Stretch, the libavcodec.so.57 is present and I cannot get the apps to use it.

Help.

Thanks
MrZhangEPSB
User Offline
Joined: 23rd Aug 2017
Location:
Posted: 6th Sep 2017 10:30
Ok, I've done more testing and determined it is only with Raspbian Stretch. Going back to Raspbian Jessie solves the problem for now.
Xaby
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 7th Sep 2017 10:46 Edited at: 7th Sep 2017 10:46
@MrZhangEPSB,

on which Raspian Pi did you test it? I can't get Apps to start with Jessie on the Pi Zero W
MrZhangEPSB
User Offline
Joined: 23rd Aug 2017
Location:
Posted: 12th Sep 2017 06:07
I did it on the raspberry pi 3
Xaby
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 14th Sep 2017 12:42
Is there any chance, to get it work on Raspberry Pi Zero?

What would I have to do on a Raspberry Pi 3?

I installed Rasbian Jessie and AppGameKit for Raspberry. Compiling seems to work, but I can't run them, but I also get no Error-Messages. Maybe something with the OpenGL drivers?
Did you install something more than only Jessie?

Or is it a rights problem, do I have to allow the OS to run the new compiled executables in a way, I don't know?

I can't tell, if it is a Linux-problem, an Rasbian problem, or a specific problem on the low-end hardware.
Xaby
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 16th Sep 2017 22:17 Edited at: 16th Sep 2017 22:23
Maybe this could be the problem, some of the libraries are renamed in Stretch, I think

https://raspberrypi.org/forums/viewtopic.php?f=28&p=1204975
+ Code Snippet

https://github.com/RPi-Distro/firmware/issues/3
Xaby
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 18th Sep 2017 10:03
AGK is working fine on Raspberry Pi Zero (W) with Stretch, but after I tried to start my compiled app, nothing happend. I tried it in the terminal, and got the message, that shared libraries: libavcodec.so and so on are not in the directory, so I think, I can download some files and hopefully get it to work.
MrZhangEPSB
User Offline
Joined: 23rd Aug 2017
Location:
Posted: 21st Sep 2017 09:45
I think it's more complicated than copying files. I tried adding the Jessie repositories in apt sources and installed libavcodec56, but then it asked for libavformat56 to be installed and then I got stuck with libGLESv2 dependencies...
DarinM1967
User Offline
Joined: 9th Jun 2017
Location:
Posted: 21st Sep 2017 17:01
Hey Everybody, I have contacted support and Richard stated the following "This is a problem with the MP3 player. Unfortunately the mere presence of MP3 support generates this error, so if we want to support all current versions of the Raspberry Pi OS then we'll have to remove MP3 support and OGG file format will have to be used. The Linux version already went through this change and no longer supports MP3." He then stated that TheGameCreators team were working on this issue and will be posting an update sometime in the near future, though no definite date was issued. I'm sure it won't be long before a new update will appear! In the week or so that I've been using "AppGameKit2 for the Raspberry PI" I've had to contact their support group on several occasions with issues and questions and they have always responded quickly, and professionally. It's very refreshing to see TheGameCreators are putting in so much effort to supporting this free version.

Take care now,

Darin Murphy
Xaby
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 23rd Sep 2017 11:02 Edited at: 23rd Sep 2017 11:31
Is this the problem with the "libavcodec.so" 56: cannot open shared object files: No such file or directory

Would be nice, to have maybe an option, if my "exeutable" is using something. Maybe by default: OGG, MP3, 3D, all libs checked, but mostly in my prototypes I am using not all the AGK2 compiler offers, but only want little executables or basic stuff.

(more 3D files formats, Video codecs, etc., all supported by AGK2, but not everytime are needed. But I understand, that also some of the c-libraries would support more and it is easier to implement all, insteat of seperating for the save of a few bytes.


I read, that there are the Libav-libraries not binary compatible, so I can't fix this issue, I think, but what I not understand is, that the AGK2 compiler on Raspian on a Raspian Pi Zero W works flawless.
DarinM1967
User Offline
Joined: 9th Jun 2017
Location:
Posted: 23rd Sep 2017 22:16
Xaby,

Yes, the driver "libavcodec.so" 56 is one of the many that are causing this error. As far as I understand it the issue was several drivers were renamed during the recent updates to "Stretch" that were outside of TheGameCreators control. I do not understand why they would be working flawlessly on the Raspberry Pi Zero, if it is running Raspian Stretch.

Take care now,

Darin Murphy

Xaby
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 24th Sep 2017 15:48
I got the message "Compilation finished successfully"

But the resulted "EXE" in linux does not run. First it was a Rights-problem, after that, the libav-error. But the behavier, I think, was the same in Raspbian Jessy with my Pi Zero W. So I got the compiler to run, but not the created programs. But I can't tell, if the compiler maybe uses code, which is not linked in other libraries or something like that. So maybe, because I don't use any MP3 or MP4, video, audio loading, only tested some 3D demos, the compilation works fine, but the "Player" is linked to falls precompiled libs.

I think, it is maybe like with Visual Basic DLLs, where also some could miss on the executed system, and the "EXE" would not run. But I don't know, if I need the VB*.DLLs to compile. Or in AGK2 I can compile for android, but it has not to work on the target android.

The compilation however does not says that there is something not working. I testet "NormalMapping", but can't tell, how the result looks like on a Pi Zero.
DarinM1967
User Offline
Joined: 9th Jun 2017
Location:
Posted: 25th Sep 2017 21:07
Hey Everybody,

Just downloaded and extracted updated AppGameKit2 which was supposed to fix the error:

error while loading shared libraries: libGLESv2.so: cannot open shared object file: No such file or directory

It didn't. I even created the following simplestic project which has nothing but a FPS prompt:

+ Code Snippet

But still returned the same error and didn't run. I have contacted Support again to let them know. Hopefully they'll be able to resolve this issue soon!

Take care now,

Darin Murphy
Xaby
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 25th Sep 2017 22:55
I tried this:


+ Code Snippet

I re-linked the libs, but than got that

core.cpp int main (int, char**): Assertion 'surface != ((EGLSurface)0)' failed

when starting the "NormalMapping" example.

I also rename / relink them all like described ( "brcm" )
+ Code Snippet

https://www.raspberrypi.org/forums/viewtopic.php?t=191857

But didn't solve the problem.

I am using "OpenGL with Fake KMS or so", works best with "glxgears -info", ~ 60 frames on Raspberry Pi Zero W.

Also set the memory-Split to 192 MB for graphics





Alex Deef
3
Years of Service
User Offline
Joined: 8th Apr 2014
Location: eastern europe
Posted: 27th Sep 2017 16:42
What would I have to do on a Raspberry Pi 3?
http://www.pishop.de/Cialis.html
http://www.achetermed.fr/Levitra.html
Nathan Charles
1
Years of Service
User Offline
Joined: 21st Apr 2016
Location:
Posted: 28th Sep 2017 15:53
I still can't get it to work on my new raspberry pi 3 with stretch. compiles but does not execute.
DarinM1967
User Offline
Joined: 9th Jun 2017
Location:
Posted: 28th Sep 2017 16:34
Hey Everybody

I ran across this site that you all maybe interested in, in regards to this issue:

https://github.com/tipam/pi3d/issues/214

It explains the following:

In the most recent version of Raspbian, code name "Stretch", the non-open-source Broadcom OpenGLES 2.0 library was renamed from "libGLESv2.so" to "libbrcmGLESv2.so" and likewise "libEGL.so" was renamed to "libbrcmEGL.so", to avoid name clashes with the MESA library.

I am wondering if this could be the cause for the missing driver error I and Xaby are getting. Also I can run GeeXLAB's OpenGL 2.1 demos, but not their OpenGLES 2.0 demos. Finally, I have done a complete wipe and reinstall of Raspbian "Stretch", and received the same error.

I've updated the support team, so hopefully they'll be able to resolve this issue soon!

Take care now,

Darin Murphy
DarinM1967
User Offline
Joined: 9th Jun 2017
Location:
Posted: 6th Oct 2017 19:17
Hey Everybody,

For the last couple of weeks I've been working with TheGameCreators's team trying to resolve this issue there is a fix! Basically the issue is with the new experimental OpenGL drivers and how AGK2 uses OpenGL. Paul from TheGameCreators's stated the following:

It sounds like the kernel is using the OpenGL driver so it can't be accessed directly. AppGameKit uses the Broadcom OpenGL driver directly as it is not used by the kernel by default, and on Raspberry Pi 1 and zero this is the only way to use hardware acceleration. The line
dtoverlay=vc4-kms-v3d
in your config.txt is what is telling the kernel to use OpenGL, removing this line should fix it.

So I did the following:

opened a terminal window
sudo raspi-config
selected "Advanced Options"
selected "GL Driver"
selected "Legacy"
Ok
Finish
Reboot

After my machine restarted and I was back in Raspbian, I opened AGK2 and tested several 3D demos, which all Compiled and Ran fine. Also there was no dip in frame rate either. So basically the issue was the updated experimented OpenGL drivers in Raspbian "Stretch". I can agree with this since all of the 3D games and applications, that I was able to run before "Stretch" worked good (Quake, Arena, Colobot, etc.,), now either crash or are very glitchy. Anyway, I wanted to Thank Richard and Paul, from TheGameCreators's personally for all of their quick and professional assistance helping a Linux/Raspbian newbie like myself, track down and resolve this issue.

Take care now,

Darin Murphy
MrZhangEPSB
User Offline
Joined: 23rd Aug 2017
Location:
Posted: 20th Oct 2017 04:43
Hi Darin,

I finally had time to try your instructions on a fresh install of Raspbian Stretch and still no dice. I am using the demo files and cannot get anything to run. Any further advice into what I may be doing wrong?

Thanks
Xaby
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 28th Oct 2017 14:57
Maybe something will work with the next AppGameKit update? Would be nice, to have an easy way, to test AppGameKit code on a Raspberry Pi, but searching what is not working with some libraries would cost to much time, and I will never finish a game
Paul Johnston
TGC Developer
15
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 13th Nov 2017 22:29 Edited at: 13th Nov 2017 22:31
Just wanted to add that there is a missing step that we discovered in our troubleshooting. After installing Raspbian Stretch open the terminal and run "sudo rpi-update" to upgrade to the latest version. This version is newer than the one available on their website.

Raspbian Stretch renamed the old Broadcom OpenGL driver in favour of the new experimental driver, however this broke existing OpenGL apps which used the Broadcom driver (including AGK). They have reverted this change in the very latest version so old apps will work again.

The need to open the config settings and changing the OpenGL setting to legacy should only be necessary if you have set it to the experimental yourself, since the default setting should be legacy.

Login to post a reply

Server time is: 2017-11-25 03:39:53
Your offset time is: 2017-11-25 03:39:53