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)   |  [email protected]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to