Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started 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.
$ 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
$ xxd -g 1 /usr/local/lib/libGLESv1_CM.so
00000000: 6c 69 62 47 4c 45 53 76 32 2e 73 6f libGLESv2.so
-
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
-
rpi-vc.tcz added to piCore 10.x repo
-
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.