Closed frytoli closed 11 months ago
I haven't worked on this for a long time so it's amazing that it can still run and generate some Go wrapper code with small fixes. Here is what I did:
There are some issues with the generated code, the go-mupdf/fz/auto_amd64.go file is almost empty. Without the fz package, the generated wrapper cannot compile, unfortunately.
I made some modifications so that the intermediate header file and XML file are written to the "temp" directory, which could potentially help with troubleshooting. I'm not sure about the root cause but it could be some simple logic error, e.g. the layout of the parsed XML changes so it failed to find the functions under fitz which means the configs or some logic for finding those functions need to be changed.
Hello -- firstly, thank you for your work here. I'm excited to use this package.
I'm attempting to use this project to create bindings for MuPDF's Fitz. I'm using your MuPDF example as a reference, but my code is not working. Any advice would be greatly appreciated.
Here's my directory setup. I effectively cloned MuPDF and plucked out the
include/
directory:My go code:
And, the errors I'm getting. I'm at a complete loss for how to solve the first error about the "angled include." The second one is about relative imports, and I'm able to make it go away by flattening all of the fitz code into one directory. But, I don't think that's the right way to solve the issue:
Thank you in advance for your help!