Author Topic: Moving libSDL* library files from Dingux to BNN?  (Read 14061 times)

QBJECT (OP)

Moving libSDL* library files from Dingux to BNN?
« on: October 08, 2010, 04:17:44 pm »
Has anyone tried copying missing libs from Dingux to a BNN with the base OpenWRT installation?

I just noticed that most of the Dingoo games that won't run on my BNN give an error about a missing libSDL module of one sort or another. I checked /usr/lib and they definitely aren't there, so I thought I might be able to make things go by just copying the missing parts from a Dingoo (e.g.: libSDL_mixer-1.2.so.0 so I can run Meritous).

I don't have a Dingoo of my own (yet, anyhow) so I haven't been able to try it myself.

zear

  • * Moderator
  • Posts: 2378
Re: Moving libSDL* library files from Dingux to BNN?
« Reply #1 on: October 08, 2010, 04:26:27 pm »
Yes, I did it and it worked. But it was on an ancient version of owrt, no idea if it will still work nowadays.

QBJECT (OP)

Re: Moving libSDL* library files from Dingux to BNN?
« Reply #2 on: October 08, 2010, 04:46:35 pm »
Hmm. Very cool. Do you know of a way to mount the Dingux rootfs file (doesn't have to be on the BNN; I have an Intel machine with #!) so that I can poke around and dig up those bits?

zear

  • * Moderator
  • Posts: 2378
Re: Moving libSDL* library files from Dingux to BNN?
« Reply #3 on: October 08, 2010, 04:59:18 pm »
Just use the libs from the dingux toolchain, they are the same.

QBJECT (OP)

Re: Moving libSDL* library files from Dingux to BNN?
« Reply #4 on: October 08, 2010, 06:21:36 pm »
Ah! Thanks. Can't wait to try this out tonight.

QBJECT (OP)

Re: Moving libSDL* library files from Dingux to BNN?
« Reply #5 on: October 11, 2010, 08:57:42 pm »
Oh kay. Tried it out and instead of getting a Not Found issue I get (for instance):

Code: [Select]
./cdogs.dge: '/usr/lib/libSDL_mixer-1.2.so.0' is not an ELF file
./cdogs.dge: can't load library 'libSDL_mixer-1.2.so.0'
...and again the program won't load.  ???

darfgarf

  • Guest
Re: Moving libSDL* library files from Dingux to BNN?
« Reply #6 on: October 11, 2010, 09:19:07 pm »
...well that's odd, you did take the libs from the dingux toolchain right? and not the sdl libs from the native toolchain?

QBJECT (OP)

Re: Moving libSDL* library files from Dingux to BNN?
« Reply #7 on: October 11, 2010, 09:26:38 pm »
...well that's odd, you did take the libs from the dingux toolchain right? and not the sdl libs from the native toolchain?

That's correct. Got the "Latest toolchain" here: http://code.google.com/p/dingoo-linux/downloads/list
Unpacked with PeaZip on a Windows XP machine at work and put it on a FAT microSD card to move to the NN. Could the involvement of Windows have messed up the magic bytes of the ELF file?

zear

  • * Moderator
  • Posts: 2378
Re: Moving libSDL* library files from Dingux to BNN?
« Reply #8 on: October 11, 2010, 09:46:51 pm »
FAT most likely removed the symlinks.

QBJECT (OP)

Re: Moving libSDL* library files from Dingux to BNN?
« Reply #9 on: October 11, 2010, 09:49:15 pm »
Then I'll try unpacking on the NN itself tonight to see if that makes a difference.

zear

  • * Moderator
  • Posts: 2378
Re: Moving libSDL* library files from Dingux to BNN?
« Reply #10 on: October 11, 2010, 09:51:17 pm »
in any case
Code: [Select]
ln -s /usr/lib/[right_lib] /usr/lib/libSDL_mixer-1.2.so.0should fix it.

QBJECT (OP)

Re: Moving libSDL* library files from Dingux to BNN?
« Reply #11 on: October 11, 2010, 09:54:30 pm »
I'm confused. If the executable is looking for /usr/lib/libSDL_mixer-1.2.so.0 and the real file is /usr/lib/libSDL_mixer-1.2.so.0 wouldn't I be entering:
Code: [Select]
ln -s /usr/lib/libSDL_mixer-1.2.so.0 /usr/lib/libSDL_mixer-1.2.so.0What good would that do?

zear

  • * Moderator
  • Posts: 2378
Re: Moving libSDL* library files from Dingux to BNN?
« Reply #12 on: October 11, 2010, 09:59:58 pm »
libSDL_mixer-1.2.so.0 is not a real file. It is a symlink which points to libSDL_mixer-1.2.so.0.2.6.
You can check that symlink with file, it is most likely broken.

Here's how my PC sees it:
Code: [Select]
$ file /opt/mipsel-linux-uclibc/usr/lib/libSDL_mixer-1.2.so.0
/opt/mipsel-linux-uclibc/usr/lib/libSDL_mixer-1.2.so.0: symbolic link to `libSDL_mixer-1.2.so.0.2.6'

QBJECT (OP)

Re: Moving libSDL* library files from Dingux to BNN?
« Reply #13 on: October 11, 2010, 10:06:53 pm »
Oh oh ohh! That would certainly explain it.

QBJECT (OP)

Re: Moving libSDL* library files from Dingux to BNN?
« Reply #14 on: October 12, 2010, 11:44:55 pm »
Hah! It worked. So far I've moved libSDL_mixer, libSDL_net, and libmad to get Meritous and OpenTyrian running, and they both seem smooth and happy.

I did have to redo the symlinks like zear said, but that was easy-peasy. Thanks guys.

 

Post a new topic