Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not updated to OpenCV4 #6

Closed
evanfrawley opened this issue Dec 22, 2018 · 4 comments
Closed

Not updated to OpenCV4 #6

evanfrawley opened this issue Dec 22, 2018 · 4 comments

Comments

@evanfrawley
Copy link

Hi,

Thanks for the neat library!

I am trying to build and run the test script in the README, but it seems that gocv is now updated to OpenCV 4.0.0. I tried rerunning the build scripts after changing the image names to have ...4.0.0 and changing the OPEN_CV_VERSION to 4.0.0 and rebuilding all images from scratch but neither worked.

When running the ...:test script, I end up getting the following docker output:

Sending build context to Docker daemon  2.048kB
Step 1/7 : FROM denismakogon/gocv-alpine:3.4.2-buildstage as build-stage
 ---> 8d9938523d3a
Step 2/7 : ENV PKG_CONFIG_PATH /usr/local/lib64/pkgconfig
 ---> Using cache
 ---> 5fd2af774c48
Step 3/7 : RUN go get -u -d gocv.io/x/gocv
 ---> Using cache
 ---> 0ec91f5a202f
Step 4/7 : RUN cd $GOPATH/src/gocv.io/x/gocv && go build -o $GOPATH/bin/gocv-version ./cmd/version/main.go
 ---> Running in 97ee030f03e3
# pkg-config --cflags  -- opencv4
Package opencv4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'opencv4', required by 'virtual:world', not found
pkg-config: exit status 1
The command '/bin/sh -c cd $GOPATH/src/gocv.io/x/gocv && go build -o $GOPATH/bin/gocv-version ./cmd/version/main.go' returned a non-zero code: 2

with

# pkg-config --cflags  -- opencv4
Package opencv4 was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv4.pc'
to the PKG_CONFIG_PATH environment variable
Package 'opencv4', required by 'virtual:world', not found
pkg-config: exit status 1

as the error code in red. Do you have any insight into updating this to OpenCV 4?

Thanks!

@MasashiYokota
Copy link
Contributor

I tried sending the PR #7 . Please check it.
Thank you.

@evanfrawley
Copy link
Author

Thank you so much @MasashiYokota! I was able to build the images in my machine :)

@MasashiYokota
Copy link
Contributor

You're welcome 😄

@denismakogon
Copy link
Owner

fix merged.

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

No branches or pull requests

3 participants