Wednesday, September 16, 2015

opencv pkgconfig error


To add the correct path to your bashrc you can do the following steps
  1. sudo find / -name "opencv.pc" -type f
  2. notice the directory output from 1. (without filename)
  3. open /etc/bash.bashrc sudo vi /etc/bash/bash.bashrc
  4. find and edit or add the following lines
    PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/your/path/from/#1
    export PKG_CONFIG_PATH
  5. save your file :wq
  6. logout and login again to active the changes

1 comment: