Installing GoCV requires a few extra environment variables to be set.

Before theĀ make installĀ phase, set the following variables

export GOPATH=/home/frank/go
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib64

It is also easier to install the OpenCV libraries system-wide by runningĀ make installĀ as the root user.