Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Apr 2016 16:55:30 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        abi <abi@abinet.ru>
Cc:        ports@freebsd.org
Subject:   Re: Making a port - debugging cmake check_include_file
Message-ID:  <20160423215530.GP83618@over-yonder.net>
In-Reply-To: <571BE034.9070200@abinet.ru>
References:  <571BE034.9070200@abinet.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <libv4l1-videodev.h>
>           ^
> 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.



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