not able to build libv4lconvert on Ubuntu 16.04

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there !

I've tried to build libv4lconvert (ubuntu 16.04, 64bits) cloning the git.

After removing the first line of the Makefile in the libv4lconvert
directory (that was set to arm architecture), the problem was that it
didn't find "linux/videodev.h".

I tried:

sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h

but that was the same.

I tried:

sudo ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h

and then it told me a lot things (that i don't understand):

In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1:0,
                 from /usr/include/linux/ioctl.h:4,
                 from ../libv4lconvert/libv4lsyscall-priv.h:41,
                 from log.c:21:
log.c:42:11: error: ‘VIDIOCKEY’ undeclared here (not in a function)
  [_IOC_NR(VIDIOCKEY)]        = "VIDIOCKEY",
...

Here's the complete log:


bobby@bobby-E202SA:~/Bureau/libv4lconvert$ git clone
https://github.com/ashwing920/libv4lconvert.git
Clonage dans 'libv4lconvert'...
remote: Counting objects: 113, done.
remote: Total 113 (delta 0), reused 0 (delta 0), pack-reused 113
Réception d'objets: 100% (113/113), 522.41 KiB | 687.00 KiB/s, fait.
Résolution des deltas: 100% (24/24), fait.
Vérification de la connectivité... fait.
bobby@bobby-E202SA:~/Bureau/libv4lconvert$ make
make: *** Pas de cible spécifiée et aucun makefile n'a été trouvé. Arrêt.
bobby@bobby-E202SA:~/Bureau/libv4lconvert$ cd li*
bobby@bobby-E202SA:~/Bureau/libv4lconvert/libv4lconvert$ make
make -C libv4lconvert V4L2_LIB_VERSION=0.6.2-test all
make[1] : on entre dans le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4lconvert »
cc -Wp,-MMD,"libv4lconvert.d",-MQ,"libv4lconvert.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -DLIBDIR=\"/usr/local/lib\"
-DLIBSUBDIR=\"libv4l\" -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o libv4lconvert.o libv4lconvert.c
cc -Wp,-MMD,"sn9c10x.d",-MQ,"sn9c10x.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -DLIBDIR=\"/usr/local/lib\"
-DLIBSUBDIR=\"libv4l\" -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o sn9c10x.o sn9c10x.c
cc -Wp,-MMD,"pac207.d",-MQ,"pac207.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -DLIBDIR=\"/usr/local/lib\"
-DLIBSUBDIR=\"libv4l\" -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o pac207.o pac207.c
cc -Wp,-MMD,"mr97310a.d",-MQ,"mr97310a.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -DLIBDIR=\"/usr/local/lib\"
-DLIBSUBDIR=\"libv4l\" -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o mr97310a.o mr97310a.c
cc -Wp,-MMD,"flip.d",-MQ,"flip.o",-MP -c -I../include -I../../../include
-fvisibility=hidden -DLIBDIR=\"/usr/local/lib\" -DLIBSUBDIR=\"libv4l\"
-g -O1 -Wall -Wno-unused -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -o flip.o flip.c
cc -Wp,-MMD,"crop.d",-MQ,"crop.o",-MP -c -I../include -I../../../include
-fvisibility=hidden -DLIBDIR=\"/usr/local/lib\" -DLIBSUBDIR=\"libv4l\"
-g -O1 -Wall -Wno-unused -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -o crop.o crop.c
cc -Wp,-MMD,"jidctflt.d",-MQ,"jidctflt.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -DLIBDIR=\"/usr/local/lib\"
-DLIBSUBDIR=\"libv4l\" -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o jidctflt.o jidctflt.c
cc -Wp,-MMD,"rgbyuv.d",-MQ,"rgbyuv.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -DLIBDIR=\"/usr/local/lib\"
-DLIBSUBDIR=\"libv4l\" -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o rgbyuv.o rgbyuv.c
cc -Wp,-MMD,"sn9c2028-decomp.d",-MQ,"sn9c2028-decomp.o",-MP -c
-I../include -I../../../include -fvisibility=hidden
-DLIBDIR=\"/usr/local/lib\" -DLIBSUBDIR=\"libv4l\" -g -O1 -Wall
-Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o
sn9c2028-decomp.o sn9c2028-decomp.c
cc -Wp,-MMD,"bayer.d",-MQ,"bayer.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -DLIBDIR=\"/usr/local/lib\"
-DLIBSUBDIR=\"libv4l\" -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o bayer.o bayer.c
cc -Wp,-MMD,"hm12.d",-MQ,"hm12.o",-MP -c -I../include -I../../../include
-fvisibility=hidden -DLIBDIR=\"/usr/local/lib\" -DLIBSUBDIR=\"libv4l\"
-g -O1 -Wall -Wno-unused -Wpointer-arith -Wstrict-prototypes
-Wmissing-prototypes -o hm12.o hm12.c
cc -Wp,-MMD,"control/libv4lcontrol.d",-MQ,"control/libv4lcontrol.o",-MP
-c -I../include -I../../../include -fvisibility=hidden
-DLIBDIR=\"/usr/local/lib\" -DLIBSUBDIR=\"libv4l\" -g -O1 -Wall
-Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o
control/libv4lcontrol.o control/libv4lcontrol.c
control/libv4lcontrol.c: In function ‘v4lcontrol_create’:
control/libv4lcontrol.c:449:5: warning: ignoring return value of
‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
     ftruncate(shm_fd, V4LCONTROL_SHM_SIZE);
     ^
cc
-Wp,-MMD,"processing/libv4lprocessing.d",-MQ,"processing/libv4lprocessing.o",-MP
-c -I../include -I../../../include -fvisibility=hidden
-DLIBDIR=\"/usr/local/lib\" -DLIBSUBDIR=\"libv4l\" -g -O1 -Wall
-Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o
processing/libv4lprocessing.o processing/libv4lprocessing.c
cc
-Wp,-MMD,"processing/whitebalance.d",-MQ,"processing/whitebalance.o",-MP
-c -I../include -I../../../include -fvisibility=hidden
-DLIBDIR=\"/usr/local/lib\" -DLIBSUBDIR=\"libv4l\" -g -O1 -Wall
-Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o
processing/whitebalance.o processing/whitebalance.c
cc -Wp,-MMD,"processing/autogain.d",-MQ,"processing/autogain.o",-MP -c
-I../include -I../../../include -fvisibility=hidden
-DLIBDIR=\"/usr/local/lib\" -DLIBSUBDIR=\"libv4l\" -g -O1 -Wall
-Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o
processing/autogain.o processing/autogain.c
cc -Wp,-MMD,"helper.d",-MQ,"helper.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -DLIBDIR=\"/usr/local/lib\"
-DLIBSUBDIR=\"libv4l\" -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o helper.o helper.c
ar cqs libv4lconvert.a libv4lconvert.o tinyjpeg.o sn9c10x.o sn9c20x.o
pac207.o mr97310a.o flip.o crop.o jidctflt.o spca561-decompress.o
rgbyuv.o sn9c2028-decomp.o spca501.o sq905c.o bayer.o hm12.o
control/libv4lcontrol.o processing/libv4lprocessing.o
processing/whitebalance.o processing/autogain.o processing/gamma.o helper.o
make[1] : on quitte le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4lconvert »
make -C libv4l2 V4L2_LIB_VERSION=0.6.2-test all
make[1] : on entre dans le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4l2 »
cc -Wp,-MMD,"libv4l2.d",-MQ,"libv4l2.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -fPIC -g -O1 -Wall -Wno-unused
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o libv4l2.o
libv4l2.c
cc -Wp,-MMD,"log.d",-MQ,"log.o",-MP -c -I../include -I../../../include
-fvisibility=hidden -fPIC -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o log.o log.c
cc -shared  -Wl,-soname,../libv4lconvert/libv4lconvert.so.0 -o
../libv4lconvert/libv4lconvert.so.0 
ln -f -s ../libv4lconvert/libv4lconvert.so.0
../libv4lconvert/libv4lconvert.so
cc -shared  -Wl,-soname,libv4l2.so.0 -o libv4l2.so.0 libv4l2.o log.o
../libv4lconvert/libv4lconvert.so -lpthread
ln -f -s libv4l2.so.0 libv4l2.so
cc -Wp,-MMD,"v4l2convert.d",-MQ,"v4l2convert.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -fPIC -g -O1 -Wall -Wno-unused
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o
v4l2convert.o v4l2convert.c
cc -shared  -Wl,-soname,v4l2convert.so.0 -o v4l2convert.so.0
v4l2convert.o libv4l2.so
ln -f -s v4l2convert.so.0 v4l2convert.so
make[1] : on quitte le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4l2 »
make -C libv4l1 V4L2_LIB_VERSION=0.6.2-test all
make[1] : on entre dans le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4l1 »
cc -Wp,-MMD,"libv4l1.d",-MQ,"libv4l1.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -fPIC -g -O1 -Wall -Wno-unused
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o libv4l1.o
libv4l1.c
libv4l1.c:53:28: fatal error: linux/videodev.h: Aucun fichier ou dossier
de ce type
compilation terminated.
Makefile:81 : la recette pour la cible « libv4l1.o » a échouée
make[1]: *** [libv4l1.o] Erreur 1
make[1] : on quitte le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4l1 »
Makefile:5 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2
bobby@bobby-E202SA:~/Bureau/libv4lconvert/libv4lconvert$ make
make -C libv4lconvert V4L2_LIB_VERSION=0.6.2-test all
make[1] : on entre dans le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4lconvert »
make[1]: rien à faire pour « all ».
make[1] : on quitte le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4lconvert »
make -C libv4l2 V4L2_LIB_VERSION=0.6.2-test all
make[1] : on entre dans le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4l2 »
make[1]: rien à faire pour « all ».
make[1] : on quitte le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4l2 »
make -C libv4l1 V4L2_LIB_VERSION=0.6.2-test all
make[1] : on entre dans le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4l1 »
cc -Wp,-MMD,"libv4l1.d",-MQ,"libv4l1.o",-MP -c -I../include
-I../../../include -fvisibility=hidden -fPIC -g -O1 -Wall -Wno-unused
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -o libv4l1.o
libv4l1.c
cc -Wp,-MMD,"log.d",-MQ,"log.o",-MP -c -I../include -I../../../include
-fvisibility=hidden -fPIC -g -O1 -Wall -Wno-unused -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -o log.o log.c
In file included from /usr/include/x86_64-linux-gnu/asm/ioctl.h:1:0,
                 from /usr/include/linux/ioctl.h:4,
                 from ../libv4lconvert/libv4lsyscall-priv.h:41,
                 from log.c:21:
log.c:42:11: error: ‘VIDIOCKEY’ undeclared here (not in a function)
  [_IOC_NR(VIDIOCKEY)]        = "VIDIOCKEY",
           ^
log.c:42:3: error: array index in initializer not of integer type
  [_IOC_NR(VIDIOCKEY)]        = "VIDIOCKEY",
   ^
log.c:42:3: note: (near initialization for ‘v4l1_ioctls’)
log.c:50:11: error: ‘VIDIOCGUNIT’ undeclared here (not in a function)
  [_IOC_NR(VIDIOCGUNIT)]      = "VIDIOCGUNIT",
           ^
log.c:50:3: error: array index in initializer not of integer type
  [_IOC_NR(VIDIOCGUNIT)]      = "VIDIOCGUNIT",
   ^
log.c:50:3: note: (near initialization for ‘v4l1_ioctls’)
log.c:51:11: error: ‘VIDIOCGCAPTURE’ undeclared here (not in a function)
  [_IOC_NR(VIDIOCGCAPTURE)]   = "VIDIOCGCAPTURE",
           ^
log.c:51:3: error: array index in initializer not of integer type
  [_IOC_NR(VIDIOCGCAPTURE)]   = "VIDIOCGCAPTURE",
   ^
log.c:51:3: note: (near initialization for ‘v4l1_ioctls’)
log.c:52:11: error: ‘VIDIOCSCAPTURE’ undeclared here (not in a function)
  [_IOC_NR(VIDIOCSCAPTURE)]   = "VIDIOCSCAPTURE",
           ^
log.c:52:3: error: array index in initializer not of integer type
  [_IOC_NR(VIDIOCSCAPTURE)]   = "VIDIOCSCAPTURE",
   ^
log.c:52:3: note: (near initialization for ‘v4l1_ioctls’)
log.c:53:11: error: ‘VIDIOCSPLAYMODE’ undeclared here (not in a function)
  [_IOC_NR(VIDIOCSPLAYMODE)]  = "VIDIOCSPLAYMODE",
           ^
log.c:53:3: error: array index in initializer not of integer type
  [_IOC_NR(VIDIOCSPLAYMODE)]  = "VIDIOCSPLAYMODE",
   ^
log.c:53:3: note: (near initialization for ‘v4l1_ioctls’)
log.c:54:11: error: ‘VIDIOCSWRITEMODE’ undeclared here (not in a function)
  [_IOC_NR(VIDIOCSWRITEMODE)] = "VIDIOCSWRITEMODE",
           ^
log.c:54:3: error: array index in initializer not of integer type
  [_IOC_NR(VIDIOCSWRITEMODE)] = "VIDIOCSWRITEMODE",
   ^
log.c:54:3: note: (near initialization for ‘v4l1_ioctls’)
log.c:55:11: error: ‘VIDIOCGPLAYINFO’ undeclared here (not in a function)
  [_IOC_NR(VIDIOCGPLAYINFO)]  = "VIDIOCGPLAYINFO",
           ^
log.c:55:3: error: array index in initializer not of integer type
  [_IOC_NR(VIDIOCGPLAYINFO)]  = "VIDIOCGPLAYINFO",
   ^
log.c:55:3: note: (near initialization for ‘v4l1_ioctls’)
log.c:56:11: error: ‘VIDIOCSMICROCODE’ undeclared here (not in a function)
  [_IOC_NR(VIDIOCSMICROCODE)] = "VIDIOCSMICROCODE",
           ^
log.c:56:3: error: array index in initializer not of integer type
  [_IOC_NR(VIDIOCSMICROCODE)] = "VIDIOCSMICROCODE",
   ^
log.c:56:3: note: (near initialization for ‘v4l1_ioctls’)
Makefile:81 : la recette pour la cible « log.o » a échouée
make[1]: *** [log.o] Erreur 1
make[1] : on quitte le répertoire
« /home/bobby/Bureau/libv4lconvert/libv4lconvert/libv4l1 »
Makefile:5 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2
bobby@bobby-E202SA:~/Bureau/libv4lconvert/libv4lconvert$



Best regards,

Thomas







[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux