Le 15 juin 09 à 13:51, IOhannes m zmoelnig a écrit :
Jack wrote:
Hello Iohannes,
if you want to compile Gem with native libv4l support, make sure that you also have the _development_ packages for libv4l installed ("libv4l-devel" or the like on rpm-based distros)
Both (libv4l-0 version 0.5.8-1 and libv4l-dev version 0.5.8-1) have been installed with synaptic. I try apt-get install libv4l-dev, but i get a confirmation that i have the most recent version.
oh, i somehow had the impression that you were using fedora. anyhow, you did as i would have told you :-)
No no, Ubuntu 9.04.
I don't know if that can help you to understand but the pidip object [pdp_v4l2] works fine here.
no, that's unrelated, as pdp does not use libv4l (yet).
if you want to just use the LD_PRELOAD hack, then you won't see the "video4linux2" line when starting Gem but it should work anyhow...
No, i don't want :)
good.
But if it is the only one solution, i will try it. Any Idea ?
i think you might be missing pkg-config ("apt-get install pkg- config"), which is used by Gem's configure to detect relevant flags for installed libraries.
pkg-config was installed.
if this doesn't help either, you would need to post the entire configure output.
OK :
checking for Base/configLinux.h.in... yes checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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... /usr/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... no 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 "Carbon"-framework... no checking for "QuickTime"-framework... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for PKG_IMAGEMAGICK___CFLAGS... checking for PKG_IMAGEMAGICK___LIBS... checking for ImageMagick++-config... no checking for main in -lMagick++... no checking for PKG_TIFF_CFLAGS... checking for PKG_TIFF_LIBS... checking for tiff-config... no checking for TIFFOpen in -ltiff... yes checking for PKG_JPEG_CFLAGS... checking for PKG_JPEG_LIBS... checking for jpeg-config... no checking for jpeg_read_header in -ljpeg... yes 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 PKG_MPEG3_CFLAGS... checking for PKG_MPEG3_LIBS... checking for mpeg3-config... no checking for mpeg3_check_sig in -lmpeg3... yes checking for PKG_MPEG_CFLAGS... checking for PKG_MPEG_LIBS... checking for mpeg-config... no checking for OpenMPEG in -lmpeg... no checking for PKG_AVIFILE_CFLAGS... checking for PKG_AVIFILE_LIBS... checking for avifile-config... no checking for CreateIAviReadFile in -laviplay... no checking for PKG_FFMPEG_CFLAGS... checking for PKG_FFMPEG_LIBS... checking for ffmpeg-config... no checking for av_open_input_file in -lavformat... no 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_IEEE1394_CFLAGS... checking for PKG_IEEE1394_LIBS... checking for ieee1394-config... no checking for main in -ldv... no 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 getpagesize... yes checking for working mmap... yes 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 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 -I/usr/include/lqt -I/usr/include/FTGL -I/usr/include/freetype2 INCLUDES : -I/usr/include/FTGL -I/usr/include/ freetype2 DEFINES :
LIBS : -lmpeg3 -ljpeg -ltiff -lGLU -lGL -lXext - lXext -lX11 -ldl -lz -lm -lpthread : -lftgl -L/usr/lib -lquicktime -lpthread -lm -lz -ldl -lquicktime -lpthread -lm -lz -ldl LDFLAGS : -shared -Wl,-export-dynamic :
Strip : strip --strip-unneeded
Install path : /usr/local
pure-data: version : 0.41 extension : pd_linux
used optional libraries:
font-rendering : FTGL
image-support use ImageMagick : no use TIFF : yes use JPEG : yes video-support use mpeg : no use mpeg-3 : yes use QuickTime : yes use aviplay : no use ffmpeg : no input-support use v4l : yes use ieee1394 : no
Thanx. ++
Jack
fgasdmr IOhannes