karalabe / xgo

Go CGO cross compiler
MIT License
2.14k stars 280 forks source link

Add OpenCV4 #166

Open akominch opened 5 years ago

akominch commented 5 years ago
Client: Docker Engine - Community
 Version:           18.09.2
 API version:       1.39
 Go version:        go1.10.8
 Git commit:        6247962
 Built:             Sun Feb 10 04:12:39 2019
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.2
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       6247962
  Built:            Sun Feb 10 04:13:06 2019
  OS/Arch:          linux/amd64
  Experimental:     false

Checking for required docker image karalabe/xgo-latest... found.
Cross compiling test_camera...
Building locally test_camera...
Compiling for linux/amd64...
# 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
No package 'opencv4' found
pkg-config: exit status 1
2019/08/15 12:02:07 Failed to cross compile package: exit status 2.

Maybe you tell me how to compile a program with GoCV from MacOs on Linux?

ItsFunny commented 5 years ago

do u have any idea of this ,same issue ,for now ,i just scp the directory to the server then build it ,its really wasting time