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

could not run the sample hellocv.go with some error in windows #98

Open
romaneslyg opened this issue Mar 8, 2017 · 1 comment
Open

Comments

@romaneslyg
Copy link

image
I have done as you said in windows
install OpenCV-2.4.x to MinGW dir

libopencv*.dll --> ${MinGWRoot}\bin

libopencv*.lib --> ${MinGWRoot}\lib

include\opencv --> ${MinGWRoot}\include\opencv

include\opencv2 --> ${MinGWRoot}\include\opencv2

but there is some error in my press
how to run this sample demo in windows.

@romaneslyg
Copy link
Author

romaneslyg commented Mar 10, 2017

finally ,i found that just add the code " -lopencv_objdetect242" in line 11 of the file cxcore.go ,then this problem will be saved.And the samples could be run.
image
Does you really forgot to add these codes?

tstrg added a commit to tstrg/go-opencv that referenced this issue Apr 2, 2017
edit github.com\lazywei\go-opencv\opencv\cxcore.go in according to go-opencv#98
and add -lopencv_objdetect2411.dll to the dll libraries

and adjust libraries version
adjust all references stated at github.com\lazywei\go-opencv\opencv\ to the correct version of the dlls builded in step 2
example:
change -lopencv_objdetect242 to -lopencv_objdetect2411.dll
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

1 participant