I have try to cross compile vlc and run it on arm, I already successfully cross compile it(use uclibc, I'm not sure wther it cause the problem). But when I run it , problems come:
Code: Select all
test@172 local]$ vlc
VLC media player 1.0.1 Goldeneye
[0x83170] main playlist fetcher error: cannot spawn secondary preparse thread
[0x2c728] main playlist error: cannot create playlist fetcher
[0x2c728] main playlist error: cannot spawn preparse thread
[0x2c728] main playlist error: cannot create playlist preparser
[0x2c728] main playlist error: cannot spawn playlist thread
[0x831a8] main interface error: interface thread could not be created at interface/interface.c:151 (Operation not permitted)
[0x831a8] main interface error: cannot spawn interface thread
[0x122d8] main interface error: no suitable interface module
[0x12170] main libvlc error: interface "signals" initialization failed
[0x122d8] main interface error: no interface module matched "globalhotkeys,none"
[0x122d8] main interface error: no suitable interface module
[0x12170] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x12170] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Remote control interface initialized. Type `help' for help.
[0x12320] main interface error: interface thread could not be created at interface/interface.c:151 (Operation not permitted)
[0x12320] main interface error: cannot spawn interface thread
*** LibVLC Exception not handled: Interface initialization failed
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
Code: Select all
pthread_attr_t attr;
pthread_attr_init (&attr);
ret = pthread_attr_setstacksize (&attr, 512*1024);
ret = pthread_create (p_handle, &attr, entry, data);
If I change the code as this
Code: Select all
ret = pthread_create (p_handle, NULL, entry, data);
and plus, I write a threadtest.c file use following code to create thread and it success
Code: Select all
pthread_attr_t attr;
pthread_attr_init (&attr);
ret = pthread_attr_setstacksize (&attr, 512*1024);
ret = pthread_create (p_handle, &attr, entry, data);