From owner-freebsd-ports@freebsd.org Sat Apr 23 20:56:58 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF7BAB1AE16 for ; Sat, 23 Apr 2016 20:56:58 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id CE32F1A59 for ; Sat, 23 Apr 2016 20:56:58 +0000 (UTC) (envelope-from abi@abinet.ru) Received: by mailman.ysv.freebsd.org (Postfix) id C9EB2B1AE14; Sat, 23 Apr 2016 20:56:58 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9952B1AE13 for ; Sat, 23 Apr 2016 20:56:58 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from mail.abinet.ru (mail.abinet.ru [136.243.72.227]) by mx1.freebsd.org (Postfix) with ESMTP id 930D61A58 for ; Sat, 23 Apr 2016 20:56:58 +0000 (UTC) (envelope-from abi@abinet.ru) Received: from [10.0.0.1] (unknown [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.abinet.ru (Postfix) with ESMTPSA id 8F4D919B39 for ; Sat, 23 Apr 2016 20:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=abinet.ru; s=dkim; t=1461444660; bh=If2bNQxBbsdBkcVPeDhkmm8JV2a9mBklVs1NRLYTS4U=; h=Date:From:To:Subject; b=MC+b45tS/5fxL59tirJL+Ow0QxzidCo8WUT7L4BAJWR7hbZ74ODC8YvSyJqMMak3L rnCHUozzBnKyiHhH/RwIlu23nWIN4NRFfBVsZacvRko7x9Cgq/fFe/uTdinuT8kKWe ybwHfBx7DWpXSdGugshVuCOs31JAPt7Y+Op7/jyE= Message-ID: <571BE034.9070200@abinet.ru> Date: Sat, 23 Apr 2016 23:51:00 +0300 From: abi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:) Gecko/20160112 FossaMail/25.2.0 MIME-Version: 1.0 To: ports@freebsd.org Subject: Making a port - debugging cmake check_include_file Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 20:56:59 -0000 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 ^ 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?