WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: libGLESv1_CM.so: file format not recognized  (Read 2399 times)

Offline NinjaCowboy

  • Newbie
  • *
  • Posts: 36
libGLESv1_CM.so: file format not recognized
« on: January 18, 2019, 07: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

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1267
Re: libGLESv1_CM.so: file format not recognized
« Reply #1 on: January 18, 2019, 11: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


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: libGLESv1_CM.so: file format not recognized
« Reply #2 on: January 19, 2019, 12:47:51 AM »
rpi-vc.tcz added to piCore 10.x repo
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline NinjaCowboy

  • Newbie
  • *
  • Posts: 36
Re: libGLESv1_CM.so: file format not recognized
« Reply #3 on: January 19, 2019, 12:14:35 PM »
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.