Pandora How to build Libvpx (vp8) on Pandora


Farox

Certified Guru
Joined
Jan 8, 2009
Messages
2,429
Age
56
Location
Italy
Website
rbnet.it
Hi

i'm trying to add to libavcodec this vpx library.

I have tried using the standard configure way :

./configure --target=armv7-linux-gcc --prefix=/mnt/utmp/codeblocks/usr

but it didn't find the compiler saying:

Unable to invoke compiler: arm-none-linux-gnueabi-gcc -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

so after some trial and error i created a script with :


export CC='/mnt/utmp/codeblocks/usr/bin/gcc'
export LD='/mnt/utmp/codeblocks/usr/bin/ld'
export AS='/mnt/utmp/codeblocks/usr/bin/as'
export AR='/mnt/utmp/codeblocks/usr/bin/ar'

export LDFLAGS='-L/mnt/utmp/codeblocks/usr/lib'

./configure --target=armv7-linux-gcc --prefix=/mnt/utmp/codeblocks/usr

and with this the configure goes ok and write out the makefile.

But when i do 'make' it stops (after a while...) at linking fase saying undefined reference to many things.
 
If you are compiling using codeblocks PND, I think you should remove the "--target" statement (and the export statement). Alternativement, you can try to change you LDFLAGS to

Code:
export LDFLAGS='-Wl,-L/mnt/utmp/codeblocks/usr/lib'
 
Thanks ptitSeb

I have now build the lib with ./configure  --prefix=/mnt/utmp/codeblocks/usr

but this build the lib in generic mode i.e. is not optimized for our cpu.

If you type ./configure --help

you could see some supported targets : armv5, armv6, mips32, ppc32, ppc64, sparc, x86, x86_64, universal, generic and

armv7-android-gcc

armv7-darwin-gcc

armv7-linux-rvct

armv7-linuc-gcc

armv7-none-rvct

any idea to how build an optimized version ?
 
adding -Wl, result in a message "Toolchain is unable to link executables" and unrecognised option '-Wl, -L/mnt/utmp/codeblocks/usr/lib'
 
Thanks ptitSeb

I have now build the lib with ./configure  --prefix=/mnt/utmp/codeblocks/usr

but this build the lib in generic mode i.e. is not optimized for our cpu.

If you type ./configure --help

you could see some supported targets : armv5, armv6, mips32, ppc32, ppc64, sparc, x86, x86_64, universal, generic and

armv7-android-gcc

armv7-darwin-gcc

armv7-linux-rvct

armv7-linuc-gcc

armv7-none-rvct

any idea to how build an optimized version ?
the "--target" is normaly used for cross compiling. I think the option to select processor optimization should be elsewhere (if it's a standard configure).

adding -Wl, result in a message "Toolchain is unable to link executables" and unrecognised option '-Wl, -L/mnt/utmp/codeblocks/usr/lib'
Oh, sorry, I have put the line by heart, I'll check (just to be sure, there is no space between the comma and the hyphen, well, there is no space in the line at all)
 
Just discovered that is not possible to build shared versions of this lib but only static even using generic cpu...it's say ..enabled-shared only supported on ELF now.
 
ok i managed to build an optimized (armv7-linux-gcc) version but only in static mode.

this is the script used:

Code:
export CC='/mnt/utmp/codeblocks/usr/bin/gcc' 
export LD='/mnt/utmp/codeblocks/usr/bin/ld'
export AS='/mnt/utmp/codeblocks/usr/bin/as'
export AR='/mnt/utmp/codeblocks/usr/bin/ar' 
export NM='/mnt/utmp/codeblocks/usr/bin/nm' 
export STRIP='/mnt/utmp/codeblocks/usr/bin/strip' 

export LDFLAGS='-L/mnt/utmp/codeblocks/usr/lib'

./configure --target=armv7-linux-gcc  --disable-examples --prefix=/mnt/utmp/codeblocks/usr
 
Back
Top