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

Cam2IP Source Code Not able to compile on Windows 10 #11

Closed
mohit83k opened this issue Sep 5, 2018 · 2 comments
Closed

Cam2IP Source Code Not able to compile on Windows 10 #11

mohit83k opened this issue Sep 5, 2018 · 2 comments

Comments

@mohit83k
Copy link

mohit83k commented Sep 5, 2018

i had followed all the steps mentioned for Source Code Compile
i had installed following things

  1. go1.11.windows-amd64.msi
    GOPATH: %USERPROFILE%\go

  2. libjpeg-turbo-2.0.0-gcc.exe
    PATH: C:\libjpeg-turbo-gcc\bin

  3. mingw-w64-install.exe
    PATH: C:\Program Files\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev2\mingw64\bin

  4. opencv-2.4.13.6-vc14.exe
    PATH: C:\Program Files\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev2\mingw64\opencv\build\x64\vc14\bin

and while trying to compile im getting the error below attached let me know how can i compile successfully
capture

@gen2brain
Copy link
Owner

You can check https://github.com/gen2brain/cam2ip/blob/master/make.bash#L21 .
It is for cross compile for Windows in Linux, but it is example how to point to your directories with CGO_LDFLAGS/CFLAGS . Check where your installed libraries/includes are located and and that to env.
You don't need libjpeg/libjpeg-turbo, you can use -tags jpeg for native image/jpeg, but performance is worse with that.

@gen2brain
Copy link
Owner

I added support for native capture on Windows, via VFW and without Cgo. Now you can just add -tags jpeg to your go get/build command to get fully native binary, and without the need for OpenCV, it is now optional.

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