Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Apr 2016 23:51:00 +0300
From:      abi <abi@abinet.ru>
To:        ports@freebsd.org
Subject:   Making a port - debugging cmake check_include_file
Message-ID:  <571BE034.9070200@abinet.ru>

next in thread | raw e-mail | index | archive | help
Hello.

I'm porting Zoneminder, however I have bad luck compiling v4l support.
The program uses smale and has the following check:

check_include_file("libv4l1-videodev.h" HAVE_LIBV4L1_VIDEODEV_H)
if(NOT HAVE_LIBV4L1_VIDEODEV_H)
         check_include_file("linux/videodev.h" HAVE_LINUX_VIDEODEV_H)
endif(NOT HAVE_LIBV4L1_VIDEODEV_H)
check_include_file("linux/videodev2.h" HAVE_LINUX_VIDEODEV2_H)

this block failing me completely.

from cmake error log:
Determining if the include file libv4l1-videodev.h exists failed with 
the following output:
Change Dir: 
/usr/home/abishai/zoneminder/work/ZoneMinder-5a3978f/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/gmake" "cmTC_bd985/fast"
gmake[2]: Entering directory 
'/usr/home/abishai/zoneminder/work/ZoneMinder-5a3978f/CMakeFiles/CMakeTmp'
/usr/local/bin/gmake -f CMakeFiles/cmTC_bd985.dir/build.make 
CMakeFiles/cmTC_bd985.dir/build
gmake[3]: Entering directory 
'/usr/home/abishai/zoneminder/work/ZoneMinder-5a3978f/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_bd985.dir/CheckIncludeFile.c.o
/usr/bin/cc    -O2 -pipe  -fstack-protector -fno-strict-aliasing -o 
CMakeFiles/cmTC_bd985.dir/CheckIncludeFile.c.o   -c 
/usr/home/abishai/zoneminder/work/ZoneMinder-5a3978f/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/usr/home/abishai/zoneminder/work/ZoneMinder-5a3978f/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: 
fatal error: 'libv4l1-videodev.h' file not found
#include <libv4l1-videodev.h>
          ^
1 error generated.
CMakeFiles/cmTC_bd985.dir/build.make:65: recipe for target 
'CMakeFiles/cmTC_bd985.dir/CheckIncludeFile.c.o' failed
gmake[3]: *** [CMakeFiles/cmTC_bd985.dir/CheckIncludeFile.c.o] Error 1
gmake[3]: Leaving directory 
'/usr/home/abishai/zoneminder/work/ZoneMinder-5a3978f/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_bd985/fast' failed
gmake[2]: *** [cmTC_bd985/fast] Error 2
gmake[2]: Leaving directory 
'/usr/home/abishai/zoneminder/work/ZoneMinder-5a3978f/CMakeFiles/CMakeTmp'

I have this header file:
abishai@freezm:~/zoneminder % ls -la /usr/local/include/ | grep 
libv4l1-videodev.h
-rw-r--r--   1 root  wheel   7135 Apr 23 23:13 libv4l1-videodev.h

Any ideas ? path problem?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?571BE034.9070200>