Hi list,
I am trying to compile pd-extended on arch linux according to the instructions here: http://puredata.info/docs/developer/GettingPdSource I checked out svn and follwed the instructions here: http://puredata.info/docs/developer/BuildingPdExtended
make install fails with:
GemPixImageLoad.cpp:64:23: fatal error: Magick++.h: No such file or directory compilation terminated
I have ImageMagick installed and Magick++.h is in /usr/include/ImageMagick/ as well as /usr/local/include/ImageMagick Do I have to modify my path or something?
thanks
James
hi james,
there's a PKGBUILD already available on AUR.. http://aur.archlinux.org/packages.php?ID=22509
tested very recently..
btw, you are missing imagemagick 'pacman -S imagemagick' should do the trick.
dmotd
James Dunn wrote:
Hi list,
I am trying to compile pd-extended on arch linux according to the instructions here: http://puredata.info/docs/developer/GettingPdSource I checked out svn and follwed the instructions here: http://puredata.info/docs/ developer/BuildingPdExtended
make install fails with:
GemPixImageLoad.cpp:64:23: fatal error: Magick++.h: No such file or directory compilation terminated
I have ImageMagick installed and Magick++.h is in /usr/include/ImageMagick/ as well as /usr/local/include/ImageMagick Do I have to modify my path or something?
thanks
James
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi dmotd,
thanks for the link. I tried the PKGBUILD and it fails at exactly the same point. I already have imagemagick installed and Magickk++.h is in /usr/include/ImageMagick
If i change Gem/src/Base/GemPixImageLoad.cpp line 64 from:
# include <Magick++.h>
to:
# include </usr/include/ImageMagick/Magick++.h>
it gets past the original error, but fails with the following error:
In file included from GemPixImageLoad.cpp:64:0: /usr/include/ImageMagick/Magick++.h:9:30: fatal error: Magick++/Include.h: No such file or directory compilation terminated.
So now it can't find Include.h, but Include.h is definitely located here: /usr/include/ImageMagick/Magick++/Include.h
Must be something to do with paths right? How to I solve this?
James
Quoth dmotd, on 05/07/10 14:30:
hi james,
there's a PKGBUILD already available on AUR.. http://aur.archlinux.org/packages.php?ID=22509
tested very recently..
btw, you are missing imagemagick 'pacman -S imagemagick' should do the trick.
dmotd
James Dunn wrote:
Hi list,
I am trying to compile pd-extended on arch linux according to the instructions here: http://puredata.info/docs/developer/GettingPdSource I checked out svn and follwed the instructions here: http://puredata.info/docs/ developer/BuildingPdExtended
make install fails with:
GemPixImageLoad.cpp:64:23: fatal error: Magick++.h: No such file or directory compilation terminated
I have ImageMagick installed and Magick++.h is in /usr/include/ImageMagick/ as well as /usr/local/include/ImageMagick Do I have to modify my path or something?
thanks
James
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
james,
i'm not at all sure what's wrong with your search paths,
if i run:
pacman -Qo locate Magick++.h
it reveals:
/usr/include/ImageMagick/Magick++.h is owned by imagemagick 6.6.2.0-1
checking for PKG_IMAGEMAGICK___CFLAGS... -fopenmp -I/usr/include/ImageMagick
checking for PKG_IMAGEMAGICK___LIBS... -lMagick++ -lMagickCore
--
i can only suggest to attempt updating your imagemagick package, and check that 'Magick++-config --cppflags' returns an accurate path to the imagemagick headers..
changing the #include to a full path is certainly the wrong way about fixing this.. a correct -I flag at compilation will yield far cleaner results.
for the record, here's the contents of my imagemagick include, yours should look similar. good luck.. -- $ find /usr/include/ImageMagick /usr/include/ImageMagick /usr/include/ImageMagick/wand /usr/include/ImageMagick/wand/magick-property.h /usr/include/ImageMagick/wand/drawing-wand.h /usr/include/ImageMagick/wand/composite.h /usr/include/ImageMagick/wand/display.h /usr/include/ImageMagick/wand/compare.h /usr/include/ImageMagick/wand/magick-image.h /usr/include/ImageMagick/wand/MagickWand.h /usr/include/ImageMagick/wand/pixel-wand.h /usr/include/ImageMagick/wand/mogrify.h /usr/include/ImageMagick/wand/magick_wand.h /usr/include/ImageMagick/wand/convert.h /usr/include/ImageMagick/wand/animate.h /usr/include/ImageMagick/wand/stream.h /usr/include/ImageMagick/wand/montage.h /usr/include/ImageMagick/wand/pixel-iterator.h /usr/include/ImageMagick/wand/pixel-view.h /usr/include/ImageMagick/wand/conjure.h /usr/include/ImageMagick/wand/identify.h /usr/include/ImageMagick/wand/deprecate.h /usr/include/ImageMagick/wand/import.h /usr/include/ImageMagick/wand/magick-wand.h /usr/include/ImageMagick/Magick++ /usr/include/ImageMagick/Magick++/Include.h /usr/include/ImageMagick/Magick++/Pixels.h /usr/include/ImageMagick/Magick++/Drawable.h /usr/include/ImageMagick/Magick++/STL.h /usr/include/ImageMagick/Magick++/Image.h /usr/include/ImageMagick/Magick++/Geometry.h /usr/include/ImageMagick/Magick++/CoderInfo.h /usr/include/ImageMagick/Magick++/Montage.h /usr/include/ImageMagick/Magick++/Color.h /usr/include/ImageMagick/Magick++/TypeMetric.h /usr/include/ImageMagick/Magick++/Exception.h /usr/include/ImageMagick/Magick++/Blob.h /usr/include/ImageMagick/magick /usr/include/ImageMagick/magick/delegate.h /usr/include/ImageMagick/magick/option.h /usr/include/ImageMagick/magick/hashmap.h /usr/include/ImageMagick/magick/memory_.h /usr/include/ImageMagick/magick/signature.h /usr/include/ImageMagick/magick/resample.h /usr/include/ImageMagick/magick/feature.h /usr/include/ImageMagick/magick/locale_.h /usr/include/ImageMagick/magick/MagickCore.h /usr/include/ImageMagick/magick/magick-type.h /usr/include/ImageMagick/magick/composite.h /usr/include/ImageMagick/magick/display.h /usr/include/ImageMagick/magick/magic.h /usr/include/ImageMagick/magick/compare.h /usr/include/ImageMagick/magick/histogram.h /usr/include/ImageMagick/magick/gem.h /usr/include/ImageMagick/magick/distort.h /usr/include/ImageMagick/magick/fourier.h /usr/include/ImageMagick/magick/pixel.h /usr/include/ImageMagick/magick/shear.h /usr/include/ImageMagick/magick/mime.h /usr/include/ImageMagick/magick/decorate.h /usr/include/ImageMagick/magick/artifact.h /usr/include/ImageMagick/magick/blob.h /usr/include/ImageMagick/magick/quantum.h /usr/include/ImageMagick/magick/configure.h /usr/include/ImageMagick/magick/threshold.h /usr/include/ImageMagick/magick/fx.h /usr/include/ImageMagick/magick/coder.h /usr/include/ImageMagick/magick/resize.h /usr/include/ImageMagick/magick/methods.h /usr/include/ImageMagick/magick/policy.h /usr/include/ImageMagick/magick/magick.h /usr/include/ImageMagick/magick/utility.h /usr/include/ImageMagick/magick/segment.h /usr/include/ImageMagick/magick/log.h /usr/include/ImageMagick/magick/xwindow.h /usr/include/ImageMagick/magick/semaphore.h /usr/include/ImageMagick/magick/colormap.h /usr/include/ImageMagick/magick/random_.h /usr/include/ImageMagick/magick/transform.h /usr/include/ImageMagick/magick/registry.h /usr/include/ImageMagick/magick/animate.h /usr/include/ImageMagick/magick/magick-config.h /usr/include/ImageMagick/magick/compress.h /usr/include/ImageMagick/magick/client.h /usr/include/ImageMagick/magick/splay-tree.h /usr/include/ImageMagick/magick/cache.h /usr/include/ImageMagick/magick/colorspace.h /usr/include/ImageMagick/magick/paint.h /usr/include/ImageMagick/magick/matrix.h /usr/include/ImageMagick/magick/constitute.h /usr/include/ImageMagick/magick/stream.h /usr/include/ImageMagick/magick/cache-view.h /usr/include/ImageMagick/magick/list.h /usr/include/ImageMagick/magick/montage.h /usr/include/ImageMagick/magick/accelerate.h /usr/include/ImageMagick/magick/type.h /usr/include/ImageMagick/magick/version.h /usr/include/ImageMagick/magick/profile.h /usr/include/ImageMagick/magick/exception.h /usr/include/ImageMagick/magick/ImageMagick.h /usr/include/ImageMagick/magick/api.h /usr/include/ImageMagick/magick/prepress.h /usr/include/ImageMagick/magick/enhance.h /usr/include/ImageMagick/magick/quantize.h /usr/include/ImageMagick/magick/timer.h /usr/include/ImageMagick/magick/PreRvIcccm.h /usr/include/ImageMagick/magick/xml-tree.h /usr/include/ImageMagick/magick/draw.h /usr/include/ImageMagick/magick/statistic.h /usr/include/ImageMagick/magick/color.h /usr/include/ImageMagick/magick/annotate.h /usr/include/ImageMagick/magick/image.h /usr/include/ImageMagick/magick/morphology.h /usr/include/ImageMagick/magick/identify.h /usr/include/ImageMagick/magick/deprecate.h /usr/include/ImageMagick/magick/module.h /usr/include/ImageMagick/magick/token.h /usr/include/ImageMagick/magick/attribute.h /usr/include/ImageMagick/magick/layer.h /usr/include/ImageMagick/magick/string_.h /usr/include/ImageMagick/magick/monitor.h /usr/include/ImageMagick/magick/cipher.h /usr/include/ImageMagick/magick/effect.h /usr/include/ImageMagick/magick/property.h /usr/include/ImageMagick/magick/widget.h /usr/include/ImageMagick/magick/resource_.h /usr/include/ImageMagick/magick/geometry.h /usr/include/ImageMagick/Magick++.h --
James Dunn wrote:
Hi dmotd,
thanks for the link. I tried the PKGBUILD and it fails at exactly the same point. I already have imagemagick installed and Magickk++.h is in /usr/include/ImageMagick
If i change Gem/src/Base/GemPixImageLoad.cpp line 64 from:
# include <Magick++.h>
to:
# include </usr/include/ImageMagick/Magick++.h>
it gets past the original error, but fails with the following error:
In file included from GemPixImageLoad.cpp:64:0: /usr/include/ImageMagick/Magick++.h:9:30: fatal error: Magick++/Include.h: No such file or directory compilation terminated.
So now it can't find Include.h, but Include.h is definitely located here: /usr/include/ImageMagick/Magick++/Include.h
Must be something to do with paths right? How to I solve this?
James
Quoth dmotd, on 05/07/10 14:30:
hi james,
there's a PKGBUILD already available on AUR.. http://aur.archlinux.org/packages.php?ID=22509
tested very recently..
btw, you are missing imagemagick 'pacman -S imagemagick' should do the trick.
dmotd
James Dunn wrote:
Hi list,
I am trying to compile pd-extended on arch linux according to the instructions here: http://puredata.info/docs/developer/GettingPdSource I checked out svn and follwed the instructions here: http://puredata.info/docs/ developer/BuildingPdExtended
make install fails with:
GemPixImageLoad.cpp:64:23: fatal error: Magick++.h: No such file or directory compilation terminated
I have ImageMagick installed and Magick++.h is in /usr/include/ImageMagick/ as well as /usr/local/include/ImageMagick Do I have to modify my path or something?
thanks
James _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Seems like I just had to install pkg-config. It now finds the imagemagick library but fails with a new error:
videoV4L2.cpp:300:2: warning: #warning implement fromBGRA
videoV4L2.cpp:602:2: warning: #warning RGB32 vs BGRA confusion
videoV4L2.cpp: In member function ‘virtual int
videoV4L2::startTransfer(int)’:
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
make[3]: *** [videoV4L2.o] Error 1
make[3]: Leaving directory /home/james/pd-extended/Gem/src/Pixes' make[2]: *** [Pixes] Error 2 make[2]: Leaving directory
/home/james/pd-extended/Gem/src'
make[1]: *** [/home/james/pd-extended/Gem/src/Gem.pd_linux] Error 2
make[1]: Leaving directory `/home/james/pd-extended/packages'
make: *** [install] Error 2
Am I missing a library perhaps?
James
Quoth dmotd, on 05/07/10 16:44:
james,
i'm not at all sure what's wrong with your search paths, if i run: pacman -Qo
locate Magick++.h
it reveals: /usr/include/ImageMagick/Magick++.h is owned by imagemagick 6.6.2.0-1this path should be found by Gem's configure stage, ie:
checking for PKG_IMAGEMAGICK___CFLAGS... -fopenmp -I/usr/include/ImageMagick checking for PKG_IMAGEMAGICK___LIBS... -lMagick++ -lMagickCore --
i can only suggest to attempt updating your imagemagick package, and check that 'Magick++-config --cppflags' returns an accurate path to the imagemagick headers..
changing the #include to a full path is certainly the wrong way about fixing this.. a correct -I flag at compilation will yield far cleaner results.
for the record, here's the contents of my imagemagick include, yours should look similar. good luck.. -- $ find /usr/include/ImageMagick /usr/include/ImageMagick /usr/include/ImageMagick/wand /usr/include/ImageMagick/wand/magick-property.h /usr/include/ImageMagick/wand/drawing-wand.h /usr/include/ImageMagick/wand/composite.h /usr/include/ImageMagick/wand/display.h /usr/include/ImageMagick/wand/compare.h /usr/include/ImageMagick/wand/magick-image.h /usr/include/ImageMagick/wand/MagickWand.h /usr/include/ImageMagick/wand/pixel-wand.h /usr/include/ImageMagick/wand/mogrify.h /usr/include/ImageMagick/wand/magick_wand.h /usr/include/ImageMagick/wand/convert.h /usr/include/ImageMagick/wand/animate.h /usr/include/ImageMagick/wand/stream.h /usr/include/ImageMagick/wand/montage.h /usr/include/ImageMagick/wand/pixel-iterator.h /usr/include/ImageMagick/wand/pixel-view.h /usr/include/ImageMagick/wand/conjure.h /usr/include/ImageMagick/wand/identify.h /usr/include/ImageMagick/wand/deprecate.h /usr/include/ImageMagick/wand/import.h /usr/include/ImageMagick/wand/magick-wand.h /usr/include/ImageMagick/Magick++ /usr/include/ImageMagick/Magick++/Include.h /usr/include/ImageMagick/Magick++/Pixels.h /usr/include/ImageMagick/Magick++/Drawable.h /usr/include/ImageMagick/Magick++/STL.h /usr/include/ImageMagick/Magick++/Image.h /usr/include/ImageMagick/Magick++/Geometry.h /usr/include/ImageMagick/Magick++/CoderInfo.h /usr/include/ImageMagick/Magick++/Montage.h /usr/include/ImageMagick/Magick++/Color.h /usr/include/ImageMagick/Magick++/TypeMetric.h /usr/include/ImageMagick/Magick++/Exception.h /usr/include/ImageMagick/Magick++/Blob.h /usr/include/ImageMagick/magick /usr/include/ImageMagick/magick/delegate.h /usr/include/ImageMagick/magick/option.h /usr/include/ImageMagick/magick/hashmap.h /usr/include/ImageMagick/magick/memory_.h /usr/include/ImageMagick/magick/signature.h /usr/include/ImageMagick/magick/resample.h /usr/include/ImageMagick/magick/feature.h /usr/include/ImageMagick/magick/locale_.h /usr/include/ImageMagick/magick/MagickCore.h /usr/include/ImageMagick/magick/magick-type.h /usr/include/ImageMagick/magick/composite.h /usr/include/ImageMagick/magick/display.h /usr/include/ImageMagick/magick/magic.h /usr/include/ImageMagick/magick/compare.h /usr/include/ImageMagick/magick/histogram.h /usr/include/ImageMagick/magick/gem.h /usr/include/ImageMagick/magick/distort.h /usr/include/ImageMagick/magick/fourier.h /usr/include/ImageMagick/magick/pixel.h /usr/include/ImageMagick/magick/shear.h /usr/include/ImageMagick/magick/mime.h /usr/include/ImageMagick/magick/decorate.h /usr/include/ImageMagick/magick/artifact.h /usr/include/ImageMagick/magick/blob.h /usr/include/ImageMagick/magick/quantum.h /usr/include/ImageMagick/magick/configure.h /usr/include/ImageMagick/magick/threshold.h /usr/include/ImageMagick/magick/fx.h /usr/include/ImageMagick/magick/coder.h /usr/include/ImageMagick/magick/resize.h /usr/include/ImageMagick/magick/methods.h /usr/include/ImageMagick/magick/policy.h /usr/include/ImageMagick/magick/magick.h /usr/include/ImageMagick/magick/utility.h /usr/include/ImageMagick/magick/segment.h /usr/include/ImageMagick/magick/log.h /usr/include/ImageMagick/magick/xwindow.h /usr/include/ImageMagick/magick/semaphore.h /usr/include/ImageMagick/magick/colormap.h /usr/include/ImageMagick/magick/random_.h /usr/include/ImageMagick/magick/transform.h /usr/include/ImageMagick/magick/registry.h /usr/include/ImageMagick/magick/animate.h /usr/include/ImageMagick/magick/magick-config.h /usr/include/ImageMagick/magick/compress.h /usr/include/ImageMagick/magick/client.h /usr/include/ImageMagick/magick/splay-tree.h /usr/include/ImageMagick/magick/cache.h /usr/include/ImageMagick/magick/colorspace.h /usr/include/ImageMagick/magick/paint.h /usr/include/ImageMagick/magick/matrix.h /usr/include/ImageMagick/magick/constitute.h /usr/include/ImageMagick/magick/stream.h /usr/include/ImageMagick/magick/cache-view.h /usr/include/ImageMagick/magick/list.h /usr/include/ImageMagick/magick/montage.h /usr/include/ImageMagick/magick/accelerate.h /usr/include/ImageMagick/magick/type.h /usr/include/ImageMagick/magick/version.h /usr/include/ImageMagick/magick/profile.h /usr/include/ImageMagick/magick/exception.h /usr/include/ImageMagick/magick/ImageMagick.h /usr/include/ImageMagick/magick/api.h /usr/include/ImageMagick/magick/prepress.h /usr/include/ImageMagick/magick/enhance.h /usr/include/ImageMagick/magick/quantize.h /usr/include/ImageMagick/magick/timer.h /usr/include/ImageMagick/magick/PreRvIcccm.h /usr/include/ImageMagick/magick/xml-tree.h /usr/include/ImageMagick/magick/draw.h /usr/include/ImageMagick/magick/statistic.h /usr/include/ImageMagick/magick/color.h /usr/include/ImageMagick/magick/annotate.h /usr/include/ImageMagick/magick/image.h /usr/include/ImageMagick/magick/morphology.h /usr/include/ImageMagick/magick/identify.h /usr/include/ImageMagick/magick/deprecate.h /usr/include/ImageMagick/magick/module.h /usr/include/ImageMagick/magick/token.h /usr/include/ImageMagick/magick/attribute.h /usr/include/ImageMagick/magick/layer.h /usr/include/ImageMagick/magick/string_.h /usr/include/ImageMagick/magick/monitor.h /usr/include/ImageMagick/magick/cipher.h /usr/include/ImageMagick/magick/effect.h /usr/include/ImageMagick/magick/property.h /usr/include/ImageMagick/magick/widget.h /usr/include/ImageMagick/magick/resource_.h /usr/include/ImageMagick/magick/geometry.h /usr/include/ImageMagick/Magick++.h --
James Dunn wrote:
Hi dmotd,
thanks for the link. I tried the PKGBUILD and it fails at exactly the same point. I already have imagemagick installed and Magickk++.h is in /usr/include/ImageMagick
If i change Gem/src/Base/GemPixImageLoad.cpp line 64 from:
# include<Magick++.h>
to:
# include</usr/include/ImageMagick/Magick++.h>
it gets past the original error, but fails with the following error:
In file included from GemPixImageLoad.cpp:64:0: /usr/include/ImageMagick/Magick++.h:9:30: fatal error: Magick++/Include.h: No such file or directory compilation terminated.
So now it can't find Include.h, but Include.h is definitely located here: /usr/include/ImageMagick/Magick++/Include.h
Must be something to do with paths right? How to I solve this?
James
Quoth dmotd, on 05/07/10 14:30:
hi james,
there's a PKGBUILD already available on AUR.. http://aur.archlinux.org/packages.php?ID=22509
tested very recently..
btw, you are missing imagemagick 'pacman -S imagemagick' should do the trick.
dmotd
James Dunn wrote:
Hi list,
I am trying to compile pd-extended on arch linux according to the instructions here: http://puredata.info/docs/developer/GettingPdSource I checked out svn and follwed the instructions here: http://puredata.info/docs/ developer/BuildingPdExtended
make install fails with:
GemPixImageLoad.cpp:64:23: fatal error: Magick++.h: No such file or directory compilation terminated
I have ImageMagick installed and Magick++.h is in /usr/include/ImageMagick/ as well as /usr/local/include/ImageMagick Do I have to modify my path or something?
thanks
James _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Tue, 6 Jul 2010, James Dunn wrote:
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 Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
Mathieu Bouchard wrote:
On Tue, 6 Jul 2010, James Dunn wrote:
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>
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
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?
No, they are preprocessor directives that go in a .c file. But you should not have to change the source code to get it to compile. Something else is wrong.
Martin
On Wed, 7 Jul 2010, Martin Peach wrote:
No, they are preprocessor directives that go in a .c file. But you should not have to change the source code to get it to compile. Something else is wrong.
Typically, what is wrong, is that on some OSes and some versions of OSes, some #includes are invoked from some other #includes, in a way that may cause fstat() (for example) to be accidentally visible, when you're supposed to have to say #include <sys/stat.h>.
And yes, S_ISCHR is really in <linux/stat.h>. This choice of a different header is typically for things that are so OS-specific, that you wouldn't be able to use it if you used versions of the same tools (Free Software Foundation's) on any other OS ; whereas extensions that were added by Free Software Foundation in a way usable on OSX and Windows, would end up in the main header, and not the linux header.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
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
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Ok I added it to src/Pixes/videoV4L2.h and it compiles. I did make package too, and that worked. Then I extracted the archive and tried to install it but it complained that it couldn't find iemlib/-help.pd and iemlib/parent-help.pd so I created empty files with those names in the iemlib folder and it installed.
I've now added all the libraries to .pdextended but there are no objects in the Gem library! Excluding the help files, this is the contents of /usr/lib/pd-extended/extra/Gem:
gemdefaultwindow.pd gemhead.pd gemmouse.pd gemorb.pd Gem.pd_linux gemtablet.pd gemwin.pd hsv2rgb.pd pix_blobtracker.pd pix_buffer_filmopen.pd pix_write.pd rgb2hsv.pd rgb2yuv.pd yuv2rgb.pd
So I can create [gemwin], [gemorb], [gemmouse] etc.. but most of the objects are missing. Also, [gemwin] has the following error in the console, so something is definitely still really wrong:
gemglutwindow ... couldn't create expr, expr~, fexpr~ version 0.4 under GNU General Public License GLdefine GL_LINEAR ... couldn't create GLdefine GL_EXP ... couldn't create GLdefine GL_EXP2 ... couldn't create GLdefine GL_COLOR_BUFFER_BIT ... couldn't create GLdefine GL_DEPTH_BUFFER_BIT ... couldn't create GLdefine GL_STENCIL_BUFFER_BIT ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglMatrixMode GL_PROJECTION ... couldn't create GEMglLoadIdentity ... couldn't create GEMglFrustum -1 1 -1 1 1 20 ... couldn't create GEMglViewport 0 0 500 500 ... couldn't create GEMglDisable GL_FOG ... couldn't create GEMglEnable GL_FOG ... couldn't create GEMglFogf ... couldn't create GLdefine GL_FOG_DENSITY ... couldn't create GEMglFogf ... couldn't create GLdefine GL_FOG_MODE ... couldn't create GEMglFogf ... couldn't create GLdefine GL_FOG_START ... couldn't create GEMglFogf ... couldn't create GLdefine GL_FOG_END ... couldn't create GEMglFogfv ... couldn't create GLdefine GL_FOG_COLOR ... couldn't create GEMglDisable GL_COLOR_MATERIAL ... couldn't create GEMglDisable GL_AUTO_NORMAL ... couldn't create GEMglDisable GL_NORMALIZE ... couldn't create GEMglShadeModel GL_FLAT ... couldn't create GEMglLightModeli ... couldn't create GLdefine GL_LIGHT_MODEL_TWO_SIDE ... couldn't create GLdefine GL_FALSE ... couldn't create GEMglLightModeli ... couldn't create GLdefine GL_LIGHT_MODEL_TWO_SIDE ... couldn't create GLdefine GL_TRUE ... couldn't create GEMglEnable GL_LIGHTING ... couldn't create GEMglEnable GL_COLOR_MATERIAL ... couldn't create GEMglEnable GL_AUTO_NORMAL ... couldn't create GEMglEnable GL_NORMALIZE ... couldn't create GEMglShadeModel GL_SMOOTH ... couldn't create GEMglMaterialfv GL_FRONT_AND_BACK GL_AMBIENT 0.1 0.1 0.1 1 ... couldn't create GEMglMaterialfv GL_FRONT_AND_BACK GL_SPECULAR 1 1 1 1 ... couldn't create GEMglMaterialfv GL_FRONT_AND_BACK GL_SHININESS 100 ... couldn't create GEMglDisable GL_LIGHTING ... couldn't create GEMglClearColor ... couldn't create GEMglClear 17664 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglDisable GL_LIGHTING ... couldn't create GEMglViewport 0 0 500 500 ... couldn't create GEMglMatrixMode GL_PROJECTION ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglFrustum -1 1 -1 1 1 20 ... couldn't create GEMglLoadIdentity ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLineWidth 2 ... couldn't create GEMglColor3f 1 1 1 ... couldn't create GEMglBegin GL_LINES ... couldn't create GEMglVertex2f 0 -6 ... couldn't create GEMglVertex2f 0 6 ... couldn't create GEMglEnd ... couldn't create GEMglLineWidth 1 ... couldn't create GEMglMatrixMode GL_PROJECTION ... couldn't create GEMglLoadIdentity ... couldn't create GEMglFrustum -1 1 -1 1 1 20 ... couldn't create GEMglViewport 0 0 250 500 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglMatrixMode GL_PROJECTION ... couldn't create GEMglLoadIdentity ... couldn't create GEMglFrustum -1 1 -1 1 1 20 ... couldn't create GEMglViewport 0 0 250 500 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create gemlist ... couldn't create gemlist ... couldn't create GEMglGetFloatv GL_STEREO ... couldn't create GEMglColorMask 1 1 1 1 ... couldn't create GEMglFrustum -1 1 -1 1 1 20 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglFrustum -1 1 -1 1 1 20 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglColorMask 1 1 1 1 ... couldn't create GEMglColorMask 1 1 1 1 ... couldn't create GEMglClear ... couldn't create GEMglClear ... couldn't create GEMglClear ... couldn't create GEMglClear ... couldn't create GLdefine GL_COLOR_BUFFER_BIT ... couldn't create GLdefine GL_DEPTH_BUFFER_BIT ... couldn't create GLdefine GL_STENCIL_BUFFER_BIT ... couldn't create GLdefine GL_ACCUM_BUFFER_BIT ... couldn't create gemlist ... couldn't create gemlist ... couldn't create GEMglColorMask 1 1 1 1 ... couldn't create GEMglFrustum -1 1 -1 1 1 20 ... couldn't create GEMglMatrixMode GL_PROJECTION ... couldn't create GEMglLoadIdentity ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglFrustum -1 1 -1 1 1 20 ... couldn't create GEMglMatrixMode GL_PROJECTION ... couldn't create GEMglLoadIdentity ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglLoadIdentity ... couldn't create GEMgluLookAt 0 0 4 0 0 0 0 1 0 ... couldn't create GEMglDrawBuffer GL_BACK_LEFT ... couldn't create GEMglClear ... couldn't create GLdefine GL_COLOR_BUFFER_BIT ... couldn't create GLdefine GL_DEPTH_BUFFER_BIT ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglDrawBuffer GL_BACK_RIGHT ... couldn't create GEMglClear ... couldn't create GLdefine GL_COLOR_BUFFER_BIT ... couldn't create GLdefine GL_DEPTH_BUFFER_BIT ... couldn't create GEMglMatrixMode GL_MODELVIEW ... couldn't create GEMglClear ... couldn't create GLdefine GL_DEPTH_BUFFER_BIT ... couldn't create gemlist ... couldn't create gemlist ... couldn't create GEMglReportError ... couldn't create gemlist ... couldn't create
Quoth dmotd, on 07/07/10 14:13:
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've now tried downloading and compiling Gem 0.92-3 separately to see if I can find out what's going on. Can anyone see if there's a problem with this configure stage? There is a section at the bottom that shows tiff and jpeg as well as some video codecs are not supported...
$ ./configure checking for Base/configLinux.h.in... yes checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... /bin/install -c checking whether ln -s works... yes checking whether compiler accepts "-fPIC"... yes building Gem with Controls-objects building Gem with Geos-objects building Gem with Manips-objects building Gem with Nongeos-objects building Gem with Particles-objects building Gem with Pixes-objects building Gem with openGL-objects building Gem without Vertex-objects checking for sin in -lm... yes checking for main in -lz... yes checking for dlopen in -ldl... yes checking how to run the C++ preprocessor... g++ -E checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for main in -lX11... yes checking for main in -lXext... yes checking for XF86VidModeGetAllModeLines in -lXxf86vm... yes checking for main in -lXext... (cached) yes checking for "OpenGL"-framework... no checking for glInitNames in -lGL... yes checking for gluLookAt in -lGLU... yes checking for "AGL"-framework... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for PKG_GLEW_CFLAGS... checking for PKG_GLEW_LIBS... checking for glew-config... no checking for glewInit in -lGLEW... no checking for main in -lstdc++... yes checking for "Carbon"-framework... no checking for "QuickTime"-framework... no checking for PKG_IMAGEMAGICK___CFLAGS... -fopenmp -I/usr/include/ImageMagick checking for PKG_IMAGEMAGICK___LIBS... -lMagick++ -lMagickCore checking for PKG_GMERLIN_AVDEC_CFLAGS... checking for PKG_GMERLIN_AVDEC_LIBS... -lgmerlin_avdec -lgavl gmerlin was found...disabling other video-decoders by default checking for PKG_LIBQUICKTIME_CFLAGS... -I/usr/include/lqt checking for PKG_LIBQUICKTIME_LIBS... -lquicktime -lpthread -lm -lz -ldl checking for PKG_LQT_CFLAGS... checking for PKG_LQT_LIBS... checking for lqt-config... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking linux/videodev.h usability... yes checking linux/videodev.h presence... yes checking for linux/videodev.h... yes checking for PKG_LIBV4L1_CFLAGS... -I/usr/local/include checking for PKG_LIBV4L1_LIBS... -lv4l1 checking for PKG_LIBV4L2_CFLAGS... -I/usr/local/include checking for PKG_LIBV4L2_LIBS... -lv4l2 checking for PKG_IEEE1394_CFLAGS... checking for PKG_IEEE1394_LIBS... checking for ieee1394-config... no checking for main in -ldv... yes checking whether linker accepts "-lftgl_pic "... no checking for PKG_FTGL_CFLAGS... -I/usr/include/FTGL -I/usr/include/freetype2 checking for PKG_FTGL_LIBS... -lftgl checking for PKG_ARTOOLKIT_CFLAGS... checking for PKG_ARTOOLKIT_LIBS... checking for artoolkit-config... no checking for arInitCparam in -lAR... no checking for pthread_create in -lpthread... yes checking for X... libraries , headers checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking for memory.h... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking size of unsigned int... 4 checking size of void *... 4 checking for error_at_line... yes checking for pid_t... yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... no checking for bzero... yes checking for floor... yes checking for gettimeofday... yes checking for memset... yes checking for munmap... yes checking for pow... yes checking for sqrt... yes checking for strchr... yes checking for strdup... yes checking for strrchr... yes checking for strstr... yes checking for lqt_open_write... yes checking m_pd.h usability... yes checking m_pd.h presence... yes checking for m_pd.h... yes checking for s_stuff.h... no checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking OpenGL/gl.h usability... no checking OpenGL/gl.h presence... no checking for OpenGL/gl.h... no checking GL/glu.h usability... yes checking GL/glu.h presence... yes checking for GL/glu.h... yes checking OpenGL/glu.h usability... no checking OpenGL/glu.h presence... no checking for OpenGL/glu.h... no checking whether compiler accepts "-freg-struct-return"... yes enabling "register struct return" allows to make use of FreeFrame-effects without recompiling them might break things, if you are using several different compilers checking whether compiler accepts "-O3"... yes checking whether compiler accepts "-falign-loops=32 -falign-functions=32 -falign-jumps=32 -funroll-loops"... yes checking whether compiler accepts "-ffast-math"... yes
checking whether compiler accepts "-mmmx"... yes checking whether compiler accepts "-fpascal-strings"... no checking whether linker accepts "-shared -Wl,--export-dynamic"... yes checking whether linker accepts "-dynamiclib -mmacosx-version-min=10.3 -undefined dynamic_lookup"... no checking whether linker accepts "-bundle -undefined suppress -flat_namespace"... no checking for strip... strip checking if strip is GNU strip... yes checking for dos2unix... no configure: creating ./config.status config.status: creating Make.config config.status: creating Base/configLinux.h config.status: Base/configLinux.h is unchanged
Result: Target : Gem.pd_linux Objects : Base Controls Geos Manips Nongeos Particles Pixes openGL
Configuration:
Compiler : g++
CXXFLAGS : -g -O2 -fPIC -freg-struct-return -O3
-falign-loops=32 -falign-functions=32 -falign-jumps=32 -funroll-loops
-ffast-math -mmmx
: -I/usr/include/lqt -fopenmp
-I/usr/include/ImageMagick -I/usr/include/lqt
-I/usr/local/include -I/usr/local/include -I/usr/include/FTGL
-I/usr/include/freetype2
INCLUDES : -I/usr/include/FTGL -I/usr/include/freetype2
DEFINES :
LIBS : -ldv -lstdc++ -lGLU -lGL -lXext -lXxf86vm
-lXext -lX11 -ldl -lz -lm -lpthread
: -lftgl -lv4l2 -lv4l1 -L/usr/lib -lquicktime
-lpthread -lm -lz -ldl -lquicktime -lpthread -lm -lz -ldl
-lgmerlin_avdec -lgavl -lMagick++ -lMagickCore
LDFLAGS : -shared -Wl,--export-dynamic
:
Strip : strip --strip-unneeded
Install path : /usr/local
pure-data: version : 0.42 extension : pd_linux
used optional libraries:
font-rendering : FTGL
image-support use ImageMagick : yes use TIFF : no (forced) use JPEG : no (forced) video-support use mpeg : no (forced) use mpeg-3 : no (forced) use QuickTime : yes use aviplay : no (forced) use gmerlin : yes input-support use v4l : yes (libv4l) use ieee1394 : yes
Now run make ...