amirdadp / pdfSplitter

A small CLI to split pdfs
MIT License
0 stars 0 forks source link

Cannot build executable #5

Open rokath opened 1 month ago

rokath commented 1 month ago

I could not figure out how to install ghostsript. None of the windows artifacts inside the referenced https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs9550 contains ghostscript/gdevdsp.h:

ms@DESKTOP-7POEGPB MINGW64 ~/Downloads/pdfSplitter-1.0.1
$ go build main.go
# github.com/amirdadp/go-ghostscript/ghostscript
..\..\go\pkg\mod\github.com\amirdadp\go-ghostscript@v0.0.0-20230509185812-1740bd0d1a21\ghostscript\ghostscript.go:8:10: fatal error: ghostscript/gdevdsp.h: No such file or directory
    8 | #include <ghostscript/gdevdsp.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

ms@DESKTOP-7POEGPB MINGW64 ~/Downloads/pdfSplitter-1.0.1

Please extend your documentation accordingly. Also it would be great if you provide binaries for downloads. You could use https://goreleaser.com/ for that.

amirdadp commented 1 month ago

Thank you, I will look into this when I have some free time.