PDA

Visualizza la versione completa : Mplayer, errore in compilazione


Tigre851
15-01-2006, 20:50
Ciao!
Non riesco a compilare mplayer; ho provato a installare tutti i pacchetti dev che mi pareva potessero centrare qualcosa ma l'errore non cambia. Potete aiutarmi? grazie!

gcc-3.4 -c -I../libvo -I../../libvo -fno-PIC -O4 -march=athlon-xp -mtune=athlon-xp -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I/usr/include/freetype2 -o mplayer.o mplayer.c
In file included from mplayer.c:51:
libvo/video_out.h:66: error: parse error before "uint32_t"
libvo/video_out.h:66: warning: no semicolon at end of struct or union
libvo/video_out.h:67: warning: data definition has no type or storage class
libvo/video_out.h:68: error: parse error before '}' token
libvo/video_out.h:68: warning: data definition has no type or storage class
libvo/video_out.h:108: error: parse error before "uint32_t"
libvo/video_out.h:108: warning: no semicolon at end of struct or union
libvo/video_out.h:119: error: parse error before '*' token
libvo/video_out.h:119: error: parse error before "width"
libvo/video_out.h:121: error: `uint32_t' declared as function returning a function
libvo/video_out.h:121: warning: data definition has no type or storage class
libvo/video_out.h:126: error: parse error before '*' token
libvo/video_out.h:126: error: parse error before "request"
libvo/video_out.h:126: error: `uint32_t' declared as function returning a function
libvo/video_out.h:126: warning: data definition has no type or storage class
libvo/video_out.h:133: error: parse error before '*' token
libvo/video_out.h:133: error: parse error before '*' token
libvo/video_out.h:133: error: `uint32_t' declared as function returning a function
libvo/video_out.h:133: warning: data definition has no type or storage class
libvo/video_out.h:143: error: parse error before '*' token
libvo/video_out.h:143: error: parse error before '*' token
libvo/video_out.h:143: error: `uint32_t' declared as function returning a function
libvo/video_out.h:143: warning: data definition has no type or storage class
libvo/video_out.h:166: error: parse error before '}' token
libvo/video_out.h:166: warning: data definition has no type or storage class
libvo/video_out.h:171: error: parse error before '*' token
libvo/video_out.h:171: warning: data definition has no type or storage class
libvo/video_out.h:175: error: parse error before '*' token
libvo/video_out.h:175: warning: data definition has no type or storage class
In file included from mplayer.c:57:
libvo/x11_common.h:63: error: parse error before "vo_x11_set_equalizer"
libvo/x11_common.h:63: warning: data definition has no type or storage class
libvo/x11_common.h:64: error: parse error before "vo_x11_get_equalizer"
libvo/x11_common.h:64: warning: data definition has no type or storage class
libvo/x11_common.h:85: error: parse error before "xv_port"
libvo/x11_common.h:86: error: parse error before "xv_port"
In file included from mplayer.c:72:
spudec.h:18: error: parse error before "vo_functions_t"
In file included from libmpdemux/dvbin.h:11,
from mplayer.c:113:
libmpdemux/dvb_defaults.h:73:3: warning: #warning No DVB-T country defined in dvb_defaults.h, defaulting to UK. Ignore this if using Satellite or Cable.
In file included from /usr/include/netinet/in.h:23,
from /usr/include/netdb.h:28,
from libmpdemux/network.h:16,
from libmpdemux/stream.h:52,
from libmpdemux/dvbin.h:12,
from mplayer.c:113:
/usr/include/stdint.h:52: error: 'uint32_t' redeclared as different kind of symbol
libvo/video_out.h:143: error: previous declaration of 'uint32_t' was here
/usr/include/stdint.h:52: error: 'uint32_t' redeclared as different kind of symbol
libvo/video_out.h:143: error: previous declaration of 'uint32_t' was here
mplayer.c:198: error: parse error before '*' token
mplayer.c:198: warning: data definition has no type or storage class
mplayer.c: In function `uninit_player':
mplayer.c:436: error: request for member `uninit' in something not a structure or union
mplayer.c: In function `main':
mplayer.c:2485: error: request for member `check_events' in something not a structure or union
mplayer.c:2503: error: request for member `flip_page' in something not a structure or union
mplayer.c:2514: error: request for member `control' in something not a structure or union
mplayer.c:2649: error: request for member `control' in something not a structure or union
mplayer.c:2655: error: request for member `check_events' in something not a structure or union
mplayer.c:2677: error: request for member `control' in something not a structure or union
mplayer.c:3284: error: request for member `control' in something not a structure or union
mplayer.c:3289: error: request for member `control' in something not a structure or union
mplayer.c:3300: error: request for member `control' in something not a structure or union
mplayer.c:3310: error: request for member `control' in something not a structure or union
mplayer.c:3318: error: request for member `control' in something not a structure or union
mplayer.c:3479: error: request for member `control' in something not a structure or union
mplayer.c:3788: error: request for member `control' in something not a structure or union
mplayer.c: At top level:
libvo/video_out.h:175: warning: array 'video_out_drivers' assumed to have one element
make: *** [mplayer.o] Error 1

U-bahn
15-01-2006, 21:12
-fno-PIC -O4 -march=athlon-xp -mtune=athlon-xp -pipe -ffast-math -fomit-frame-pointerqueste le hai specificate te? se sì, prova senza...

andy caps
16-01-2006, 00:06
se hai debian comunque conviene installare il pacchetto di marillat

mettendo nel sources.list questa riga
deb ftp://ftp.nerim.net/debian-marillat/ sid main ( sarge al posto di sid se hai sarge )
altrimenti prova a installare automake1.9 ed autoconf oltre hai kernel-headers esatti del tuo kernel

Tigre851
16-01-2006, 01:50
Ciao! grazie per la risposta! le opzioni di compilazione mi vengono generate da configure, inoltre uso ubuntu. Conosci un repository per ubuntu dove posso trovare il pacchetto di mplayer? perchè ho provato ad installare anche automake e autoconf ma l'errore rimane lo stesso. Grazie ancora, ciao!

andy caps
16-01-2006, 02:05
per ubuntu se hai l'ultima versione basta decommentare i server in /etc/apt mi sembra

universe multiverse main

altrimenti va bene anche quella riga

U-bahn
16-01-2006, 02:22
Originariamente inviato da Tigre851
Ciao! grazie per la risposta! le opzioni di compilazione mi vengono generate da configure, inoltre uso ubuntu.
mplayer non usa (ma potrei anche sbagliarmi...stò andando a memoria) quelle opzioni di ottimizzazione...controlla di non avere le C/CXXFLAGS definite (dai echo $C{,XX}FLAGS )

dai anche export C{,XX}FLAGS="-O3 -march=athlon-xp" e riprova a compilare (anche se, come ti è già stato detto, fai certamente prima ad installare quello precompilato)
perchè ho provato ad installare anche automake e autoconf ma l'errore rimane lo stesso. Grazie ancora, ciao! sì, ma direi che quell'errore può essere dovuto alle opzioni passate a configure, alle C/CXXFLAGS o, magari, il pacchetto potrebbe essere corrotto

nickcrazy
16-01-2006, 12:23
Questo è il mio sources list, ci trovi pure anche Mplayer:


deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted

deb http://archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://archive.ubuntu.com/ubuntu breezy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu breezy-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team

deb http://archive.ubuntu.com/ubuntu breezy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu breezy universe multiverse

## Security Updates
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

deb http://security.ubuntu.com/ubuntu breezy-security universe multiverse
deb-src http://security.ubuntu.com/ubuntu breezy-security universe multiverse

## official backports
deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse

## plf primary repo
## http 100mbit/s mirror provided thanks to OVH http://ovh.com
deb http://packages.freecontrib.org/ubuntu/plf/ breezy free non-free
deb-src http://packages.freecontrib.org/ubuntu/plf/ breezy free non-free

## plf secondary repo. Use if primary repo is offline.
## FTP mirror from http://free.fr (french ISP)
## deb ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ breezy free non-free
## deb-src ftp://ftp.free.fr/pub/Distributions_Linux/plf/ubuntu/plf/ breezy free non-free

## plf mirror. Use if primary and secondary are offline
## deb http://public.planetmirror.com/pub/plf/ubuntu/plf/ breezy free non-free

##
## Use the following repos only if you need them.
## To use one remove the "##" from the line that starts with "## deb".
##

## wine
deb http://wine.sourceforge.net/apt/ binary/

## opera web browser
deb http://deb.opera.com/opera/ etch non-free

## Oo2 final - you can optionally use this one until OOo2 final arrives in backports
deb http://people.ubuntu.com/~doko/OOo2 ./

## mozilla language pack
deb http://anakonda.altervista.org/debian packages/
deb-src http://anakonda.altervista.org/debian sources/

Tigre851
16-01-2006, 14:00
Grazie ragazzi ora funziona tutto! ho risolto con il repository multiverse. grazie ancora, Ciao!

Loading