gocv icon indicating copy to clipboard operation
gocv copied to clipboard

Gocv with Cuda error

Open Emcon-prtcl opened this issue 3 years ago • 7 comments

Description

When I run go run ./cmd/cuda/main.go I get the following error:

# gocv.io/x/gocv/cuda
cuda\cuda.go:80:13: could not determine kind of name for C.GetCudaEnabledDeviceCount
cuda\cuda.go:21:4: could not determine kind of name for C.GpuMat
cuda\cuda.go:48:2: could not determine kind of name for C.GpuMat_Close
cuda\cuda.go:89:2: could not determine kind of name for C.GpuMat_ConvertTo
cuda\cuda.go:38:2: could not determine kind of name for C.GpuMat_Download
cuda\cuda.go:43:9: could not determine kind of name for C.GpuMat_Empty
cuda\cuda.go:55:19: could not determine kind of name for C.GpuMat_New
cuda\cuda.go:60:19: could not determine kind of name for C.GpuMat_NewFromMat
cuda\cuda.go:30:2: could not determine kind of name for C.GpuMat_Upload
cuda\cuda.go:30:23: could not determine kind of name for C.Mat
cuda\cuda.go:69:2: could not determine kind of name for C.PrintCudaDeviceInfo
cuda\cuda.go:74:2: could not determine kind of name for C.PrintShortCudaDeviceInfo

Steps to Reproduce

1.I build gocv like this https://gocv.io/getting-started/windows/ 2.chdir %GOPATH%\src\gocv.io\x\gocv 3.go run ./cmd/cuda/main.go

Your Environment

  • Operating System and version: Microsoft Windows [version 10.0.19042.985]
  • OpenCV version used: 4.5.2
  • How did you install OpenCV? I build gocv like this https://gocv.io/getting-started/windows/
  • GoCV version used: 0.27.0
  • Go version: go1.16.4 windows/amd64
  • Did you run the env.sh or env.cmd script before trying to go run or go build?No

Emcon-prtcl avatar Jun 05 '21 12:06 Emcon-prtcl