Closed OlivierLDff closed 3 years ago
I have the same issue, did you resolve it? Then I modify this file as tutorials\cmakelist.txt L:21 , it's OK.
Hi @OlivierLDff , I prepared a fix: #2674
Hi @hotkidfamily , the issue you reported is broader. In fact you ask for workable cmake-style build for tutorials (and probably samples), while Olivier reported "just" a broken cmake generation.
Hi, i tried to build sample on my windows machine.
Here are my system information:
MFX_GIT_COMMIT
d058a653MFX_API_VERSION
1.34Here is my log output:
Here is the incriminated code https://github.com/Intel-Media-SDK/MediaSDK/blob/d058a653bc218f048139e3d41514d50923ae364a/samples/metrics_monitor/CMakeLists.txt#L3-L5
The error make sense, because
${PKG_LIBDRM_VERSION}
is replaced with nothing in my case.The best way to fix that in my opinion is to transform
${PKG_LIBDRM_VERSION}
to"${PKG_LIBDRM_VERSION}"
. Like that the resulting expression will be a comparaison of an empty string with the version.Would you consider such PR? Have a nice day. Olivier.
Edit: just realized that cmake isn't meant for windows. But the cmake error still apply for linux I think.