ymarco / paper-mode

(Abandoned) Document viewer for Emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Couldn't build on archlinux

larrasket opened this issue · comments

make in arch linux x86_64 gives:

cc -Wall -Wextra -Wno-unused-parameter -Wshadow -std=c99 -fpic `pkg-config --cflags gtk+-3.0 cairo` -lm -lmupdf   -c -o PaperView.o PaperView.c
PaperView.c: In function ‘ensure_search_cache_is_updated’:
PaperView.c:257:58: warning: passing argument 4 of ‘fz_search_stext_page’ from incompatible pointer type [-Wincompatible-pointer-types]
  257 |                                  page->cache.search.quads.quads, max_count);
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
      |                                                          |
      |                                                          fz_quad *
In file included from /usr/include/mupdf/fitz.h:70,
                 from PaperView.c:2:
/usr/include/mupdf/fitz/structured-text.h:248:89: note: expected ‘int *’ but argument is of type ‘fz_quad *’
  248 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, int *hit_mark, fz_quad *hit_bbox, int hit_max);
      |                                                                                    ~~~~~^~~~~~~~
PaperView.c:257:66: warning: passing argument 5 of ‘fz_search_stext_page’ makes pointer from integer without a cast [-Wint-conversion]
  257 |                                  page->cache.search.quads.quads, max_count);
      |                                                                  ^~~~~~~~~
      |                                                                  |
      |                                                                  int
/usr/include/mupdf/fitz/structured-text.h:248:108: note: expected ‘fz_quad *’ but argument is of type ‘int’
  248 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, int *hit_mark, fz_quad *hit_bbox, int hit_max);
      |                                                                                                   ~~~~~~~~~^~~~~~~~
PaperView.c:256:13: error: too few arguments to function ‘fz_search_stext_page’
  256 |     count = fz_search_stext_page(ctx, page->page_text, search,
      |             ^~~~~~~~~~~~~~~~~~~~
/usr/include/mupdf/fitz/structured-text.h:248:5: note: declared here
  248 | int fz_search_stext_page(fz_context *ctx, fz_stext_page *text, const char *needle, int *hit_mark, fz_quad *hit_bbox, int hit_max);
      |     ^~~~~~~~~~~~~~~~~~~~
make: *** [<builtin>: PaperView.o] Error 1