hybridgroup / gocv

Go package for computer vision using OpenCV 4 and beyond. Includes support for DNN, CUDA, OpenCV Contrib, and OpenVINO.
https://gocv.io
Other
6.75k stars 869 forks source link

The procedure entry point could not be located in the dynamic link library #767

Open hasanAjsf opened 4 years ago

hasanAjsf commented 4 years ago

Description

Hi, I created a simple .exe file in a windows 10 device, that is just opening the cam, and wanted to test the required in other devices to be able to opened it there, so I copied it to another windows 10 device. Started getting notification about missing .dll file, I was not sure where shall I put them, also i do not want to ask the user to install openCV from the source code, so I copied all he missing .dll files I got side by side with the .exe file, then I got the msg shown in the title and in the screen shoot below

Your Environment

image

AmmeySaini commented 1 week ago

having same error using opencv 4.10.0 gocv 0.39

AmmeySaini commented 1 week ago

for anyone coming from future, you can fix it by statically linking the C++ libraries so that they are included in the build itself pass -static-libgcc -static-libstdc++ in CGO_LDFLAGS