Author Topic: SDK and linking against libvorbis  (Read 2014 times)

trashHeap (OP)

SDK and linking against libvorbis
« on: December 19, 2013, 11:10:30 pm »
I am currently trying to cross compile a game whose only real dependencies are SDL and libvorbis.

I am manually overriding the library prefixes with parameter to the ./configure script, and it works smashingly for SDL. However no matter how much I try pointing it at -L/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/lib for libvorbis, it throws this error at build time:

libtool: link: cannot find the library `/home/mth/gcw0-buildroot/output/build/libvorbis-1.3.3/lib/libvorbis.la' or unhandled argument `/home/mth/gcw0-buildroot/output/build/libvorbis-1.3.3/lib/libvorbis.la'

Which confuses the heck out of me, because there is no user 'mth' on the system. Any advice?

trashHeap (OP)

Re: SDK and linking against libvorbis
« Reply #1 on: December 19, 2013, 11:24:53 pm »
Manually making the path from the error message, and copying the library from the SDK to that location clears the issue. It makes me suspect there is something wonky with that library in the SDK.

trashHeap (OP)

Re: SDK and linking against libvorbis
« Reply #2 on: December 19, 2013, 11:49:47 pm »
Urff.. this should have been in the GCW development forum. Can I get a mod to move it?
« Last Edit: December 19, 2013, 11:55:03 pm by trashHeap »

pcercuei

  • ***
  • Posts: 1395
    • GitHub
Re: SDK and linking against libvorbis
« Reply #3 on: December 20, 2013, 01:16:08 am »
You're doing it wrong, try this:
Code: [Select]
./configure --host=mipsel-linux

trashHeap (OP)

Re: SDK and linking against libvorbis
« Reply #4 on: December 20, 2013, 01:32:29 am »
I have already done that. As I said its doing all libraries fine except libvorbis. For the record this is my configure line:

(compiling Exult to run Ultima 7)

./configure --host=mipsel-linux --disable-tools --with-sdl-prefix=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/ --with-vorbis=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/ --with-ogg=/opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/

This links against libogg and libsdl perfectly, libvorbis.la however still must be moved to the aforementioned /home/mth/gcw0-buildroot/output/build/libvorbis-1.3.3/lib/libvorbis.la

And again I have no 'mth' user on my system. So I don't see how my configure line could invent such a directory.

This is on Debian Wheezy with the current version of the SDK.
« Last Edit: December 20, 2013, 01:38:07 am by trashHeap »

pcercuei

  • ***
  • Posts: 1395
    • GitHub
Re: SDK and linking against libvorbis
« Reply #5 on: December 20, 2013, 02:37:47 am »
Ok, I thought you were hacking the ./configure script directly :)
We already have some people who are running into issues with 'libtool', it's under investigation. For the record I never had those issues (under Debian Jessie). The next firmware will be based on a more recent of Buildroot (2013.11 intead of 2012.11) so hopefully it's been fixed upstream. PM me if you want to test a more recent toolchain, or wait until we release it in january.

 

Post a new topic