From owner-freebsd-ports@freebsd.org Sat Apr 23 22:02:42 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 6D773B1ABD7 for ; Sat, 23 Apr 2016 22:02:42 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 5A4021450 for ; Sat, 23 Apr 2016 22:02:42 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: by mailman.ysv.freebsd.org (Postfix) id 59919B1ABD6; Sat, 23 Apr 2016 22:02:42 +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 59339B1ABD5 for ; Sat, 23 Apr 2016 22:02:42 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from mail.infocus-llc.com (mail.infocus-llc.com [199.15.120.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B801144F for ; Sat, 23 Apr 2016 22:02:41 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (c-75-65-60-66.hsd1.ms.comcast.net [75.65.60.66]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.tarragon.infocus-llc.com (Postfix) with ESMTPSA id 3qsmWR2Dwnzfp; Sat, 23 Apr 2016 16:55:31 -0500 (CDT) Received: by draco.over-yonder.net (Postfix, from userid 100) id 3qsmWQ2jhtz2vj; Sat, 23 Apr 2016 16:55:30 -0500 (CDT) Date: Sat, 23 Apr 2016 16:55:30 -0500 From: "Matthew D. Fuller" To: abi Cc: ports@freebsd.org Subject: Re: Making a port - debugging cmake check_include_file Message-ID: <20160423215530.GP83618@over-yonder.net> References: <571BE034.9070200@abinet.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <571BE034.9070200@abinet.ru> X-Editor: vi X-OS: FreeBSD X-Virus-Scanned: clamav-milter 0.99 at mail.tarragon.infocus-llc.com X-Virus-Status: Clean User-Agent: Mutt/1.6.0-fullermd.4 (2016-04-01) 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 22:02:42 -0000 On Sat, Apr 23, 2016 at 11:51:00PM +0300 I heard the voice of abi, and lo! it spake thus: > > /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. Note lack of -I/usr/local/include in the command. So cmake isn't looking there. You'd need to somehow get that in the list. Of course, it'd actually be spelled $LOCALBASE, presumably. Actually, libv4l does install pkgconf stuff, so if the cmake process could be tweaked to pull that in, that may be the "best" solution. Look at the FindPkgConfig module in cmake (https://cmake.org/cmake/help/v3.5/module/FindPkgConfig.html). Of course, that does mean doing a fair amount more surgery in the CMakeFile. Simpler may just be to pass $LOCALBASE in via CMAKE_ARGS and then manually add that via include_directories(). -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.