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

How to add this lib ? #100

Closed
mohit810 opened this issue Aug 26, 2020 · 7 comments
Closed

How to add this lib ? #100

mohit810 opened this issue Aug 26, 2020 · 7 comments

Comments

@mohit810
Copy link

mohit810 commented Aug 26, 2020

I know Its simple but I am new at Go and facing issue.

on installation using

go get -u github.com/davidbyttow/govips/pkg/vips

I am getting

# pkg-config --cflags  -- vips vips vips vips vips vips vips vips vips
pkg-config: exec: "pkg-config": executable file not found in %PATH%

@tonimelisma
Copy link
Collaborator

You need to install pkg-config. If you're on Mac, try homebrew (homebrew install pkg-config) and if you're on Ubuntu, sudo apt install pkg-config

You probably also need the relevant libraries and their header files (homebrew install vipsor sudo apt install libvips-dev)

@mohit810
Copy link
Author

You need to install pkg-config. If you're on Mac, try homebrew (homebrew install pkg-config) and if you're on Ubuntu, sudo apt install pkg-config

You probably also need the relevant libraries and their header files (homebrew install vipsor sudo apt install libvips-dev)

i have ubuntu on vm, will try the steps u mentioned on it but is there any way of testing it on windows?

@tonimelisma
Copy link
Collaborator

Yeah, both libvips as well as govips should work on Windows. Try and get libvips first installed (from their github) and work from there. Apologies, but not actively using Windows right now so can't provide more guidance.

@mohit810
Copy link
Author

Yeah, both libvips as well as govips should work on Windows. Try and get libvips first installed (from their github) and work from there. Apologies, but not actively using Windows right now so can't provide more guidance.

It's really great that u could point me in the right direction. I am glad for that and one last thing, if u don't mind I found ur recommendation of the other fork. For this https://github.com/wix-playground/govips fork do i have to pre-install something or just "go get - u.." will be enough?

@tonimelisma
Copy link
Collaborator

The exact same prerequisites, both pkg-config as well as libvips-dev.

@tonimelisma
Copy link
Collaborator

Hey @mohit810 I've now fixed the latest govips version here and integrated all the improvements from the wix-playground fork. The API has changed quite a bit. The README should have clear instructions on both how to install dependencies as well as how to get govips working. If there's any issues you run into, let me know.

If you figure out how to get govips working on Windows, please let me know what's required!

@stackcoder
Copy link

@tonimelisma I created a minimal Docker container to cross-compile govips for Windows using MinGW and MSYSY2. Maybe it helps here.

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

3 participants