[PD] pix_artoolkit

tim vets timvets at gmail.com
Fri Feb 25 21:30:26 CET 2011


2011/2/25 IOhannes zmölnig <zmoelnig at iem.at>

> On 02/25/2011 07:54 PM, tim vets wrote:
> > 2011/2/25 IOhannes zmölnig <zmoelnig at iem.at>
> >
> >> On 02/25/2011 12:21 PM, tim vets wrote:
> >>> dear list,
> >>>
> >>> I'm trying to compile Gem with pix_artoolkit on ubuntu...
> >>> ./configure --with-artoolkit-includes=/usr/include/artoolkit/
> >>> --with-artoolkit-libs=/usr/lib/artoolkit --with-artoolkit-libs
> >> --with-v4l2
> >>> --with-glversion=2.0 --enable-sse2 --enable-Vertex --without-avifil
> >>> seems to be successful afaict.
> >>>
> >>> after that, make ends with:
> >>>
> >>> videoV4L2.cpp:300: warning: #warning implement fromBGRA
> >>> videoV4L2.cpp:602: warning: #warning RGB32 vs BGRA confusion
> >>> videoV4L2.cpp: In member function ‘virtual int
> >>> videoV4L2::startTransfer(int)’:
> >>> videoV4L2.cpp:389: error: ‘fstat’ was not declared in this scope
> >>> videoV4L2.cpp:394: error: ‘S_ISCHR’ was not declared in this scope
> >>> make[1]: *** [videoV4L2.o] Error 1
> >>> make[1]: Leaving directory `/home/tim/Downloads/gem-0.92-3/src/Pixes'
> >>> make: *** [Pixes] Error 2
> >>>
> >>> ubuntu Maverick, gem-0.92-3, and ARToolKit pre-compiled from
> >>>
> >>
> http://ppa.launchpad.net/artoolkit-dev/ppa/ubuntu/pool/main/a/artoolkit/artoolkit-dev_2.72.1+20070927-hardy1_i386.deb
> >>> (which is in fact a Hardy .deb, I know...)
> >>>
> >>> any help would be much appreciated!
> >>> Tim
> >>>
> >>
> >> it's a known bug with gem-0.92-3 and ubuntu.
> >> simply adding "#include <sys/stat.h>" to videoV4L2.cpp (near the other
> >> includes) should fix the problem.
> >>
> >> thanks for the reply IOhannes,
> > I added #include <sys/stat.h> to Gem/src/plugins/videoV4L2.cpp
> > i'm not sure if you mean that <sys/stat.h> should be replaced by
> something
> > specific to my system...I tried some variations...
>
> what i meant is, that a header file is not included by the videoV4L2.cpp
> file you are trying to compile.
>
> doing
> $ man fstat
> (because the compile complains about "fstat" being undeclared)
> i am told to include
>       #include <sys/types.h>
>       #include <sys/stat.h>
>       #include <unistd.h>
> most likely "sys/stat.h" will do.
>
> anyhow, in gem-0.92-3 there is NO Gem/src/plugins/videoV4L2.cpp file.
> this only exists in the current SVN trunk.
>

so it seems you are editing one file and then trying to compile another
> one - no wonder you still get errors.
>
>
uhm, yes my bad, I was indeed editing the wrong file.
the compiling finishes now, but when I load [pix_artoolkit] I get this in
the pd window:

 error: [pix_artoolkit]: compiled without ARToolKit support!
... you might be able to track this down from the Find menu.

(I installed artoolkit from that .deb I mention above)

thanks
Tim


>
> > but the result remains:
> >  make[1]: Entering directory `/home/tim/Downloads/gem-0.92-3/src/Pixes'
>
> obviously the correct file is
> /home/tim/Downloads/gem-0.92-3/src/Pixes/videoV4L2.cpp
>
>
>
> alternatively you could also try to compile the current SVN tree with
> artoolkit, but it might not work.
> if it does work, then you don't have to compile the entire Gem at all,
> but simply go to extra/pix_artoolkit and compile the one object.
>
> (i don't think you can use pix_artoolkit compiled for Gem-0.93(svn) with
> Gem-0.92-3)
>
> amsdr
> IOhannes
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110225/20f397db/attachment-0001.htm>


More information about the Pd-list mailing list