Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Ubuntu compiling problem #16

Open
badhras opened this issue Aug 15, 2018 · 2 comments
Open

Ubuntu compiling problem #16

badhras opened this issue Aug 15, 2018 · 2 comments

Comments

@badhras
Copy link

badhras commented Aug 15, 2018

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

@fzhar
Copy link
Contributor

fzhar commented Aug 16, 2018

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).

@onabiull
Copy link

onabiull commented Apr 1, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants