mirror of
https://github.com/gen2brain/cam2ip.git
synced 2026-04-27 07:05:59 +03:00
[GH-ISSUE #48] fatal error: jpeglib.h: No such file or directory - Windows 10 - How to install libjpeg-turbo #39
Labels
No labels
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cam2ip#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @toom94 on GitHub (Nov 8, 2023).
Original GitHub issue: https://github.com/gen2brain/cam2ip/issues/48
Hi,
I get an error when compiling on windows 10.
libjpeg-turbo installed

libjpeg-turbo-2.0.0-gcc.exe
path:
I have no idea what's wrong, please help
@gen2brain commented on GitHub (Nov 8, 2023):
Use
-tags jpegto build without CGO. Everything is in README, and you can search issues for many similar "issues".@toom94 commented on GitHub (Nov 8, 2023):
--tags jpeg doesn't work for my camera. I need to build this with CV2. None of the previous issues solve my problem, please give me the correct instructions to install libjpeg-turbo on windows.
@gen2brain commented on GitHub (Nov 8, 2023):
Sorry, I have no idea how to install something on Windows. I cross-compile from Linux. You are looking for general instructions, i.e. for MinGW, for msys, whatever you are using, or just install it anywhere and point CGO_CFLAGS/CGO_LDFLAGS. Basic C knowledge about compilation is required.
@gen2brain commented on GitHub (Nov 8, 2023):
Btw.
-tags jpeghas nothing to do with the camera, opencv or not. You can build with OpenCV and with-tags jpeg, i.e. native Goimage/jpegencoder.@toom94 commented on GitHub (Nov 8, 2023):
-tags jpeg returns:
socket: read: camera: can not retrieve frame: EOF

@gen2brain commented on GitHub (Nov 8, 2023):
You said you want to build for OpenCV, so add -tags cv2 or cv4. But then you will need libraries and headers installed, and you already failed with libjpeg which is much simpler.
@toom94 commented on GitHub (Nov 8, 2023):
mam zainstalowane opencv w wersji opencv-2.4.13
mam libjpeg-turbo w wersji: libjpeg-turbo-2.0.4-vc64.exe
mama ustawione parametry go env:

I have paths:

@toom94 commented on GitHub (Nov 8, 2023):
ok, it worked, I built it with cv2 - but the application closes without any error... how can I find out the reason for closing?

@gen2brain commented on GitHub (Nov 8, 2023):
Start the terminal first, and run it from terminal, so it stays when it crashes.
@toom94 commented on GitHub (Nov 8, 2023):
doesn't write anything

@toom94 commented on GitHub (Nov 13, 2023):
I managed to get something more:

Have you encountered such a problem?