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
a1cc9380
Commit
a1cc9380
authored
Feb 02, 2015
by
Mansour Moufid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct the new find_library commands.
Thanks to SpecLad.
parent
ab40630f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
OpenCVFindLibsVideo.cmake
cmake/OpenCVFindLibsVideo.cmake
+4
-12
No files found.
cmake/OpenCVFindLibsVideo.cmake
View file @
a1cc9380
...
@@ -229,18 +229,10 @@ if(WITH_FFMPEG)
...
@@ -229,18 +229,10 @@ if(WITH_FFMPEG)
if
(
FFMPEG_INCLUDE_DIR
)
if
(
FFMPEG_INCLUDE_DIR
)
set
(
HAVE_GENTOO_FFMPEG TRUE
)
set
(
HAVE_GENTOO_FFMPEG TRUE
)
set
(
FFMPEG_LIB_DIR
"
${
FFMPEG_INCLUDE_DIR
}
/../lib"
CACHE PATH
"Full path of FFMPEG library directory"
)
set
(
FFMPEG_LIB_DIR
"
${
FFMPEG_INCLUDE_DIR
}
/../lib"
CACHE PATH
"Full path of FFMPEG library directory"
)
find_library
(
FFMPEG_CODEC_LIB
find_library
(
FFMPEG_CODEC_LIB
"avcodec"
HINTS
"
${
FFMPEG_LIB_DIR
}
"
)
NAMES
"libavcodec.a"
"libavcodec.dylib"
find_library
(
FFMPEG_FORMAT_LIB
"avformat"
HINTS
"
${
FFMPEG_LIB_DIR
}
"
)
PATHS
"
${
FFMPEG_LIB_DIR
}
"
)
find_library
(
FFMPEG_UTIL_LIB
"avutil"
HINTS
"
${
FFMPEG_LIB_DIR
}
"
)
find_library
(
FFMPEG_FORMAT_LIB
find_library
(
FFMPEG_SWSCALE_LIB
"swscale"
HINTS
"
${
FFMPEG_LIB_DIR
}
"
)
NAMES
"libavformat.a"
"libavformat.dylib"
PATHS
"
${
FFMPEG_LIB_DIR
}
"
)
find_library
(
FFMPEG_UTIL_LIB
NAMES
"libavutil.a"
"libavutil.dylib"
PATHS
"
${
FFMPEG_LIB_DIR
}
"
)
find_library
(
FFMPEG_SWSCALE_LIB
NAMES
"libswscale.a"
"libswscale.dylib"
PATHS
"
${
FFMPEG_LIB_DIR
}
"
)
if
(
FFMPEG_CODEC_LIB AND FFMPEG_FORMAT_LIB AND
if
(
FFMPEG_CODEC_LIB AND FFMPEG_FORMAT_LIB AND
FFMPEG_UTIL_LIB AND FFMPEG_SWSCALE_LIB
)
FFMPEG_UTIL_LIB AND FFMPEG_SWSCALE_LIB
)
set
(
HAVE_FFMPEG 1
)
set
(
HAVE_FFMPEG 1
)
...
...
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