<br><br><div class="gmail_quote">2011/2/25 IOhannes zmölnig <span dir="ltr">&lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5">On 02/25/2011 07:54 PM, tim vets wrote:<br>
&gt; 2011/2/25 IOhannes zmölnig &lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;<br>
&gt;<br>
&gt;&gt; On 02/25/2011 12:21 PM, tim vets wrote:<br>
&gt;&gt;&gt; dear list,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m trying to compile Gem with pix_artoolkit on ubuntu...<br>
&gt;&gt;&gt; ./configure --with-artoolkit-includes=/usr/include/artoolkit/<br>
&gt;&gt;&gt; --with-artoolkit-libs=/usr/lib/artoolkit --with-artoolkit-libs<br>
&gt;&gt; --with-v4l2<br>
&gt;&gt;&gt; --with-glversion=2.0 --enable-sse2 --enable-Vertex --without-avifil<br>
&gt;&gt;&gt; seems to be successful afaict.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; after that, make ends with:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; videoV4L2.cpp:300: warning: #warning implement fromBGRA<br>
&gt;&gt;&gt; videoV4L2.cpp:602: warning: #warning RGB32 vs BGRA confusion<br>
&gt;&gt;&gt; videoV4L2.cpp: In member function ‘virtual int<br>
&gt;&gt;&gt; videoV4L2::startTransfer(int)’:<br>
&gt;&gt;&gt; videoV4L2.cpp:389: error: ‘fstat’ was not declared in this scope<br>
&gt;&gt;&gt; videoV4L2.cpp:394: error: ‘S_ISCHR’ was not declared in this scope<br>
&gt;&gt;&gt; make[1]: *** [videoV4L2.o] Error 1<br>
&gt;&gt;&gt; make[1]: Leaving directory `/home/tim/Downloads/gem-0.92-3/src/Pixes&#39;<br>
&gt;&gt;&gt; make: *** [Pixes] Error 2<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ubuntu Maverick, gem-0.92-3, and ARToolKit pre-compiled from<br>
&gt;&gt;&gt;<br>
&gt;&gt; <a href="http://ppa.launchpad.net/artoolkit-dev/ppa/ubuntu/pool/main/a/artoolkit/artoolkit-dev_2.72.1+20070927-hardy1_i386.deb" target="_blank">http://ppa.launchpad.net/artoolkit-dev/ppa/ubuntu/pool/main/a/artoolkit/artoolkit-dev_2.72.1+20070927-hardy1_i386.deb</a><br>


&gt;&gt;&gt; (which is in fact a Hardy .deb, I know...)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; any help would be much appreciated!<br>
&gt;&gt;&gt; Tim<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; it&#39;s a known bug with gem-0.92-3 and ubuntu.<br>
&gt;&gt; simply adding &quot;#include &lt;sys/stat.h&gt;&quot; to videoV4L2.cpp (near the other<br>
&gt;&gt; includes) should fix the problem.<br>
&gt;&gt;<br>
&gt;&gt; thanks for the reply IOhannes,<br>
&gt; I added #include &lt;sys/stat.h&gt; to Gem/src/plugins/videoV4L2.cpp<br>
&gt; i&#39;m not sure if you mean that &lt;sys/stat.h&gt; should be replaced by something<br>
&gt; specific to my system...I tried some variations...<br>
<br>
</div></div>what i meant is, that a header file is not included by the videoV4L2.cpp<br>
file you are trying to compile.<br>
<br>
doing<br>
$ man fstat<br>
(because the compile complains about &quot;fstat&quot; being undeclared)<br>
i am told to include<br>
       #include &lt;sys/types.h&gt;<br>
       #include &lt;sys/stat.h&gt;<br>
       #include &lt;unistd.h&gt;<br>
most likely &quot;sys/stat.h&quot; will do.<br>
<br>
anyhow, in gem-0.92-3 there is NO Gem/src/plugins/videoV4L2.cpp file.<br>
this only exists in the current SVN trunk.<br></blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
so it seems you are editing one file and then trying to compile another<br>
one - no wonder you still get errors.<br>
<div class="im"><br></div></blockquote><div><br></div><div>uhm, yes my bad, I was indeed editing the wrong file.</div><div>the compiling finishes now, but when I load [pix_artoolkit] I get this in the pd window:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>

<br></div><div> error: [pix_artoolkit]: compiled without ARToolKit support!</div><div>... you might be able to track this down from the Find menu.</div><div><br></div><div>(I installed artoolkit from that .deb I mention above)</div>

<div><br></div><div>thanks</div><div>Tim</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
<br>
<br>
&gt; but the result remains:<br>
&gt;  make[1]: Entering directory `/home/tim/Downloads/gem-0.92-3/src/Pixes&#39;<br><br></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">


</div>obviously the correct file is<br>
/home/tim/Downloads/gem-0.92-3/src/Pixes/videoV4L2.cpp<br>
<br>
<br>
<br>
alternatively you could also try to compile the current SVN tree with<br>
artoolkit, but it might not work.<br>
if it does work, then you don&#39;t have to compile the entire Gem at all,<br>
but simply go to extra/pix_artoolkit and compile the one object.<br>
<br>
(i don&#39;t think you can use pix_artoolkit compiled for Gem-0.93(svn) with<br>
Gem-0.92-3)<br>
<br>
amsdr<br>
<font color="#888888">IOhannes<br>
<br>
</font><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>