add it to videoV4L2.h in src/Pixes (or src/plugins/videoV4L2 for svn version). you should see a bunch of '# include' starting around line 30.
James Dunn wrote: > Quoth dmotd, on 06/07/10 13:49: > >>>Seems like I just had to install pkg-config. It now finds the > >>>imagemagick library but fails with a new error: > >>>videoV4L2.cpp:389:31: error: ‘fstat’ was not declared in this scope > >>>videoV4L2.cpp:394:27: error: ‘S_ISCHR’ was not declared in this scope > >>Try adding this line near the top : > >> > >> #include<sys/stat.h> > >mathieu beat me to it.. you may also need: > > > > #include<linux/stat.h> > > Do I add these lines to the top of the makefile in > pd-extended/packages/linux_make? > I tried doing this and I still get the error. Also, why are these > lines written with a # in front? I thought this was to comment the > line out? I tried compiling with no #'s at the start of the lines > and I get this error: > > Makefile:6: <sys/stat.h>: No such file or directory > Makefile:7: <linux/stat.h>: No such file or directory > make: dpkg-architecture: Command not found > make: *** No rule to make target `<linux/stat.h>'. Stop. > > and with the full path specified: > > Makefile:6: </usr/include/sys/stat.h>: No such file or directory > Makefile:7: </usr/include/linux/stat.h>: No such file or directory > make: dpkg-architecture: Command not found > make: *** No rule to make target `</usr/include/linux/stat.h>'. Stop. > > the files are definitely installed as locate stat.h shows: > > /usr/include/ustat.h > /usr/include/asm/stat.h > /usr/include/asm-generic/stat.h > /usr/include/bits/stat.h > /usr/include/bits/ustat.h > /usr/include/linux/stat.h > /usr/include/rpcsvc/rstat.h > /usr/include/sys/stat.h > /usr/include/sys/ustat.h > /usr/include/tirpc/rpc/clnt_stat.h > /usr/share/man/man0/stat.h.0p.gz > /usr/share/man/man0/sys_stat.h.0p.gz > > Thanks for the help so far! > > James > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list _______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
