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
4623e622
Commit
4623e622
authored
Jun 14, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14804 from mshabunin:fix-mediasdk-detect
parents
6389303c
ae311150
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
detect_msdk.cmake
modules/videoio/cmake/detect_msdk.cmake
+18
-10
No files found.
modules/videoio/cmake/detect_msdk.cmake
View file @
4623e622
...
...
@@ -14,9 +14,9 @@ if(NOT HAVE_MFX)
endif
()
find_path
(
MFX_INCLUDE mfxdefs.h
PATHS
${
paths
}
PATH_SUFFIXES
"include"
PATH_SUFFIXES
"include"
"include/mfx"
NO_DEFAULT_PATH
)
find_library
(
MFX_LIBRARY mfx libmfx
${
vs_suffix
}
find_library
(
MFX_LIBRARY
NAMES
mfx libmfx
${
vs_suffix
}
PATHS
${
paths
}
PATH_SUFFIXES
"lib64"
"lib/lin_x64"
"lib/
${
vs_arch
}
"
NO_DEFAULT_PATH
)
...
...
@@ -28,16 +28,24 @@ if(NOT HAVE_MFX)
endif
()
if
(
HAVE_MFX AND UNIX
)
find_path
(
MFX_va_INCLUDE va/va.h PATHS
${
paths
}
PATH_SUFFIXES
"include"
)
find_library
(
MFX_va_LIBRARY va PATHS
${
paths
}
PATH_SUFFIXES
"lib64"
"lib/lin_x64"
)
find_library
(
MFX_va_drm_LIBRARY va-drm PATHS
${
paths
}
PATH_SUFFIXES
"lib64"
"lib/lin_x64"
)
if
(
MFX_va_INCLUDE AND MFX_va_LIBRARY AND MFX_va_drm_LIBRARY
)
list
(
APPEND MFX_INCLUDE_DIRS
"
${
MFX_va_INCLUDE
}
"
)
list
(
APPEND MFX_LIBRARIES
"
${
MFX_va_LIBRARY
}
"
"
${
MFX_va_drm_LIBRARY
}
"
)
# list(APPEND MFX_LIBRARIES "-Wl,--exclude-libs=libmfx")
else
()
foreach
(
mode NO_DEFAULT_PATH
""
)
find_path
(
MFX_va_INCLUDE va/va.h PATHS
${
paths
}
PATH_SUFFIXES
"include"
${
mode
}
)
find_library
(
MFX_va_LIBRARY va PATHS
${
paths
}
PATH_SUFFIXES
"lib64"
"lib/lin_x64"
${
mode
}
)
find_library
(
MFX_va_drm_LIBRARY va-drm PATHS
${
paths
}
PATH_SUFFIXES
"lib64"
"lib/lin_x64"
${
mode
}
)
if
(
MFX_va_INCLUDE AND MFX_va_LIBRARY AND MFX_va_drm_LIBRARY
)
list
(
APPEND MFX_INCLUDE_DIRS
"
${
MFX_va_INCLUDE
}
"
)
list
(
APPEND MFX_LIBRARIES
"
${
MFX_va_LIBRARY
}
"
"
${
MFX_va_drm_LIBRARY
}
"
)
# list(APPEND MFX_LIBRARIES "-Wl,--exclude-libs=libmfx")
break
()
endif
()
unset
(
MFX_va_INCLUDE CACHE
)
unset
(
MFX_va_LIBRARY CACHE
)
unset
(
MFX_va_drm_LIBRARY CACHE
)
endforeach
()
if
(
NOT
(
MFX_va_INCLUDE AND MFX_va_LIBRARY AND MFX_va_drm_LIBRARY
))
set
(
HAVE_MFX FALSE
)
endif
()
endif
()
if
(
HAVE_MFX
)
...
...
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