Olá a todos,
Baixei o código que esta no forum no dia 6 (nao o do svn). Após algum trabalho para conseguir compilar tudo, linkar direito, cheguei no final ao seguinte erro:
$ g++ -L/usr/local/lib/ginga -L/usr/local/lib -o"gingaNcl" ./main.o -lgingacoregfx -ldirectfb -lgingacoreplayer -ltelemidiautil -lncl30 -lncl30converter -lgingancl
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `table2DFBFontDescription'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `DFBInputEvent2table'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `luaopen_directfb_IDirectFBEventBuffer'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `luaopen_directfb_IDirectFBSurface'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `DFBUserEvent2table'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `table2DFBUserEvent'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `luaopen_directfb_IDirectFBImageProvider'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `l_IDirectFBImageProvider_toudata'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `luaopen_directfb_IDirectFBFont'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `l_IDirectFBSurface_toudata'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `table2DFBSurfaceDescription'
/usr/local/lib/ginga/libgingacoreplayer.so: undefined reference to `l_IDirectFBFont_toudata'
collect2: ld returned 1 exit status
esse erro deu na ultima lingagem do main.cpp da pasta gingainit. Fui olhar no gingacore-player e realmente os métodos que estão listados acima não estao implementados.
Alguém tem alguma sugestão?
Tentei de todas as formas baixar o código do svn mas meu usuário nao consegue autenticar no svn. Criei até outro usuário mas nada.
Abraços
Autor: Davi Trindade
3232 comentários
Moreno
configure: error: Couldn't find gingaccplayer library.
Please install Ginga Common Core Player." Eu instalei direitinho na ordem sugerida no wiki. Alguma sugestão?
Abraços
e tente o configure novamente. []s
Moreno
layer_config.options = DLOP_ALPHACHANNEL; Mesmo comentando o set dessa flag, ele dá problema mais embaixo, na hora de setar as configurações do rightLayer: DFBCHECK(rightLayer->SetConfiguration(rightLayer, &layer_config)); X Error of failed request: BadAccess (attempt to access private resource denied) Ou seja, nao to conseguindo permissão pra mudar as propriedades dessa layer. Alguem faz idéia de como corrigir isso? []'s
Moreno
$ ./gingaNcl --ncl <caminho/arquivo-ncl>
Exemplos de documentos NCL podem ser baixados em File Storage - Exemplos. []s
Moreno
É importante o DirectFB estar redondo antes de testar o GingaNCL. Há outros exemplos interessantes do DirectFB no pacote directfb-extra (samples/sample1), capazes de exibir vídeo. Vc pode estar com problemas com o driver de vídeo do DirectFB. Qual é a sua placa de vídeo? Vc poderia colar toda saída impressa pelo DirectFB ao executar um exemplo? []s
Moreno
Davi
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-07-16 13:40) [ DEBUG ]
(*) Direct/Thread: Running 'X11 Input' (INPUT, 7415)...
(*) DirectFB/Input: X11 Input 0.1 (Martin Lutken)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(!) [Main Thread 0.000] ( 7414) *** Assumption [core != NULL] failed *** [core.c:461 in dfb_core_create_surface()]
(!) [Main Thread 0.000] ( 7414) *** Assumption [core != NULL] failed *** [surfaces.c:1079 in dfb_surface_init()]
(!) [Main Thread 0.000] ( 7414) *** Assumption [core != NULL] failed *** [core.c:598 in dfb_core_shmpool()]
(!) [Main Thread 0.000] ( 7414) *** Assumption [core != NULL] failed *** [core.c:617 in dfb_core_shmpool_data()]
setting configuration..
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 143 (MIT-SHM)
Minor opcode of failed request: 1 (X_ShmAttach)
Serial number of failed request: 28
Current serial number in output stream: 51
(!!!) *** WARNING [Application exited without deinitialization of DirectFB!] *** [core.c:775 in dfb_core_deinit_check()]
(!) [X11 Input 0.175] ( 7415) *** Assumption [!pthread_equal( thread->thread, pthread_self() )] failed *** [thread.c:334 in direct_thread_join()]
(!) [X11 Input 0.175] ( 7415) *** Assumption [!pthread_equal( thread->thread, pthread_self() )] failed *** [thread.c:364 in direct_thread_destroy()]
(*) Direct/Interface: Loaded 'Xine' implementation of 'IDirectFBVideoProvider'.
audio_oss_out: audio.device.oss_device_name = auto, probing devs
audio_oss_out: using device >/dev/dsp<
xine: found input plugin : file input plugin
ebml: invalid EBML ID size (0x0) at position 1
ebml: invalid master element
xine: found demuxer plugin: MPEG program stream demux plugin
audio_oss_out: audio rate : 44100 requested, 44100 provided by device
audio_oss_out: 2 channels output
(!) [Main Thread 0.245] ( 7414) *** Assertion [card != NULL] failed *** [gfxcard.c:1916 in dfb_gfxcard_surface_manager()]
Trace/breakpoint trap (core dumped) Algumas vezes eu nao obtenho esse erro e o vídeo é exibido normalmente. Um assert falha dentro do gingaplayer-gfx, aparentemente... Na hora de executar o exemplo02.ncl, que já utiliza o links para exibir a pagina HTML dá outro erro. Eu tentei executar o links em separado e deu o mesmo erro. Segue a saída. $ ./gingaNcl --ncl exemplo02.ncl =======================| DirectFB 1.0.0 |=======================
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-07-16 13:40) [ DEBUG ]
(*) Direct/Thread: Running 'X11 Input' (INPUT, 7574)...
(*) DirectFB/Input: X11 Input 0.1 (Martin Lutken)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(!) [Main Thread 0.000] ( 7573) *** Assumption [core != NULL] failed *** [core.c:461 in dfb_core_create_surface()]
(!) [Main Thread 0.000] ( 7573) *** Assumption [core != NULL] failed *** [surfaces.c:1079 in dfb_surface_init()]
(!) [Main Thread 0.000] ( 7573) *** Assumption [core != NULL] failed *** [core.c:598 in dfb_core_shmpool()]
(!) [Main Thread 0.000] ( 7573) *** Assumption [core != NULL] failed *** [core.c:617 in dfb_core_shmpool_data()]
setting configuration..
(*) Direct/Interface: Loaded 'Xine' implementation of 'IDirectFBVideoProvider'.
audio_oss_out: audio.device.oss_device_name = auto, probing devs
audio_oss_out: using device >/dev/dsp<
xine: found input plugin : file input plugin
ebml: invalid EBML ID size (0x0) at position 1
ebml: invalid master element
xine: found demuxer plugin: MPEG program stream demux plugin
audio_oss_out: audio rate : 44100 requested, 44100 provided by device
audio_oss_out: 2 channels output
init_dither: unsupported depth 4
INTERNAL ERROR at dither.c:914: Graphics driver returned unsupported pixel memory organisation
Segmentation fault (core dumped) Atentar para a linha INTERNAL ERROR. Esse é o erro retornado pelo telemidia-links, igualzinho quando tento executar ele em separado: $ ./links exemplo.html =======================| DirectFB 1.0.0 |=======================
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-07-16 13:40) [ DEBUG ]
(*) Direct/Thread: Running 'X11 Input' (INPUT, 7616)...
(*) DirectFB/Input: X11 Input 0.1 (Martin Lutken)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(!) [ NO NAME 0.000] ( 7617) *** Assumption [core != NULL] failed *** [core.c:461 in dfb_core_create_surface()]
(!) [ NO NAME 0.000] ( 7617) *** Assumption [core != NULL] failed *** [surfaces.c:1079 in dfb_surface_init()]
(!) [ NO NAME 0.000] ( 7617) *** Assumption [core != NULL] failed *** [core.c:598 in dfb_core_shmpool()]
(!) [ NO NAME 0.000] ( 7617) *** Assumption [core != NULL] failed *** [core.c:617 in dfb_core_shmpool_data()]
init_dither: unsupported depth 4
INTERNAL ERROR at dither.c:914: Graphics driver returned unsupported pixel memory organisation
Segmentation fault (core dumped) Abraços Davi
Marcio Moreno
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-08-01 19:48)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 13493)...
(*) Direct/Thread: Running 'Linux Input' (INPUT, 13496)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 13497)...
(*) DirectFB/Input: PC Speaker (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 13498)...
(*) DirectFB/Input: ImPS/2 Generic Wheel Mouse (3) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 13499)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 13500)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(!) Direct/Modules: Could not open module directory `/usr/lib/directfb-1.0-0/gfxdrivers'!
--> No such file or directory
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(!) DirectFB/FBDev: Panning display failed!
--> Invalid argument
(#) DirectFBError [GfxManager IDirectFBScreen::TestConfiguration]: Not supported!
GfxManager.cpp <317>:
(#) DirectFBError [dfb->CreateVideoProvider(dfb, mrl, &provider)]: No (suitable) implementation found!
(!!!) *** WARNING [Application exited without deinitialization of DirectFB!] *** [../../../src/core/core.c:775 in dfb_core_deinit_check()] mas só para constar, é uma instalação debian etch limpa com os pacotes que criei, pode ser alguma manota minha por aqui :) vou subir os pacotes aqui: www.mussicorp.net/pacotes/dists/etch/ para quem quizer testar também, estou preparando uma iso de instalação, ficando pronta eu posto aqui, mas antes de divulgar tem de funcionar :( alguma dica ?
Marcio
Marcio
Moreno
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-08-09 14:03) (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 9991)...
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 9994)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org) (*) Direct/Thread: Running 'PS/2 Input' (INPUT, 9995)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9996)...
(*) DirectFB/Input: PC Speaker (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9997)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9998)...
(*) DirectFB/Input: Topro USB Mouse (3) 0.1 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
sample1.c <585>:
(#) DirectFBError [dfb->CreateVideoProvider( dfb, mrl, &video )]: No (suitable) implementation found!
(!!!) *** WARNING [Application exited without deinitialization of DirectFB!] *** [core.c:775 in dfb_core_deinit_check()] e tambem quando eu executo o exemplo01 no gingaNcl ocorre o seguinte erro: =======================| DirectFB 1.0.0 |=======================
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-08-09 14:03) (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 10025)...
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 10028)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org) (*) Direct/Thread: Running 'PS/2 Input' (INPUT, 10029)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 10030)...
(*) DirectFB/Input: PC Speaker (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 10031)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 10032)...
(*) DirectFB/Input: Topro USB Mouse (3) 0.1 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(!) DirectFB/FBDev: Panning display failed!
--> Invalid argument
(#) DirectFBError [GfxManager IDirectFBScreen::TestConfiguration]: Not supported! GfxManager.cpp <317>:
(#) DirectFBError [dfb->CreateVideoProvider(dfb, mrl, &provider)]: No (suitable) implementation found!
(!!!) *** WARNING [Application exited without deinitialization of DirectFB!] *** [core.c:775 in dfb_core_deinit_check()] alguma ideia??? grato!!!
Moreno
escreveu:
> Forum: Ginga-NCL: Fórum de Desenvolvedores
> Thread: 1314765
> Author: sérgio ferreira
> Posted: 2007-08-14 17:54:58.320899+00
> ----------------------------------
> valeu Moreno,
>
> agora funcionou, o problema era que eu não recompilando
> directfb-extra. Mas agora alguns exemplos disponiveis no site não
> funcionam, por exemplo, o exemplo04 e exemplo05 que é pra aparecer
> legendas, num aparece nada, so o video. ta melhor do que eu ;) eu ainda to brigando com o pacote do DFB-extra :(
mesmo compilado com suporte a ffmpeg e xine ele ainda n roda :( mas ando sem tempo :( Abraços
2) Há um executável criado após a compilação do telemidia-links no diretório de origem chamado links. Excute ./links e veja se diversas mini-janelas são automaticamente abertas. []s
Moreno
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------ (*) DirectFB/Core: Single Application Core. (2007-08-14 20:30)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 6752)...
(*) Direct/Thread: Running 'Linux Input' (INPUT, 6755)...
(*) DirectFB/Input: PC Speaker (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 6756)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 6757)...
(*) DirectFB/Input: Topro USB Mouse (3) 0.1 (directfb.org)
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 6758)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 6759)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(!) DirectFB/FBDev: Panning display failed!
--> Invalid argument
init_dither: unsupported depth 4
INTERNAL ERROR at dither.c:914: Graphics driver returned unsupported pixel memory organisation
(!) [ 6751: 0.000] --> Caught signal 11 (at 0xc0, invalid address) <--
Aborted []s Erick
PS: Eu e o Sergio trabalhamos no mesmo laboratório (mesmo hardware)
fprintf(stderr,"init_dither: unsupported depth %d\n",depth);
internal("Graphics driver returned unsupported \
pixel memory organisation"); por:
default:
make_red_table(8,0,0,0);
make_green_table(8,0,0,0);
make_blue_table(8,0,0,0);
dither_fn_internal=dither_196;
round_fn=round_196; Sds. Marcio
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2007-09-22 04:16)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 9822)...
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9825)...
(*) DirectFB/Input: Macintosh mouse button emulatio (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9826)...
(*) DirectFB/Input: AT Translated Set 2 keyboard (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9828)...
(*) DirectFB/Input: SynPS/2 Synaptics TouchPad (3) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9829)...
(*) DirectFB/Input: HID 062a:0000 (4) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9830)...
(*) DirectFB/Input: Power Button (FF) (5) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9831)...
(*) DirectFB/Input: Power Button (CM) (6) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9832)...
(*) DirectFB/Input: Sleep Button (CM) (7) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 9833)...
(*) DirectFB/Input: Lid Switch (8) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 9834)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 9835)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Mode: Testing 640x480 LUT8
(*) FBDev/Mode: Preparing switch to 640x480 LUT8
(*) FBDev/Mode: Testing 640x480 LUT8
(*) FBDev/Mode: Preparing switch to 640x480 LUT8
(*) FBDev/Mode: Testing 640x480 LUT8
(*) FBDev/Mode: Preparing switch to 640x480 LUT8
(*) FBDev/Mode: Testing 640x480 LUT8
(*) FBDev/Mode: Preparing switch to 640x480 LUT8
(*) FBDev/Mode: Testing 640x480 LUT8
(*) FBDev/Mode: Preparing switch to 640x480 LUT8
(*) FBDev/Mode: Switched to 640x480 (640x480) at 8 bit LUT8 (wanted LUT8).
(*) FBDev/Surface: Allocated 640x480 8bit LUT8 buffer at offset 0 and pitch 640.
(*) FBDev/Mode: (Post)Setting 640x480 LUT8
(*) FBDev/Mode: Testing 640x480 LUT8
(*) FBDev/Mode: Preparing switch to 640x480 LUT8
(*) FBDev/Mode: (Post)Setting 640x480 LUT8
(*) FBDev/Mode: Testing 640x480 LUT8
(#) DirectFBError [GfxManager IDirectFBScreen::TestConfiguration]: Not supported Quando eu executo o sample1: (#) DirectFBError [dfb->CreateVideoProvider( dfb, mrl, &video )]: No (suitable) implementation found!
(!!!) *** WARNING [Application exited without deinitialization of DirectFB!] *** [core.c:775 in dfb_core_deinit_check()] Coisas estranhas que eu percebi que podem indicar o problema: Depois do ./configure do directfb, aparece: Building Graphics Drivers:
3Dfx Voodoo no
ATI Mach64 yes
ATI Rage 128 no
ATI Radeon yes
Intel i810 no
Intel i830 no
Matrox yes
NeoMagic no
NSC Geode no
nVidia no
S3 Savage no
SiS 315 no
TVIA CyberPro no
VIA CLE266 no
VIA UniChrome no
VMWare yes
Como a minha placa é nvidia e ela está "no", fiz "./configure --with-gfxdrivers=nvidia". Nesse caso, o ./configure termina sem problemas, mas dá erro no make Estou com o xine-lib 1.1.7 instalado (pelo yum), mas mesmo assim o ./configure do directfb-extra mostra: Building Video Providers:
AviFile no
Flash no
Libmpeg3 no
OpenQuicktime no
Xine no
Swfdec no
FFmpeg no
df_andi e df_dok rodam sem problemas
Salientando que as bibliotecas ffmpeg e xine podem entrar em conflito se ambas foram habilitadas e o recomendado é utilizar a xine, pois possui mais recursos. []`s Lucas Augusto