[help]pthread in vlc compiled by Cygwin

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
terence_zh
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Dec 2005 09:42

[help]pthread in vlc compiled by Cygwin

Postby terence_zh » 11 Aug 2006 09:12

Hi,guys:
I want to modifed the vlc for connecting a streaming server. And I have change the file called "livedotcom.cpp". I called the function pthread_create therefor I add the code #include <pthread.h> in the livedotcom.cpp; However, when I compile the vlc in cygwin, error occurs:
......
......
Making all in ffmpeg
Making all in spudec
Making all in control
Making all in http
Making all in corba
Making all in demux
livedotcom.cpp:49:21: pthread.h: No such file or directory
livedotcom.cpp:201: error: `pthread_t' does not name a type
livedotcom.cpp: In function `int Open(vlc_object_t*)':
livedotcom.cpp:307: warning: unused variable 'psz_options'
livedotcom.cpp:493: error: `p_getparam' undeclared (first use this function)
livedotcom.cpp:493: error: (Each undeclared identifier is reported only once for
each function it appears in.)
livedotcom.cpp:493: error: `pthread_create' undeclared (first use this function)

livedotcom.cpp: In function `void* GetParam(void*)':
livedotcom.cpp:807: error: `sleep' undeclared (first use this function)
livedotcom.cpp:810: warning: no return statement in function returning non-void
livedotcom.cpp: In function `void Close(vlc_object_t*)':
livedotcom.cpp:840: error: `p_getparam' undeclared (first use this function)
livedotcom.cpp:840: error: `pthread_cancel' undeclared (first use this function)

livedotcom.cpp: In function `int Demux(demux_t*)':
livedotcom.cpp:879: warning: unused variable 'psz_bye'
livedotcom.cpp: At global scope:
livedotcom.cpp:1457: warning: 'void TimeoutPrevention(timeout_thread_t*)' define
d but not used
make[4]: *** [liblivedotcom_a-livedotcom.o] Error 1
make[3]: *** [all-modules] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Anybody can give some suggestion about it? Or do I change other function to create thread in Cygwin?
Thanks a lot!!!

terence_zh
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Dec 2005 09:42

Postby terence_zh » 14 Aug 2006 03:08

up and does anyone give me an advice? Or provide a method of creation thread in cygwin environment

Guest

Postby Guest » 14 Aug 2006 23:10

livedotcom.cpp:49:21: pthread.h: No such file or directory
start from that, compiler doesn't find that file.
And VLC might have it own threads, use those, also don't use sleep function.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 36 guests