Built opencv 3.0.0 from source, while trying to save using
cvswitch save
gives the following error
Warning: opencv.pc not found. Pkg-config's configuration for OpenCV could not be saved.
Possible cause: PKG_CONFIG_PATH is not defined. If you are using sudo to run this script, this variable might be defined for your original user but not for the one that sudo is switching to. In such case, forcing sudo to preserve the variable would solve the problem. This can be done in two ways:
- Run again with 'sudo -E your_command_line'
- Enter sudo configuration file with 'sudo visudo' and add the following line at the beginning, together with the rest of defaults:
Defaults env_keep +="PKG_CONFIG_PATH"
Built opencv 3.0.0 from source, while trying to save using
cvswitch save
gives the following error
Warning: opencv.pc not found. Pkg-config's configuration for OpenCV could not be saved.
Possible cause: PKG_CONFIG_PATH is not defined. If you are using sudo to run this script, this variable might be defined for your original user but not for the one that sudo is switching to. In such case, forcing sudo to preserve the variable would solve the problem. This can be done in two ways:
Defaults env_keep +="PKG_CONFIG_PATH"