'poll' was not declared in this scope

This forum is about all development around libVLC.
Vaselinessa
Blank Cone
Blank Cone
Posts: 48
Joined: 03 Apr 2011 02:26
Location: Sacramento, CA

'poll' was not declared in this scope

Postby Vaselinessa » 05 Jan 2013 18:27

I just tried to compile 2.0.5 with an out-of-tree module which compiled find in 2.0.4, and I got the following error.

Code: Select all

In file included from ../../../../extras/package/win32/../../../include/vlc_common.h:430:0, from ../../../../extras/package/win32/../../../modules/gui/qt4/../../moviesoap/qt4/../variables.h:14, from ../../../../extras/package/win32/../../../modules/gui/qt4/../../moviesoap/qt4/../filter.hpp:11, from ../../../../extras/package/win32/../../../modules/gui/qt4/../../moviesoap/qt4/main.hpp:4, from ../../../../extras/package/win32/../../../modules/gui/qt4/../../moviesoap/qt4/main.cpp:1: ../../../../extras/package/win32/../../../include/vlc_threads.h: In function ‘int vlc_poll(pollfd*, unsigned int, int)’: ../../../../extras/package/win32/../../../include/vlc_threads.h:395:43: error: ‘poll’ was not declared in this scope ../../../../extras/package/win32/../../../include/vlc_threads.h:402:36: error: ‘poll’ was not declared in this scope
I see this issue referenced in this email: http://mailman.videolan.org/pipermail/v ... 85021.html

...but can anyone tell me what to do about it?

Vaselinessa
Blank Cone
Blank Cone
Posts: 48
Joined: 03 Apr 2011 02:26
Location: Sacramento, CA

Re: 'poll' was not declared in this scope

Postby Vaselinessa » 05 Jan 2013 18:28

Also, when I try to get the 2.0.4 source from http://download.videolan.org/pub/videolan/vlc/2.0.4/ the server returns a 500 error.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: 'poll' was not declared in this scope

Postby Rémi Denis-Courmont » 05 Jan 2013 18:37

You have changed (and broken) something in your build environment. In fact, vlc_threads.h is identical in version 2.0.4 and 2.0.5, and has no references to poll().

Also ftp://ftp.videolan.org/pub/videolan/vlc/
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Vaselinessa
Blank Cone
Blank Cone
Posts: 48
Joined: 03 Apr 2011 02:26
Location: Sacramento, CA

Re: 'poll' was not declared in this scope

Postby Vaselinessa » 09 Jan 2013 06:31

Ah, you are right that 2.0.5 has the same vlc_threads.h file as 2.0.4. It turns out I was trying to build the latest source from the git repository (git://git.videolan.org/vlc.git).

However, this awareness has not helped me to cross compile yet. A file of mine, which I added to the Qt module #includes <vlc_common.h>, which includes <vlc_threads.h>, which calls `poll` and gives me the error that I mentioned in the first post: (/include/vlc_threads.h:395:43: error: ‘poll’ was not declared in this scope).

Does anyone see any way around this error? Or does anyone have instructions for cross compiling version 2.0.4? When I follow the instructions on (http://wiki.videolan.org/Win32Compile) against version 2.0.4 or 2.0.5 instead of what's on the git repo, I get the following when I run `make` in <vlc>/contrib/win32:

Code: Select all

configure: error: in `<vlc>/contrib/win32/jpeg': configure: error: C compiler cannot create executables See `config.log' for more details make: *** [.jpeg] Error 77


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests