HendrikRoth / boblight

Automatically exported from code.google.com/p/boblight
0 stars 0 forks source link

Does not compile with v4l #78

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout source on ubuntu 13.10
2. Install Dependencies
3. Run ./configure --with-ffmpeg and then Make

What is the expected output? What do you see instead?
Expect to compile.
Instead get error:
Making all in src
make[2]: Entering directory `/home/xbmc/sources/boblight-read-only/src'
g++ -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT boblight-v4l.o -MD -MP -MF 
.deps/boblight-v4l.Tpo -c -o boblight-v4l.o `test -f 
'clients/boblight-v4l/boblight-v4l.cpp' || echo 
'./'`clients/boblight-v4l/boblight-v4l.cpp
clients/boblight-v4l/boblight-v4l.cpp: In function ‘int Run()’:
clients/boblight-v4l/boblight-v4l.cpp:103:15: error: ‘sleep’ was not 
declared in this scope
       sleep(10);
               ^
make[2]: *** [boblight-v4l.o] Error 1
make[2]: Leaving directory `/home/xbmc/sources/boblight-read-only/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/xbmc/sources/boblight-read-only'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
r478 on ubuntu 13.10

Please provide any additional information below.

Original issue reported on code.google.com by Meth...@gmail.com on 9 Feb 2014 at 8:53

GoogleCodeExporter commented 9 years ago
I was able to make this compile by adding #include <unistd.h> to 
boblight-v4l.cpp and videograbber.cpp

It looks like older versions of gcc included it automatically with system 
headers or something.

Original comment by Meth...@gmail.com on 10 Feb 2014 at 5:03

GoogleCodeExporter commented 9 years ago
Fixed in r479.

Original comment by bob.loo...@gmail.com on 14 Jan 2015 at 8:16