hi list
i have to compile pidip from source (on ubuntu studio 8.04) because i have a project where i depend on some changed files.
after a year of not touching the library (never change running system) i had to move everything to another system and therefore need to recompile pidip. first i tried to use my old pidip sources, after running into troubles with (quicktime and lqt) which i could solve. compilation stopped when pdp_capture should be compiled:
pdp_capture.c: In function ‘XMyClientWindow’: pdp_capture.c:129: warning: implicit declaration of function ‘XWindowByProperty’ pdp_capture.c: In function ‘XMyGetWindowImage’: pdp_capture.c:335: warning: implicit declaration of function ‘XDestroyImage’ pdp_capture.c:339: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:340: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:398: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:399: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:440: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:453: warning: implicit declaration of function ‘XGetPixel’ pdp_capture.c:455: warning: implicit declaration of function ‘ScaleShortToQuantum’ pdp_capture.c: In function ‘pdp_capture_do_capture’: pdp_capture.c:591: error: ‘XTextProperty’ undeclared (first use in this function) pdp_capture.c:591: error: (Each undeclared identifier is reported only once pdp_capture.c:591: error: for each function it appears in.) pdp_capture.c:591: error: expected ‘;’ before ‘window_name’ pdp_capture.c:603: error: ‘XError’ undeclared (first use in this function) pdp_capture.c:684: warning: implicit declaration of function ‘XGetWMName’ pdp_capture.c:684: error: ‘window_name’ undeclared (first use in this function) pdp_capture.c: In function ‘pdp_capture_sendpacket’: pdp_capture.c:819: warning: passing argument 2 of ‘pdp_packet_pass_if_valid’ from incompatible pointer type make[1]: *** [pdp_capture.o] Error 1
after this i tried to compile from svn, again i had to outcomment libquicktime issues (though there was already a condition included in the modules source, whicht was somehow ignored)
add the end again i ended up with problems compiling pdp_capture
make[1]: *** No rule to make target @PDP_CAPTURE_OBJECT@', needed by
all_modules'. Stop.
make[1]: Leaving directory
`/home/metafor/Desktop/puredata-externals/externals/pidip/modules'
make: *** [pdp_pidip_all] Error 2
i guess because old and new pidip are not compiling i miss something with a library (is it this libquicktiem problem?), but as configure went fine, i am not sure which one is missing/or wrong version, has anybody run into these troubles as well? what am i doing wrong?
well, any help is apreciated.
cheers marc
ola,
what was you configure command ?
./configure --help --enable-capture capture optional object ( only works with Image Magick <= 6.0.7 )
this became optional ... in a way deprecated... it would not work with most recent Image Magick..
xiaoo, sevy
marc widmer wrote:
hi list
i have to compile pidip from source (on ubuntu studio 8.04) because i have a project where i depend on some changed files.
after a year of not touching the library (never change running system) i had to move everything to another system and therefore need to recompile pidip. first i tried to use my old pidip sources, after running into troubles with (quicktime and lqt) which i could solve. compilation stopped when pdp_capture should be compiled:
pdp_capture.c: In function ‘XMyClientWindow’: pdp_capture.c:129: warning: implicit declaration of function ‘XWindowByProperty’ pdp_capture.c: In function ‘XMyGetWindowImage’: pdp_capture.c:335: warning: implicit declaration of function ‘XDestroyImage’ pdp_capture.c:339: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:340: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:398: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:399: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:440: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:453: warning: implicit declaration of function ‘XGetPixel’ pdp_capture.c:455: warning: implicit declaration of function ‘ScaleShortToQuantum’ pdp_capture.c: In function ‘pdp_capture_do_capture’: pdp_capture.c:591: error: ‘XTextProperty’ undeclared (first use in this function) pdp_capture.c:591: error: (Each undeclared identifier is reported only once pdp_capture.c:591: error: for each function it appears in.) pdp_capture.c:591: error: expected ‘;’ before ‘window_name’ pdp_capture.c:603: error: ‘XError’ undeclared (first use in this function) pdp_capture.c:684: warning: implicit declaration of function ‘XGetWMName’ pdp_capture.c:684: error: ‘window_name’ undeclared (first use in this function) pdp_capture.c: In function ‘pdp_capture_sendpacket’: pdp_capture.c:819: warning: passing argument 2 of ‘pdp_packet_pass_if_valid’ from incompatible pointer type make[1]: *** [pdp_capture.o] Error 1
after this i tried to compile from svn, again i had to outcomment libquicktime issues (though there was already a condition included in the modules source, whicht was somehow ignored)
add the end again i ended up with problems compiling pdp_capture make[1]: *** No rule to make target
@PDP_CAPTURE_OBJECT@', needed by
all_modules'. Stop. make[1]: Leaving directory `/home/metafor/Desktop/puredata-externals/externals/pidip/modules' make: *** [pdp_pidip_all] Error 2i guess because old and new pidip are not compiling i miss something with a library (is it this libquicktiem problem?), but as configure went fine, i am not sure which one is missing/or wrong version, has anybody run into these troubles as well? what am i doing wrong?
well, any help is apreciated.
cheers marc
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi
my configure command looks like this:
./configure --with-pd=/usr/lib/pd --with-pdp=/home/metafor/Desktop/puredata-externals/externals/pdp/ --with-ffmpeg=/home/metafor/Desktop/puredata-externals/ffmpeg/
i added this option --disable-capture
but with no success, old pidip fails at the same point. (actually the disable option is not available in this version) my image-magick version is obviously later: imagemagick_6.3.7.9.dfsg1-2ubuntu1_i386.deb
i checked, the new pidip from svn has --disable-option with autoconf i genereated a new configure and after this i could compile further but, now im stucked with pdp_live~
i have installed latest ffmpeg from source, but now i am stucked with this (see below)
it does not mention anything missing, so i do not know where to search. btw. can i easily port my changed pdp_ctrack (v 0.1) to the newest pidip install (haven't done it yet)? i guess my pidip at the time was .18 or .19, in .23 pdp_ctrack still has version number 0.1 which makes me confident.
if you could help me out, i would be reallly happy.
pdp_live~.c: In function ‘pdp_live_decode_packet’: pdp_live~.c:268: warning: comparison between signed and unsigned pdp_live~.c:282: error: request for member ‘codec_type’ in something not a structure or union pdp_live~.c:294: warning: implicit declaration of function ‘avcodec_decode_audio’ pdp_live~.c:342: error: request for member ‘channels’ in something not a structure or union pdp_live~.c:343: error: request for member ‘sample_rate’ in something not a structure or union pdp_live~.c:346: warning: ‘audio_resample_init’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2573) pdp_live~.c:347: error: request for member ‘channels’ in something not a structure or union pdp_live~.c:349: error: request for member ‘sample_rate’ in something not a structure or union pdp_live~.c:354: error: request for member ‘channels’ in something not a structure or union pdp_live~.c:400: error: request for member ‘width’ in something not a structure or union pdp_live~.c:401: error: request for member ‘height’ in something not a structure or union pdp_live~.c:403: error: request for member ‘frame_rate’ in something not a structure or union pdp_live~.c:410: warning: passing argument 1 of ‘avcodec_decode_video’ from incompatible pointer type pdp_live~.c:411: error: request for member ‘pix_fmt’ in something not a structure or union pdp_live~.c:414: error: request for member ‘pix_fmt’ in something not a structure or union pdp_live~.c:445: error: request for member ‘width’ in something not a structure or union pdp_live~.c:446: error: request for member ‘height’ in something not a structure or union pdp_live~.c: In function ‘pdp_live_connect_to_url’: pdp_live~.c:590: error: ‘AVFormatParameters’ has no member named ‘image_format’ pdp_live~.c:623: warning: comparison between signed and unsigned pdp_live~.c:652: error: request for member ‘codec_type’ in something not a structure or union pdp_live~.c:656: error: request for member ‘codec_type’ in something not a structure or union pdp_live~.c:659: error: request for member ‘codec_id’ in something not a structure or union pdp_live~.c:659: error: request for member ‘bit_rate’ in something not a structure or union pdp_live~.c:661: error: request for member ‘sample_rate’ in something not a structure or union pdp_live~.c:661: error: request for member ‘channels’ in something not a structure or union pdp_live~.c:664: error: request for member ‘codec_type’ in something not a structure or union pdp_live~.c:667: error: request for member ‘codec_id’ in something not a structure or union pdp_live~.c:668: error: request for member ‘bit_rate’ in something not a structure or union pdp_live~.c:670: error: request for member ‘frame_rate’ in something not a structure or union pdp_live~.c:671: error: request for member ‘width’ in something not a structure or union pdp_live~.c:672: error: request for member ‘height’ in something not a structure or union pdp_live~.c:679: warning: comparison between signed and unsigned pdp_live~.c:686: error: request for member ‘codec_id’ in something not a structure or union pdp_live~.c:700: warning: passing argument 1 of ‘avcodec_open’ from incompatible pointer type pdp_live~.c: In function ‘pdp_live_disconnect’: pdp_live~.c:778: warning: comparison between signed and unsigned pdp_live~.c:783: warning: passing argument 1 of ‘avcodec_close’ from incompatible pointer type pdp_live~.c: In function ‘pdp_live_free’: pdp_live~.c:980: warning: implicit declaration of function ‘av_free_static’ make[1]: *** [pdp_live~.o] Error 1 make[1]: Leaving directory `/home/metafor/Desktop/puredata-externals/externals/pidip/modules' make: *** [pdp_pidip_all] Error 2
cheers marc
ydegoyon@gmail.com wrote:
ola,
what was you configure command ?
./configure --help --enable-capture capture optional object ( only works with Image Magick <= 6.0.7 )
this became optional ... in a way deprecated... it would not work with most recent Image Magick..
xiaoo, sevy
marc widmer wrote:
hi list
i have to compile pidip from source (on ubuntu studio 8.04) because i have a project where i depend on some changed files.
after a year of not touching the library (never change running system) i had to move everything to another system and therefore need to recompile pidip. first i tried to use my old pidip sources, after running into troubles with (quicktime and lqt) which i could solve. compilation stopped when pdp_capture should be compiled:
pdp_capture.c: In function ‘XMyClientWindow’: pdp_capture.c:129: warning: implicit declaration of function ‘XWindowByProperty’ pdp_capture.c: In function ‘XMyGetWindowImage’: pdp_capture.c:335: warning: implicit declaration of function ‘XDestroyImage’ pdp_capture.c:339: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:340: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:398: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:399: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:440: error: ‘Visual’ has no member named ‘klass’ pdp_capture.c:453: warning: implicit declaration of function ‘XGetPixel’ pdp_capture.c:455: warning: implicit declaration of function ‘ScaleShortToQuantum’ pdp_capture.c: In function ‘pdp_capture_do_capture’: pdp_capture.c:591: error: ‘XTextProperty’ undeclared (first use in this function) pdp_capture.c:591: error: (Each undeclared identifier is reported only once pdp_capture.c:591: error: for each function it appears in.) pdp_capture.c:591: error: expected ‘;’ before ‘window_name’ pdp_capture.c:603: error: ‘XError’ undeclared (first use in this function) pdp_capture.c:684: warning: implicit declaration of function ‘XGetWMName’ pdp_capture.c:684: error: ‘window_name’ undeclared (first use in this function) pdp_capture.c: In function ‘pdp_capture_sendpacket’: pdp_capture.c:819: warning: passing argument 2 of ‘pdp_packet_pass_if_valid’ from incompatible pointer type make[1]: *** [pdp_capture.o] Error 1
after this i tried to compile from svn, again i had to outcomment libquicktime issues (though there was already a condition included in the modules source, whicht was somehow ignored)
add the end again i ended up with problems compiling pdp_capture make[1]: *** No rule to make target
@PDP_CAPTURE_OBJECT@', needed by
all_modules'. Stop. make[1]: Leaving directory `/home/metafor/Desktop/puredata-externals/externals/pidip/modules' make: *** [pdp_pidip_all] Error 2i guess because old and new pidip are not compiling i miss something with a library (is it this libquicktiem problem?), but as configure went fine, i am not sure which one is missing/or wrong version, has anybody run into these troubles as well? what am i doing wrong?
well, any help is apreciated.
cheers marc
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
marc widmer wrote:
hi
my configure command looks like this:
./configure --with-pd=/usr/lib/pd --with-pdp=/home/metafor/Desktop/puredata-externals/externals/pdp/ --with-ffmpeg=/home/metafor/Desktop/puredata-externals/ffmpeg/
two suggestions:
correct version is mentioned somewhere pidip's readme)
mfgasr IOhannes
hi IOhannes
thanks for your inputs...
yes, pdp is installed an running (PDP: pure data packet version 0.12.5-darcs) ffmpeg is from cvs, but not from sourceforge, apparently ffmpeg moved to ffmpeg.org
i downloaded it via svn from here:
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
compilation went fine. but beside the note that you should compile ffmpeg from cvs, which is not available anymore (guess svn should be the right replacement), there is no special version mentioned.
if you have any other suggestions, i would be really happy, as for now, i do not really know where's the problem.
best marc
IOhannes m zmoelnig wrote:
marc widmer wrote:
hi
my configure command looks like this:
./configure --with-pd=/usr/lib/pd --with-pdp=/home/metafor/Desktop/puredata-externals/externals/pdp/ --with-ffmpeg=/home/metafor/Desktop/puredata-externals/ffmpeg/
two suggestions:
- have you configured and built pdp?
- is the ffmpeg you installed of the "correct" version? (i think the
correct version is mentioned somewhere pidip's readme)
mfgasr IOhannes
marc widmer wrote:
hi IOhannes
thanks for your inputs...
yes, pdp is installed an running (PDP: pure data packet version 0.12.5-darcs) ffmpeg is from cvs, but not from sourceforge, apparently ffmpeg moved to ffmpeg.org
i downloaded it via svn from here:
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
this most likely won't work. ffmpeg is changing rapidly (usually more rapidly than the application that rely on it) - so you will have to get a version that is known to work with PiDiP. in the notes it mentions ffmpeg >= 0.4.9, so you should probably get 0.4.9, and not the head of ffmpeg's repository.
until you get it, i suggest trying to compile pidip without ffmpeg support.
fgmasdr IOhannes
hi IOhannes
you are right, it compiles without ffmpeg. i moved my changed c_track object to the new pidip sources and it seems to work, i have to check it intensively in the next days.
the old pidip will not compile, guess it's what yves mentioned, my imagamagick version is too new. so if my project is not running with the new pidip i guess i have to downgrade imagemagick (cross my fingers for no dependency problems here :) but i hope i do not have to do that.
thanks a lot.
atb marc
IOhannes m zmoelnig wrote:
marc widmer wrote:
hi IOhannes
thanks for your inputs...
yes, pdp is installed an running (PDP: pure data packet version 0.12.5-darcs) ffmpeg is from cvs, but not from sourceforge, apparently ffmpeg moved to ffmpeg.org
i downloaded it via svn from here:
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
this most likely won't work. ffmpeg is changing rapidly (usually more rapidly than the application that rely on it) - so you will have to get a version that is known to work with PiDiP. in the notes it mentions ffmpeg >= 0.4.9, so you should probably get 0.4.9, and not the head of ffmpeg's repository.
until you get it, i suggest trying to compile pidip without ffmpeg support.
fgmasdr IOhannes
marc widmer wrote:
hi IOhannes
you are right, it compiles without ffmpeg. i moved my changed c_track object to the new pidip sources and it seems to work, i have to check it intensively in the next days.
the old pidip will not compile, guess it's what yves mentioned, my imagamagick version is too new. so if my project is not running with the new pidip i guess i have to downgrade imagemagick (cross my fingers for no dependency problems here :) but i hope i do not have to do that.
only if you use pdp_capture which i doubt...
best, sevy
thanks a lot.
atb marc
IOhannes m zmoelnig wrote:
marc widmer wrote:
hi IOhannes
thanks for your inputs...
yes, pdp is installed an running (PDP: pure data packet version 0.12.5-darcs) ffmpeg is from cvs, but not from sourceforge, apparently ffmpeg moved to ffmpeg.org
i downloaded it via svn from here:
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
this most likely won't work. ffmpeg is changing rapidly (usually more rapidly than the application that rely on it) - so you will have to get a version that is known to work with PiDiP. in the notes it mentions ffmpeg >= 0.4.9, so you should probably get 0.4.9, and not the head of ffmpeg's repository.
until you get it, i suggest trying to compile pidip without ffmpeg support.
fgmasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi list & yves
i tested my old patches and everything looks ok, beside a warning in the shell, that base64 is missing, is this important? so far everything worked.
i changed c_track in the source, so that it checks not one point, but a matrix of points. at the moment all these points are with fixed offset between each other. from pd i just set the start coordinates. furthermore i do check not the color of one pixel, but of all surrounding points (9 in total) and calculate the average. i do this to avoid tracking flickering pixel noises which sometimes occur when i grap video from my surveillance color cams.
at the moment this is rather a hack of your source then a proper enhancement, but maybe, if you think this could be usefull, a module lik c_track_matrix could be a goal. where one can send a list with coordinates to track and the area space surrounding that point.
i haven't checked the development of pidip since a while, maybe now there is already a better way to do this.
all the best marc
ydegoyon@gmail.com schrieb:
ydegoyon@gmail.com wrote:
marc widmer wrote:
hi IOhannes
you are right, it compiles without ffmpeg. i moved my changed c_track object to the new pidip sources and it seems to work
what are these changes anyway ? it might benefit to other people, no?
sevy
marc widmer wrote:
hi list & yves
i tested my old patches and everything looks ok, beside a warning in the shell, that base64 is missing, is this important? so far everything worked.
you need tcllib then, it is used in pdp_colorgrid to load a base64 encoded background image. of course, if you don't use pdp_colorgrid, no need for it.
i changed c_track in the source, so that it checks not one point, but a matrix of points. at the moment all these points are with fixed offset between each other. from pd i just set the start coordinates. furthermore i do check not the color of one pixel, but of all surrounding points (9 in total) and calculate the average. i do this to avoid tracking flickering pixel noises which sometimes occur when i grap video from my surveillance color cams.
scary, the name at least.
at the moment this is rather a hack of your source then a proper enhancement, but maybe, if you think this could be usefull, a module lik c_track_matrix could be a goal. where one can send a list with coordinates to track and the area space surrounding that point.
well, if you can send the modified version and a proper help patch with it, i could integrate it one day..
i haven't checked the development of pidip since a while, maybe now there is already a better way to do this.
there's not so much development going on in pidip, and even less in pdp. it's almost the same version than in 2004.
all the best marc
IOhannes m zmoelnig wrote:
marc widmer wrote:
hi IOhannes
thanks for your inputs...
yes, pdp is installed an running (PDP: pure data packet version 0.12.5-darcs) ffmpeg is from cvs, but not from sourceforge, apparently ffmpeg moved to ffmpeg.org
i downloaded it via svn from here:
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
this most likely won't work. ffmpeg is changing rapidly (usually more rapidly than the application that rely on it) - so you will have to get a version that is known to work with PiDiP. in the notes it mentions ffmpeg >= 0.4.9, so you should probably get 0.4.9, and not the head of ffmpeg's repository.
until you get it, i suggest trying to compile pidip without ffmpeg support.
you're right Iohannes, good advice
to get rid of ffmpeg, convert you files to .ogg with ffmpeg2theora and use pdp_theorin~, an easier way...
see you in Linz, Iohannes
shanti, sevy
fgmasdr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list