Skip to content

Error while saving 3.0.0  #1

@Mithul

Description

@Mithul

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:

  1. Run again with 'sudo -E your_command_line'
  2. 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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions