Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

How to build MSDK with options by cmake on Win10?

yifan
Beginner
470 Views

Hi,

I followed the page: https://github.com/Intel-Media-SDK/MediaSDK#build-steps

to try to build MSDK with some options (eg: MFX_ENABLE_KERNELS=OFF), but failed with the log:

---------------------------------------------------------------------------------------------------------------------
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
-- The C compiler identification is MSVC 19.28.29334.0
-- The CXX compiler identification is MSVC 19.28.29334.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type selected, default to release
-- Intel OpenCL SDK was not found (optional). The following will not be built: rotate_opencl plugin.
-- Intel(R) Media SDK was found here C:/MediaSDK-master
-- Enabling API 1.31 feature set with flags
-- CMAKE_INSTALL_PREFIX=C:/Program Files/mediasdk
-- Global Configuration of Targets
-- Target Architecture to compile: sse4.2
-- CMAKE_INSTALL_PREFIX=/opt/intel/mediasdk
-- MFX_PLUGINS_CONF_DIR=/mfx
-- MFX_MODULES_DIR=/opt/intel/mediasdk/lib
-- Intel OpenCL SDK was not found (optional). The following will not be built: rotate_opencl plugin.
CMake Error at samples/metrics_monitor/CMakeLists.txt:3 (if):
if given arguments:
 
"PKG_LIBDRM_FOUND" "AND" "(" "VERSION_GREATER" "2.4.91" ")"
 
Unknown arguments specified
 

-- Configuring incomplete, errors occurred!
See also "C:/benchmark/encode/Intel_Icelake_encode/MediaSDK-master-orig/MediaSDK-master/CMakeFiles/CMakeOutput.log".

---------------------------------------------------------------------------------------------------------------------

I am sure that I have stall the openCL in my PC, and also didn't see any error in theMakeOutput.log.

I don't know if any configure issue lead to I cannot use cmake like command:

cmake /path/to/mediasdk

So how to build the MSDK correctly? I also need to add some options behind "cmake" next step. I guess that build by VS cannot add options, right?

 

Labels (1)
0 Kudos
4 Replies
yifan
Beginner
469 Views

I can build MSDK and generate sample_xxx.exe successfully, my point is how to build it with options(eg: MFX_ENABLE_KERNELS=OFF) in Windows10. Thanks

JananiC_Intel
Moderator
439 Views

Hi,


Thanks for posting in Intel forums.


For your information, we don't offer windows build.

In windows we can only build dispatcher and sample.We cannot build sdk.


Hope this answers your query!


Regards,

Janani Chandran


JananiC_Intel
Moderator
428 Views

Hi,


Did that help? Do you have any update?


Regards,

Janani Chandran


JananiC_Intel
Moderator
404 Views

Hi,


We are assuming that the solution provided helped and would no longer be monitoring this issue. Please raise a new thread if you have any further issues.


Regards,

Janani Chandran


Reply