Erro ao compilar mplayer [RESOLVIDO]

1. Erro ao compilar mplayer [RESOLVIDO]

Rodrigo Namba Dake
shundake

(usa Arch Linux)

Enviado em 27/03/2009 - 14:17h

Boa tarde amigos... Estou com um pequeno problema na compilação do mplayer nó meu note.

vobsub.c:231: error: conflicting types for 'getline'
/usr/include/bits/stdio.h:103: error: previous definition of 'getline' was here
make: *** [vobsub.o] Error 1

Já procurei nos sites, mas só encontrei pessoas com o mesmo problema e nenhuma solução >.<
Espero que alguém possa me ajudar ^^


  


2. MELHOR RESPOSTA

Perfil removido
removido

(usa Nenhuma)

Enviado em 31/03/2009 - 00:18h

tenta usar o slackbuild

3. Re: Erro ao compilar mplayer [RESOLVIDO]

Otávio
octopos

(usa Debian)

Enviado em 27/03/2009 - 14:40h

Já tive um problema assim +- assim, mas era com o ogre3d , alguns falaram que era o Makefile errado, outros libs do OpenGl, eu abri o arquivo com treta e arrumei os heads, funcionou ^^.

Enfim, fala-me qual a versão que está usando, manda o link de onde baixou e cola as linhas 230,231,232 do
vobsub.c , só para eu ter um leve idéia :P

Abraços


4. Então...

Rodrigo Namba Dake
shundake

(usa Arch Linux)

Enviado em 30/03/2009 - 11:52h

Rapaz.... Acho que não estou entendo mais nada =/. Assim, liguei o note hoje, já que nesse final de semana não o liguei uma única vez. Mandei um "make", para eu poder postar o erro aqui... e o erro sumiu O_O. Mas apareceu outro... õ.Ô Esse aqui:

make -C libvo libvo.a
make[1]: Entering directory `/usr/src/MPlayer-1.0rc2/libvo'
cc -I../libavcodec -I../libavformat -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/X11/include -I/usr/include/ -c -o vo_vesa.o vo_vesa.c
In file included from vo_vesa.c:20:
gtf.h:4:17: error: vbe.h: No such file or directory
In file included from vo_vesa.c:20:
gtf.h:46: warning: 'struct VesaCRTCInfoBlock' declared inside parameter list
gtf.h:46: warning: its scope is only this definition or declaration, which is probably not what you want
vo_vesa.c:59: warning: redundant redeclaration of 'monitor_hfreq_str'
video_out.h:253: warning: previous declaration of 'monitor_hfreq_str' was here
vo_vesa.c:60: warning: redundant redeclaration of 'monitor_vfreq_str'
video_out.h:254: warning: previous declaration of 'monitor_vfreq_str' was here
vo_vesa.c:61: warning: redundant redeclaration of 'monitor_dotclock_str'
video_out.h:255: warning: previous declaration of 'monitor_dotclock_str' was here
vo_vesa.c:130: error: 'NEO_PAL' undeclared here (not in a function)
vo_vesa.c: In function 'vbeErrToStr':
vo_vesa.c:140: error: 'VBE_VESA_ERROR_MASK' undeclared (first use in this function)
vo_vesa.c:140: error: (Each undeclared identifier is reported only once
vo_vesa.c:140: error: for each function it appears in.)
vo_vesa.c:142: error: 'VBE_VESA_ERRCODE_MASK' undeclared (first use in this function)
vo_vesa.c:148: error: 'VBE_OK' undeclared (first use in this function)
vo_vesa.c:149: error: 'VBE_VM86_FAIL' undeclared (first use in this function)
vo_vesa.c:150: error: 'VBE_OUT_OF_DOS_MEM' undeclared (first use in this function)
vo_vesa.c:151: error: 'VBE_OUT_OF_MEM' undeclared (first use in this function)
vo_vesa.c:152: error: 'VBE_BROKEN_BIOS' undeclared (first use in this function)
vo_vesa.c: In function 'vesa_term':
vo_vesa.c:167: warning: implicit declaration of function 'vbeRestoreState'
vo_vesa.c:167: error: 'VBE_OK' undeclared (first use in this function)
vo_vesa.c:169: warning: implicit declaration of function 'vbeSetMode'
vo_vesa.c:171: warning: implicit declaration of function 'vbeUnmapVideoBuffer'
vo_vesa.c:173: warning: implicit declaration of function 'vbeDestroy'
vo_vesa.c: In function '__vbeSwitchBank':
vo_vesa.c:186: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:189: warning: implicit declaration of function 'vbeSetWindow'
vo_vesa.c:189: error: 'VBE_OK' undeclared (first use in this function)
vo_vesa.c:198: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: In function '__vbeSetPixel':
vo_vesa.c:203: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:204: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:205: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:206: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:207: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:209: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:214: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:215: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:216: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: In function '__vbeCopyData':
vo_vesa.c:260: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:262: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: In function 'draw_slice':
vo_vesa.c:282: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:290: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:291: warning: 'sws_scale_ordered' is deprecated (declared at ../libswscale/swscale.h:111)
vo_vesa.c: In function 'draw_alpha_32':
vo_vesa.c:301: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: In function 'draw_alpha_24':
vo_vesa.c:314: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: In function 'draw_alpha_16':
vo_vesa.c:327: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: In function 'draw_alpha_15':
vo_vesa.c:340: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: In function 'flip_page':
vo_vesa.c:392: warning: implicit declaration of function 'vbeSetDisplayStart'
vo_vesa.c:392: error: 'VBE_OK' undeclared (first use in this function)
vo_vesa.c: In function 'draw_frame':
vo_vesa.c:421: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:435: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:436: warning: 'sws_scale_ordered' is deprecated (declared at ../libswscale/swscale.h:111)
vo_vesa.c: In function 'parseSubDevice':
vo_vesa.c:455: error: 'NEO_NTSC' undeclared (first use in this function)
vo_vesa.c: In function 'paintBkGnd':
vo_vesa.c:481: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:482: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: In function 'clear_screen':
vo_vesa.c:509: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:510: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: In function 'model2str':
vo_vesa.c:523: error: 'memText' undeclared (first use in this function)
vo_vesa.c:524: error: 'memCGA' undeclared (first use in this function)
vo_vesa.c:525: error: 'memHercules' undeclared (first use in this function)
vo_vesa.c:526: error: 'memPL' undeclared (first use in this function)
vo_vesa.c:527: error: 'memPK' undeclared (first use in this function)
vo_vesa.c:528: error: 'mem256' undeclared (first use in this function)
vo_vesa.c:529: error: 'memRGB' undeclared (first use in this function)
vo_vesa.c:530: error: 'memYUV' undeclared (first use in this function)
vo_vesa.c: In function 'fillMultiBuffer':
vo_vesa.c:540: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:540: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c: At top level:
vo_vesa.c:555: warning: 'struct VesaCRTCInfoBlock' declared inside parameter list
vo_vesa.c: In function 'set_refresh':
vo_vesa.c:580: warning: passing argument 7 of 'GTF_calcTimings' from incompatible pointer type
vo_vesa.c:583: error: dereferencing pointer to incomplete type
vo_vesa.c:586: error: dereferencing pointer to incomplete type
vo_vesa.c:588: warning: implicit declaration of function 'vbeGetPixelClock'
vo_vesa.c:590: warning: passing argument 7 of 'GTF_calcTimings' from incompatible pointer type
vo_vesa.c:604: error: dereferencing pointer to incomplete type
vo_vesa.c: In function 'config':
vo_vesa.c:623: error: storage size of 'vib' isn't known
vo_vesa.c:625: error: storage size of 'vmib' isn't known
vo_vesa.c:626: error: storage size of 'crtc_pass' isn't known
vo_vesa.c:651: warning: implicit declaration of function 'vbeInit'
vo_vesa.c:651: error: 'VBE_OK' undeclared (first use in this function)
vo_vesa.c:653: warning: implicit declaration of function 'vbeGetControllerInfo'
vo_vesa.c:667: error: 'VBE_DAC_8BIT' undeclared (first use in this function)
vo_vesa.c:668: error: 'VBE_NONVGA_CRTC' undeclared (first use in this function)
vo_vesa.c:669: error: 'VBE_SNOWED_RAMDAC' undeclared (first use in this function)
vo_vesa.c:670: error: 'VBE_STEREOSCOPIC' undeclared (first use in this function)
vo_vesa.c:671: error: 'VBE_STEREO_EVC' undeclared (first use in this function)
vo_vesa.c:743: warning: implicit declaration of function 'vbeGetModeInfo'
vo_vesa.c:750: error: 'MODE_ATTR_COLOR' undeclared (first use in this function)
vo_vesa.c:750: error: 'MODE_ATTR_GRAPHICS' undeclared (first use in this function)
vo_vesa.c:752: error: 'memRGB' undeclared (first use in this function)
vo_vesa.c:782: warning: implicit declaration of function 'vbeGetMode'
vo_vesa.c:794: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:796: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:797: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:798: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:810: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:810: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:811: warning: pointer targets in passing argument 1 of 'aspect' differ in signedness
vo_vesa.c:811: warning: pointer targets in passing argument 2 of 'aspect' differ in signedness
vo_vesa.c:816: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:817: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:836: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:836: error: 'MODE_WIN_RELOCATABLE' undeclared (first use in this function)
vo_vesa.c:836: error: 'MODE_WIN_WRITEABLE' undeclared (first use in this function)
vo_vesa.c:839: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:843: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:843: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:843: error: 'MODE_ATTR_LINEAR' undeclared (first use in this function)
vo_vesa.c:848: warning: implicit declaration of function 'vbeMapVideoBuffer'
vo_vesa.c:848: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:848: warning: assignment makes pointer from integer without a cast
vo_vesa.c:857: error: 'VESA_MODE_USE_LINEAR' undeclared (first use in this function)
vo_vesa.c:859: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:881: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:881: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:886: warning: implicit declaration of function 'PhysToVirtSO'
vo_vesa.c:886: warning: assignment makes pointer from integer without a cast
vo_vesa.c:888: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:892: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:893: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:895: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:896: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:901: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:901: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:917: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:917: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:926: warning: implicit declaration of function 'vbeSaveState'
vo_vesa.c:939: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:939: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:953: warning: implicit declaration of function 'vbeSetTV'
vo_vesa.c:985: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:985: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:1045: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:1045: error: invalid use of undefined type 'struct VesaModeInfoBlock'
vo_vesa.c:1048: warning: implicit declaration of function 'vbeWriteString'
vo_vesa.c:626: warning: unused variable 'crtc_pass'
vo_vesa.c:625: warning: unused variable 'vmib'
vo_vesa.c:623: warning: unused variable 'vib'
make[1]: *** [vo_vesa.o] Error 1
make[1]: Leaving directory `/usr/src/MPlayer-1.0rc2/libvo'
make: *** [libvo/libvo.a] Error 2

O meu configure foi assim "./configure --prefix=/usr --enable-mencoder --enable-vesa --disable-ivtv"; versão utilizada "MPlayer-1.0rc2.tar.bz2", link: "ftp://ftp.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2"
É isso. Agradeço a ajuda.


5. Re: Erro ao compilar mplayer [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 31/03/2009 - 00:40h

O slackbuild funciona perfeitamente , eu compilei o meu mplayer com ele e está perfeito.


6. Hummm

Rodrigo Namba Dake
shundake

(usa Arch Linux)

Enviado em 31/03/2009 - 08:54h

Mas, assim, usando o Slackbuild eu tenho suporte vesa e mencoder? Pois só estou compilando, por causa da necessidade de ambos.
No aguardo...


7. Suporte vesa e mencoder

M4iir1c10
m4iir1c10

(usa Arch Linux)

Enviado em 31/03/2009 - 09:11h

Sim voce tem suporte Vesa e Mencoder como padrao no slackbuild, a nao ser que voce tem um repositorio de outro mundo e o cara que fez o pacote e maluco de tirar o mencoder e o vesa :)






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts