Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: NinjaCowboy on January 18, 2019, 04:04:42 PM

Title: libGLESv1_CM.so: file format not recognized
Post by: NinjaCowboy on January 18, 2019, 04:04:42 PM
It seems that the libGLESv1_CM.so library in rpi-vc.tcz is bad. I expect this file to be a shared library, but instead it's just an ASCII text file containing the string "libGLESv2.so". Trying to link with it fails.
Code: [Select]
$ gcc test.c -lGLESv1_CM -o test
/usr/local/bin/ld:/usr/local/lib/libGLESv1_CM.so: file format not recognized; treating as linker script
/usr/local/bin/ld:/usr/local/lib/libGLESv1_CM.so:0: syntax error
collect2: error: ld returned 1 exit status
Code: [Select]
$ xxd -g 1 /usr/local/lib/libGLESv1_CM.so
00000000: 6c 69 62 47 4c 45 53 76 32 2e 73 6f              libGLESv2.so
Title: Re: libGLESv1_CM.so: file format not recognized
Post by: Paul_123 on January 18, 2019, 08:09:20 PM
These are packaged directly from Rpi, https://github.com/raspberrypi/firmware/tree/master/hardfp/opt/vc/lib

It should be a symlink to libGLESv2.so,  So you can just change the library that you are linking against.

There is a updated package submitted for the 10.x repo.  Hopefully will be up soon

Title: Re: libGLESv1_CM.so: file format not recognized
Post by: bmarkus on January 18, 2019, 09:47:51 PM
rpi-vc.tcz added to piCore 10.x repo
Title: Re: libGLESv1_CM.so: file format not recognized
Post by: NinjaCowboy on January 19, 2019, 09:14:35 AM
Yeah I noticed it was a symlink in the GitHub repo, and replaced it before trying to link. Thanks for addressing this problem in piCore 10.