I've always had the same problem (and probably should have issued a bug report) - I always add "#include <unistd.h>" manually to plugins/recordV4L2/recordV4L2.cpp after unpacking the Gem source.
cheers Miller On Sat, Jun 20, 2015 at 01:15:07PM -0400, Jim Ruxton wrote: > I am getting the following errors in compiling Gem on Ubuntu 15.04. Any > thought on what I need to do to correct this. Thanks. > > Jim > cordV4L2.cpp:81:5: error: '::close' has not been declared > ::close(m_fd); > ^ > recordV4L2.cpp: In member function 'virtual bool > gem::plugins::recordV4L2::open(std::string)': > recordV4L2.cpp:101:65: warning: format '%s' expects a matching 'char*' > argument [-Wformat=] > verbose(1, "device '%s' is not a video4linux2 output device"); > ^ > recordV4L2.cpp: In member function 'virtual bool > gem::plugins::recordV4L2::init(const imageStruct*, int)': > recordV4L2.cpp:159:3: error: '::write' has not been declared > ::write(m_fd, m_image.data, m_image.xsize*m_image.ysize*m_image.csize); > ^ > recordV4L2.cpp: In member function 'virtual bool > gem::plugins::recordV4L2::putFrame(imageStruct*)': > recordV4L2.cpp:184:3: error: '::write' has not been declared > ::write(m_fd, m_image.data, size); > ^ > Makefile:471: recipe for target 'gem_recordV4L2_la-recordV4L2.lo' failed > make[2]: *** [gem_recordV4L2_la-recordV4L2.lo] Error 1 > make[2]: Leaving directory > '/home/jim/Downloads/Gem-0.93.3/plugins/recordV4L2' > Makefile:390: recipe for target 'all-recursive' failed > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory '/home/jim/Downloads/Gem-0.93.3/plugins' > Makefile:485: recipe for target 'all-recursive' failed > make: *** [all-recursive] Error 1 > > > _______________________________________________ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list