[fceux] error while loading shared libraries: libGL.so.1

Problems with packages? Post here, using [tags] of the package name.

[fceux] error while loading shared libraries: libGL.so.1

Postby msalerno » Thu Apr 17, 2014 12:39 am

Linux mycubox-i 3.10.30-15-ARCH #1 SMP armv7l GNU/Linux
Cubox-i4-Pro

I'm looking to see where I can find the PKGBUILD so I can get fceux working on my cubox-i and contribute so others can too. The only problem is that I can't find it in the git repo.

https://github.com/archlinuxarm/PKGBUIL ... /community

Also, I'm hoping that someone more knowledgeable than me can explain why it's not finding the libGL.so.1 library.

Thanks

$this->bbcode_second_pass_code('', '
$ /usr/bin/fceux
/usr/bin/fceux: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

# find / -name libGL.so.1
/opt/fsl/lib/libGL.so.1

# readelf -d /usr/bin/fceux | grep libGL.so.1
0x00000001 (NEEDED) Shared library: [libGL.so.1]

# pacman -Qo /opt/fsl/lib/libGL.so.1
/opt/fsl/lib/libGL.so.1 is owned by gpu-viv-bin-mx6q-fb 3.10.17_1.0.0_beta-1

# ldconfig -p | perl -lne '/.*?> (.*)\/.*$/;print $1' | sort -ui
/opt/fsl/lib
/usr/lib
')
msalerno
 
Posts: 20
Joined: Wed Apr 16, 2014 11:13 pm

Re: [fceux] error while loading shared libraries: libGL.so.1

Postby WarheadsSE » Thu Apr 17, 2014 1:57 pm

If it is not it git, it is coming from ABS (and svntogit) @ Arch.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [fceux] error while loading shared libraries: libGL.so.1

Postby msalerno » Thu Apr 17, 2014 2:19 pm

This does work if I copy /opt/fsl/lib/libGL.so.1 to /usr/lib/ and rerun ldconfig, however, I would prefer not to have to do that since it should find it in the /opt/fsl/lib directory.
msalerno
 
Posts: 20
Joined: Wed Apr 16, 2014 11:13 pm

Re: [fceux] error while loading shared libraries: libGL.so.1

Postby WarheadsSE » Thu Apr 17, 2014 5:24 pm

It does seem like there should be symlinks to those /opt/fsl/* ..
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [fceux] error while loading shared libraries: libGL.so.1

Postby pepedog » Thu Apr 17, 2014 6:03 pm

I have been thinking about those symlinks, I just don't know enough. Do know you need them to run X, or remove gpu-viv-bin-mx6q-fb and install mesa and mesa-libgl
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [fceux] error while loading shared libraries: libGL.so.1

Postby moonman » Thu Apr 17, 2014 8:58 pm

Was the path to these libs added to /etc/ld.so.conf.d/
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [fceux] error while loading shared libraries: libGL.so.1

Postby msalerno » Thu Apr 17, 2014 10:33 pm

Yes, the path is listed in the output of ldconfig (see first post). The conf files located in /etc/ld.so.conf.d/

Each one of these files contains the path: /opt/fsl/lib
$this->bbcode_second_pass_code('', '/etc/ld.so.conf.d/firmware-imx.conf is owned by firmware-imx 3.5.7_1.0.0-2
/etc/ld.so.conf.d/gpu-viv-bin-mx6q.conf is owned by gpu-viv-bin-mx6q-fb 3.10.17_1.0.0_beta-1
/etc/ld.so.conf.d/imx-vpu.conf is owned by imx-vpu 3.10.17_1.0.0-1
/etc/ld.so.conf.d/libfslvpuwrap.conf is owned by libfslvpuwrap 3.10.17_1.0.0-1
')
msalerno
 
Posts: 20
Joined: Wed Apr 16, 2014 11:13 pm

Re: [fceux] error while loading shared libraries: libGL.so.1

Postby pepedog » Thu Apr 17, 2014 10:59 pm

Didn't this problem of ldconfig ignoring this crop up awhile ago?
viewtopic.php?f=15&t=5031
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: [fceux] error while loading shared libraries: libGL.so.1

Postby msalerno » Fri Apr 18, 2014 12:17 am

Setting:
$this->bbcode_second_pass_code('', 'export LD_LIBRARY_PATH=/opt/fsl/lib/')
in the:
$this->bbcode_second_pass_code('', '/etc/bash.bashrc')
worked like a charm.
msalerno
 
Posts: 20
Joined: Wed Apr 16, 2014 11:13 pm

Re: [fceux] error while loading shared libraries: libGL.so.1

Postby CrawX » Wed Apr 23, 2014 3:13 pm

It seems like ldconfig is using the soname from the file itself and therefore knows the library as libGL.so.1.2 (which you can see by $this->bbcode_second_pass_code('', 'ldconfig -p | grep libGL.so')
ldd can therefore not find libGL.so.1

If you're using the LD_LIBRARY_PATH, ldd also looks for the filename there (maybe it does both lookups, not sure).
This means that ldd will find the libGL.so.1

We can not recompile gpu-viv-bin-mx6q as it is distributed as a binary, therefore I'd suggest rebuilding the package. (Not in the repo but on your local machine).

Not sure how this incompatibility can be resolved better, maybe WarheadSE or kmihelich can say something about that.

Best regards,
CruX
CrawX
 
Posts: 13
Joined: Wed Jun 12, 2013 7:16 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 6 guests