You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a real issue, I guess, more a request.
Unless I've missed it, it would be great to have a simple guide for the compilation.
I've found very useful information in open and closed issues, which it is still not sufficient to successfully compile but at least moved me forward. For example, the dependency on the actual mupdf source code is far from obvious (again, at least for me), so until I found it mentioned in an issue, I was stuck.
I feel this information should be in the README or in a page linked in the GitHub landing page.
(by the way, I love this tool, even if I couldn't even start it yet :)
The text was updated successfully, but these errors were encountered:
sforli created an issue (aligrudi/fbpdf#17)
This is not a real issue, I guess, more a request.
Unless I've missed it, it would be great to have a simple guide for the compilation.
I've found very useful information in open and closed issues, which
it is still not sufficient to successfully compile but at least moved
me forward. For example, the dependency on the actual mupdf source
code is far from obvious (again, at least for me), so until I found it
mentioned in an issue, I was stuck.
I feel this information should be in the README or in a page linked in the GitHub landing page.
(by the way, I love this tool, even if I couldn't even start it yet :)
I usually compile mupdf myself and pass complation and linking flags
as you see in the Makefile. However, I guess for most users it would
be more convenient to use pkg-config.
After installing mupdf library package (its name is probably
libmupdf-dev in Debian), does the default make target work:
# apt install libmupdf-dev
# make
If not, please try this patch before invoking make:
diff --git a/Makefile b/Makefile
index ba8f5a0..529a800 100644
--- a/Makefile
+++ b/Makefile
@@ -11,8 +11,10 @@ clean:
-rm -f *.o fbpdf fbdjvu fbpdf2
# PDF support using mupdf
+mupdf.o: mupdf.c
+ $(CC) -o $(CFLAGS) `pkg-config --cflags mupdf` $<
fbpdf: fbpdf.o mupdf.o draw.o
- $(CC) -o $@ $^ $(LDFLAGS) -lmupdf -lmupdf-third -lmupdf-pkcs7 -lmupdf-threads -lm
+ $(CC) -o $@ $^ $(LDFLAGS) `pkg-config --libs mupdf`
# DjVu support
fbdjvu: fbpdf.o djvulibre.o draw.o
Ali
This is not a real issue, I guess, more a request.
Unless I've missed it, it would be great to have a simple guide for the compilation.
I've found very useful information in open and closed issues, which it is still not sufficient to successfully compile but at least moved me forward. For example, the dependency on the actual mupdf source code is far from obvious (again, at least for me), so until I found it mentioned in an issue, I was stuck.
I feel this information should be in the README or in a page linked in the GitHub landing page.
(by the way, I love this tool, even if I couldn't even start it yet :)
The text was updated successfully, but these errors were encountered: