Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Z
zathura-pdf-mupdf
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • pwmt
  • zathura-pdf-mupdf
  • Issues
  • #14

Closed
Open
Opened Jul 10, 2020 by Leo@zerinol
  • Report abuse
  • New issue
Report abuse New issue

[zathura-pdf-mupdf] Build fails compiling search.c

I'm on ubuntu 18.04 trying to build last zathura-pdf-mupdf using mupdf version 1.14.

it fails compiling search.c

[10/11] Compiling C object 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o'
FAILED: pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o
cc -Ipdf-mupdf@sha -I. -I.. -I/usr/include/json-c -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/local/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c11 -g -fPIC -pthread -DVERSION_MAJOR=0 -DVERSION_MINOR=3 -DVERSION_REV=5 -D_DEFAULT_SOURCE -Wall -Wextra -pedantic -Werror=implicit-function-declaration -Werror=vla -fvisibility=hidden -MD -MQ 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o' -MF 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o.d' -o 'pdf-mupdf@sha/zathura-pdf-mupdf_search.c.o' -c ../zathura-pdf-mupdf/search.c
../zathura-pdf-mupdf/search.c: In function ‘pdf_page_search_text’:
../zathura-pdf-mupdf/search.c:42:74: error: expected expression before ‘fz_quad’
   42 |   fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, fz_quad);
      |                                                                          ^~~~~~~
ninja: build stopped: subcommand failed.

heres meson build output

The Meson build system
Version: 0.54.3
Source dir: /home/zerinol/fixo/source/zathura-pdf-mupdf
Build dir: /home/zerinol/fixo/source/zathura-pdf-mupdf/build
Build type: native build
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Project name: zathura-pdf-mupdf
Project version: 0.3.5
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-11ubuntu0~18.04.1) 9.3.0")
C linker for the host machine: cc ld.bfd 2.30
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Run-time dependency zathura found: YES 0.4.5
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Run-time dependency girara-gtk3 found: YES 0.3.4
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Run-time dependency glib-2.0 found: YES 2.56.4
Using 'PKG_CONFIG_PATH' from environment with value: '/usr/lib/x86_64-linux-gnu/pkgconfig'
Run-time dependency cairo found: YES 1.15.10
Library mupdf found: YES
Library mupdf-third found: YES
Compiler for C supports arguments -Wall: YES
Compiler for C supports arguments -Wextra: YES
Compiler for C supports arguments -pedantic: YES
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=vla: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Build targets in project: 1
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: pwmt/zathura-pdf-mupdf#14