[MPlayer-users] Cross-compilation

Eric Nelson eric.nelson at boundarydevices.com
Tue Aug 14 22:59:03 CEST 2007


ScriptInstallation.in wrote:
> On 8/14/07, Eric Nelson <eric.nelson at boundarydevices.com> wrote:
>> 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.
>>
>> 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
> 
> 
> 
> Check if you have a file or folder with name mplayer in /usr/local/bin
> 
> Just rename it
> 
> mv /usr/local/bin/mplayer /usr/local/bin/mplayer_old
> 
> then try installing again and see what happens.

I don't. On my build machine, mplayer is installed properly in
/usr/bin.

I'm trying to 'install' mplayer, headers and ancillary files into a
cross-compilation tree in preparation for making a distribution
for an ARM-based target machine.
	http://boundarydevices.com/neon270.php

In order to do this properly, I need to leave off the --prefix
directive to prevent leakage of information from my build environment
into the executable, then use DESTDIR to tell make where to place
the compiled images.

All of this works beautifully with the addition of a single character
(question mark) into the configure script. From there it gets copied
into config.mak and is referred to by the Makefile(s).

Rathann indicated that overriding DESTDIR works without the
question mark, but I'm not sure what kind of magic that requires.

The line in config.mak seems pretty un-ambiguous and I don't
know of a way to override it:
	DESTDIR =

I guess that's not entirely true. Right now, I'm overriding it
with the patch I submitted ;)

Eric



More information about the MPlayer-users mailing list