Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
d3c2b15f
Commit
d3c2b15f
authored
Jul 14, 2014
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2955 from SpecLad:find-libv4l2
parents
d262b04d
023102c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
CMakeLists.txt
CMakeLists.txt
+3
-2
OpenCVFindLibsVideo.cmake
cmake/OpenCVFindLibsVideo.cmake
+7
-1
No files found.
CMakeLists.txt
View file @
d3c2b15f
...
...
@@ -905,8 +905,9 @@ if(DEFINED WITH_V4L)
else
()
set
(
HAVE_CAMV4L2_STR
"NO"
)
endif
()
status
(
" V4L/V4L2:"
HAVE_LIBV4L THEN
"Using libv4l (ver
${
ALIASOF_libv4l1_VERSION
}
)"
ELSE
"
${
HAVE_CAMV4L_STR
}
/
${
HAVE_CAMV4L2_STR
}
"
)
status
(
" V4L/V4L2:"
HAVE_LIBV4L
THEN
"Using libv4l1 (ver
${
ALIASOF_libv4l1_VERSION
}
) / libv4l2 (ver
${
ALIASOF_libv4l2_VERSION
}
)"
ELSE
"
${
HAVE_CAMV4L_STR
}
/
${
HAVE_CAMV4L2_STR
}
"
)
endif
(
DEFINED WITH_V4L
)
if
(
DEFINED WITH_DSHOW
)
...
...
cmake/OpenCVFindLibsVideo.cmake
View file @
d3c2b15f
...
...
@@ -126,7 +126,13 @@ endif(WITH_XINE)
ocv_clear_vars
(
HAVE_LIBV4L HAVE_CAMV4L HAVE_CAMV4L2 HAVE_VIDEOIO
)
if
(
WITH_V4L
)
if
(
WITH_LIBV4L
)
CHECK_MODULE
(
libv4l1 HAVE_LIBV4L
)
CHECK_MODULE
(
libv4l1 HAVE_LIBV4L1
)
CHECK_MODULE
(
libv4l2 HAVE_LIBV4L2
)
if
(
HAVE_LIBV4L1 AND HAVE_LIBV4L2
)
set
(
HAVE_LIBV4L YES
)
else
()
set
(
HAVE_LIBV4L NO
)
endif
()
endif
()
CHECK_INCLUDE_FILE
(
linux/videodev.h HAVE_CAMV4L
)
CHECK_INCLUDE_FILE
(
linux/videodev2.h HAVE_CAMV4L2
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment