NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MPlayer compilation - taking ages, hardly using CPU



On 5 Dec 2008 at 16:50, Sharif Oerton wrote:

> On Fri, Dec 5, 2008 at 10:17 AM, Adam Hoka <adam.hoka%gmail.com@localhost> 
> wrote:
> > Well, are you trying to compile from pkgsrc or by hand?
> > I suggest doing the former.
> 
> Wow! Now I think NetBSD is even more awesome! I had no idea what
> pkgsrc could do until now.
> 
> Okay, so I've downloaded the stable branch (Q32008) of pkgsrc, and
> tried to build mplayer; had to allow a certain license, no problem,
> but when it comes to the actual build, it fails, and I have no idea
> why. Output from make:
> 
> In file included from mplayer.c:169:
> stream/stream_dvd.h:19: error: expected specifier-qualifier-list
> before 'dvd_reader_t'
> mplayer.c: In function 'init_vo_spudec':
> mplayer.c:1004: error: 'dvd_priv_t' has no member named 'cur_pgc'
> gmake: *** [mplayer.o] Error 1
> *** Error code 2
> 
> Stop.
> make: stopped in /usr/pkgsrc/multimedia/mplayer
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/pkgsrc/multimedia/mplayer
> 
> I've Googled the error messages to no avail (a couple of hits, but
> none in English, and machine translation is still in nappies as far as
> I'm concerned :)).
> 
> I imagine I've just stupidly missed out something important; after
> unpacking the pkgsrc tarball into /usr, cd-ing into
> /usr/pkgsrc/multimedia/mplayer and unsetting $PKG_PATH all I did was
> run make. Have I missed anything obvious?
> 
> If not, any other ideas as to what is going wrong?
> 
> Any help is much appreciated.

Just so you know it should build ok, and on my Celeron-2400 server 
with NetBSD 4.0.1, used for building packages there are currently 889 
installed packages including modular-xorg and gnome, "pkg_info -n 
mplayer" gives:

Information for mplayer-1.0rc10nb8:

Requires:
realplayer-codecs>=8nb2
win32-codecs>=011227
mplayer-share>=1.0rc10
arts>=1.5.8nb1
cdparanoia>=3.0.9.8nb5
libdv>=0.104nb2
libdvdread>=0.9.5nb2
esound>=0.2.35nb1
libungif>=4.1.3nb1
jpeg>=6bnb2
libmad>=0.15.1bnb1
png>=1.2.9nb2
SDL>=1.2.10
aalib>=1.4.0.5nb2
nas>=1.7bnb2
libtheora>=1.0alpha3nb1
x264-devel>=20060127
xvidcore>=1.1.0nb1
libXt>=1.0.0
libXinerama>=1.0.1
libXvMC>=1.0.2
libXv>=1.0.1
libXxf86dga>=1.0.1
libXxf86vm>=1.0.1
MesaLib>=7.0.3
fontconfig>=2.4.2
freetype2>=2.1.10nb1
libX11>=1.1

So all above had to be pulled in prior to mplayer build completion. 

Many problems I've had during installs and updates is down to 
forgetting to clean up afterwards. Pkgclean from /usr/pkgsrc/pkgtools
is faster than "make clean". Other than that there seem to be a few 
packages (not mplayer) that still required to be built as root or 
failed after install during cleanup due to being unable to delete a 
file or directory but these have been fairly obvious and easy to 
resolve problems. As well as checking log in work directory, I 
normally use "script" to retry failed builds as invariably the real 
problem is off screen.

I think you need to provide a bit more information as to what you 
already have installed. If you have already installed packages  
manually rather than via pkg_add or pkgsrc where have these been 
located so they don't conflict with NetBSD base system or pkgsrc (I 
use /usr/local for a few non pkgsrc standalone programs).

David





Home | Main Index | Thread Index | Old Index