<br><br><div class="gmail_quote">2011/2/25 IOhannes zmölnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>></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>
> 2011/2/25 IOhannes zmölnig <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>><br>
><br>
>> On 02/25/2011 12:21 PM, tim vets wrote:<br>
>>> dear list,<br>
>>><br>
>>> I'm trying to compile Gem with pix_artoolkit on ubuntu...<br>
>>> ./configure --with-artoolkit-includes=/usr/include/artoolkit/<br>
>>> --with-artoolkit-libs=/usr/lib/artoolkit --with-artoolkit-libs<br>
>> --with-v4l2<br>
>>> --with-glversion=2.0 --enable-sse2 --enable-Vertex --without-avifil<br>
>>> seems to be successful afaict.<br>
>>><br>
>>> after that, make ends with:<br>
>>><br>
>>> videoV4L2.cpp:300: warning: #warning implement fromBGRA<br>
>>> videoV4L2.cpp:602: warning: #warning RGB32 vs BGRA confusion<br>
>>> videoV4L2.cpp: In member function ‘virtual int<br>
>>> videoV4L2::startTransfer(int)’:<br>
>>> videoV4L2.cpp:389: error: ‘fstat’ was not declared in this scope<br>
>>> videoV4L2.cpp:394: error: ‘S_ISCHR’ was not declared in this scope<br>
>>> make[1]: *** [videoV4L2.o] Error 1<br>
>>> make[1]: Leaving directory `/home/tim/Downloads/gem-0.92-3/src/Pixes'<br>
>>> make: *** [Pixes] Error 2<br>
>>><br>
>>> ubuntu Maverick, gem-0.92-3, and ARToolKit pre-compiled from<br>
>>><br>
>> <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>
>>> (which is in fact a Hardy .deb, I know...)<br>
>>><br>
>>> any help would be much appreciated!<br>
>>> Tim<br>
>>><br>
>><br>
>> it's a known bug with gem-0.92-3 and ubuntu.<br>
>> simply adding "#include <sys/stat.h>" to videoV4L2.cpp (near the other<br>
>> includes) should fix the problem.<br>
>><br>
>> thanks for the reply IOhannes,<br>
> I added #include <sys/stat.h> to Gem/src/plugins/videoV4L2.cpp<br>
> i'm not sure if you mean that <sys/stat.h> should be replaced by something<br>
> 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 "fstat" being undeclared)<br>
i am told to include<br>
#include <sys/types.h><br>
#include <sys/stat.h><br>
#include <unistd.h><br>
most likely "sys/stat.h" 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>
> but the result remains:<br>
> make[1]: Entering directory `/home/tim/Downloads/gem-0.92-3/src/Pixes'<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'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'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 -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br>