[MPlayer-users] Cross-compilation

Eric Nelson eric.nelson at boundarydevices.com
Tue Aug 14 20:28:27 CEST 2007


Dominik 'Rathann' Mierzejewski wrote:
> On Tuesday, 14 August 2007 at 15:30, Eric Nelson wrote:
>> Hello, all.
>>
>> The patch below allows override of the DESTDIR symbol when doing
>> "make install". This is useful when creating a filesystem for an
>> embedded target.
>>
>> Eric Nelson
>> Boundary Devices
>>
>> --- mplayer.orig/configure	2007-08-13 18:16:26.000000000 -0700
>> +++ mplayer/configure	2007-08-13 18:18:47.000000000 -0700
>> @@ -7432,7 +7432,7 @@
>>  LANG = C
>>  MAN_LANG = $MAN_LANG
>>  TARGET_OS = $system_name
>> -DESTDIR =
>> +DESTDIR ?=
>>  prefix = \$(DESTDIR)$_prefix
>>  BINDIR = \$(DESTDIR)$_bindir
>>  DATADIR = \$(DESTDIR)$_datadir
> 
> I don't think this is necessary. Overriding DESTDIR during make install
> works just fine without this patch. In fact, it's been working for years.
> 

I must be missing something then. Without the question mark, I get the
results below (i.e. "Permission denied" trying to copy files to /usr/local/bin).

Can you post an example?

Thanks in advance,


Eric

~/tmp/userland/build/MPlayer-1.0rc1$ DESTDIR=/home/ericn/userland/install make install
make -C libavformat LIBPREF=lib LIBSUF=.a
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libavformat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libavformat'
make -C libavcodec LIBPREF=lib LIBSUF=.a
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libavcodec'
make[1]: `snow.o' is up to date.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libavcodec'
make -C libavutil LIBPREF=lib LIBSUF=.a
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libavutil'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libavutil'
make -C libmpdemux
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libmpdemux'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libmpdemux'
make -C stream
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/stream'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/stream'
make -C libmpcodecs
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libmpcodecs'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libmpcodecs'
make -C libao2
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libao2'
make[1]: `libao2.a' is up to date.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libao2'
make -C osdep
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/osdep'
make[1]: `libosdep.a' is up to date.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/osdep'
make -C libswscale LIBPREF=lib LIBSUF=.a
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libswscale'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libswscale'
make -C input
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/input'
make[1]: `libinput.a' is up to date.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/input'
make -C libvo
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libvo'
make[1]: `libvo.a' is up to date.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libvo'
make -C libaf
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libaf'
make[1]: `af.o' is up to date.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libaf'
make -C liba52
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/liba52'
make[1]: `liba52.a' is up to date.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/liba52'
make -C libmpeg2
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libmpeg2'
make[1]: `libmpeg2.a' is up to date.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libmpeg2'
make -C libfaad2
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libfaad2'
make[1]: `libfaad2.a' is up to date.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libfaad2'
make -C libass
make[1]: Entering directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libass'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ericn/tmp/userland/build/MPlayer-1.0rc1/libass'
install -d /usr/local/bin
install -m 755 mplayer /usr/local/bin/mplayer
install: cannot create regular file `/usr/local/bin/mplayer': Permission denied
make: *** [install] Error 1




More information about the MPlayer-users mailing list