bimg
bimg copied to clipboard
Development on Windows 10
This is no issue, just information for users who want to use this package in a project while developing in a windows environment:
- Install Linux Subsystem (Ubuntu)
- You should use 18.04 when Windows is not upgraded to Win10 2004 with WSL2: Ubuntu 20.04 and WSL 1
- Start Ubuntu Shell
- Install Go as described on golang.org
- Install needed packages
-
Ubuntu 18.04:
apt install build-essential pkg-config glib2.0-dev libexpat1-dev libtiff5-dev libjpeg-turbo8-dev libgsf-1-dev libexif-dev giflib-tools librsvg2-dev libpoppler-glib-dev libgsf-1-dev libtiff-dev libfftw3-dev liblcms2-dev libpng-dev imagemagick libwebp-dev libgif-dev
-
Ubuntu 20.04:
apt install build-essential pkg-config libexpat1-dev libvips-dev
-
Ubuntu 18.04:
-
For 20.04 not needed: Download current source tarball from https://github.com/libvips/libvips/releases
- Follow Instructions from Building libvips from a source tarball
- Most optional dependencies for basic support of common use cases should be already installed
-
libimagequant
gets available with Ubuntu 20.04
-
- Go to your project path f.e.
cd /mnt/c/delve/cool-project/
- Exec
go get -u
- Exec
go build
- Exec your binary
If you are using Goland, you can just set C:\Windows\System32\bash.exe
as Shell path
in your terminal settings. For debug sessions, you will have to use Go remote
configuration.
there is no way to do without wsl?