samples icon indicating copy to clipboard operation
samples copied to clipboard

Ubuntu compiling problem

Open badhras opened this issue 6 years ago • 2 comments

I'm unsure what is causing these compile errors on Ubuntu 18.04.

Not searching for unused variables given on the command line.
-- CMAKE_INSTALL_PREFIX=/opt/intel/mediasdk
CMake Error at /home/nkidd/samples/builder/FindMFX.cmake:67 (message):
  Intel(R) Media SDK was not found (required)! Set/check MFX_HOME environment
  variable!
Call Stack (most recent call first):
  CMakeLists.txt:26 (include)


-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /home/nkidd/samples/samples/__cmake/intel64.make.debug/CMakeCache.txt.tmp
See also "/home/nkidd/samples/samples/__cmake/intel64.make.debug/CMakeFiles/CMakeOutput.log".
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /home/nkidd/samples/samples/__cmake/intel64.make.debug/CMakeCache.txt
CMake Error: : System Error: Permission denied

I built MSDK and installed it to /opt/intel/mediasdk, using instructions from https://github.com/Intel-Media-SDK/MediaSDK/wiki/Build-Media-SDK-on-Ubuntu. I have MFX_HOME set to that same directory. I see folders in that directory, as shown below.

nkidd@glknuc:~/samples/samples$ printenv MFX_HOME
/opt/intel/mediasdk
nkidd@glknuc:~/samples/samples$ ls ${MFX_HOME}
include  lib  share

I also tried running it as sudo, and the only difference is that I don't see the Permission denied error. Should be I be trying to run this as sudo? Should I be setting the MFX_HOME variable in a different way? I used: nkidd@glknuc:~/samples/samples$ export MFX_HOME=/opt/intel/mediasdk

badhras avatar Aug 15 '18 23:08 badhras

Hello. Permission denied error happens because your user is not allowed to /home/nkidd/samples/samples/__cmake/intel64.make.debug/ - possibly you need to change catalog permissions or use sudo (as you did). Assuming that you use build.pl script for compilation, you may pass --mfx_home=/opt/intel/mediasdk instead of setting MFX_HOME variable, or set it, as you did - that should help.

I could also suggest to use samples from https://github.com/Intel-Media-SDK/MediaSDK repository - they are almost the same as here, but should be built together with MediaSDK library (that you've already built).

fzhar avatar Aug 16 '18 12:08 fzhar

Please try to reproduce with actual codebase https://github.com/Intel-Media-SDK/MediaSDK/tree/master/samples and/or move issue to https://github.com/Intel-Media-SDK/MediaSDK. This repo would be archived.

onabiull avatar Apr 01 '19 14:04 onabiull