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

ld.exe: cannot find -lopencv_highgui2413.dll #105

Open
3togo opened this issue Apr 25, 2017 · 1 comment
Open

ld.exe: cannot find -lopencv_highgui2413.dll #105

3togo opened this issue Apr 25, 2017 · 1 comment

Comments

@3togo
Copy link

3togo commented Apr 25, 2017

I am using the following go version

go version go1.8.1 windows/amd64
when I run
go run -v hellocv.go
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopencv_imgproc2413.dll
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopencv_photo2413.dll
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lopencv_highgui2413.dll
collect2.exe: error: ld returned 1 exit status

opencv*.dll --> c:\msys64\mingw64\bin
opencv*.lib --> c:\msys64\mingw64\lib
include\opencv --> c:\msys64\mingw64\include\opencv
include\opencv2 --> c:\msys64\mingw64\include\opencv2

What I have done wrong?

@fabiocmazzo
Copy link

If you on Windows remove .dll suffix from LDFLAGS in go files. If you get error again add parameter -L C:\PATH_TO_OPENCV_LIBS

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

2 participants