Open liinyun opened 2 days ago
Without mupdf-third it fails to compile on my end, I can add mupdf alongside mupdf-third if that solves your issue?
Without mupdf-third it fails to compile on my end, I can add mupdf alongside mupdf-third if that solves your issue?
I mean you can replace mupdf-third with mupdf , this solves my problem. My os is fedora 41
when I replace mupdf-third with mupdf it doesn't build on my end, I added mupdf alongside mupdf-third, let me know if this works for you
when I replace mupdf-third with mupdf it doesn't build on my end, I added mupdf alongside mupdf-third, let me know if this works for you
When I add mupdf alongside mupdf-third, It doesn't build on my end.
$ zig build run -- /home/linya/codes/LATEX/test/main.pdf run └─ run fancy-cat └─ zig build-exe fancy-cat Debug native failure error: error: unable to find dynamic system library 'mupdf-third' using strategy 'paths_first'. searched paths: /usr/local/lib64/libmupdf-third.so /usr/local/lib64/libmupdf-third.a /usr/local/lib/libmupdf-third.so /usr/local/lib/libmupdf-third.a /usr/lib/x86_64-linux-gnu/libmupdf-third.so /usr/lib/x86_64-linux-gnu/libmupdf-third.a /lib64/libmupdf-third.so /lib64/libmupdf-third.a /lib/libmupdf-third.so /lib/libmupdf-third.a /usr/lib64/libmupdf-third.so /usr/lib64/libmupdf-third.a /usr/lib/libmupdf-third.so /usr/lib/libmupdf-third.a /lib/x86_64-linux-gnu/libmupdf-third.so /lib/x86_64-linux-gnu/libmupdf-third.a
error: the following command exited with error code 1: /usr/bin/zig build-exe -lmupdf -lmupdf-third -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -DWITH_GZFILEOP -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-6 -lharfbuzz -lfreetype -ljbig2dec -ljpeg -lopenjp2 -lgumbo -lmujs -lz -ODebug --dep vaxis --dep fzwatch --dep config -Mroot=/home/linya/codes/github/fancy-cat/src/main.zig -ODebug --dep code_point --dep grapheme --dep DisplayWidth --dep zigimg -Mvaxis=/home/linya/.cache/zig/p/1220feaa655e14cbb4baf59fe746f09a17fc6949be46ad64dd5044982f4fc1bb57c7/src/main.zig /home/linya/codes/github/fancy-cat/.zig-cache/o/ad32cda7f6d7e8e2bd16710fd9ff66ba/libfzwatch.a -I /home/linya/codes/github/fancy-cat/.zig-cache/o/544790c738d38eb183fa637997b2e9c3 -Mfzwatch=/home/linya/.cache/zig/p/1220b0c4f4a5f3df2b1268a9da04bc901ede4f8bd2938e846ee1e88783ed57cee79a/src/main.zig -Mconfig=/home/linya/codes/github/fancy-cat/src/config.zig -ODebug -Mcode_point=/home/linya/.cache/zig/p/122055beff332830a391e9895c044d33b15ea21063779557024b46169fb1984c6e40/src/code_point.zig -ODebug --dep code_point --dep GraphemeData -Mgrapheme=/home/linya/.cache/zig/p/122055beff332830a391e9895c044d33b15ea21063779557024b46169fb1984c6e40/src/grapheme.zig -ODebug --dep ascii --dep code_point --dep grapheme --dep DisplayWidthData -MDisplayWidth=/home/linya/.cache/zig/p/122055beff332830a391e9895c044d33b15ea21063779557024b46169fb1984c6e40/src/DisplayWidth.zig -Mzigimg=/home/linya/.cache/zig/p/1220dd654ef941fc76fd96f9ec6adadf83f69b9887a0d3f4ee5ac0a1a3e11be35cf5/zigimg.zig -ODebug --dep gbp -MGraphemeData=/home/linya/.cache/zig/p/122055beff332830a391e9895c044d33b15ea21063779557024b46169fb1984c6e40/src/GraphemeData.zig -ODebug -Mascii=/home/linya/.cache/zig/p/122055beff332830a391e9895c044d33b15ea21063779557024b46169fb1984c6e40/src/ascii.zig -ODebug --dep dwp --dep GraphemeData -MDisplayWidthData=/home/linya/.cache/zig/p/122055beff332830a391e9895c044d33b15ea21063779557024b46169fb1984c6e40/src/WidthData.zig -Mgbp=/home/linya/codes/github/fancy-cat/.zig-cache/o/d1a1191222ce436289c7a8973d90eadd/gbp.bin.z -Mdwp=/home/linya/codes/github/fancy-cat/.zig-cache/o/8ec9b024cec6e16ead4a4e96f44554a5/dwp.bin.z -lc --cache-dir /home/linya/codes/github/fancy-cat/.zig-cache --global-cache-dir /home/linya/.cache/zig --name fancy-cat --listen=- Build Summary: 7/10 steps succeeded; 1 failed (disable with --summary none) run transitive failure └─ run fancy-cat transitive failure └─ zig build-exe fancy-cat Debug native failure error: the following build command failed with exit code 1: /home/linya/codes/github/fancy-cat/.zig-cache/o/1ab4ac2f45999337c4580ed544e24b77/build /usr/bin/zig /home/linya/codes/github/fancy-cat /home/linya/codes/github/fancy-cat/.zig-cache /home/linya/.cache/zig --seed 0x1c52f24f -Z5832f846f7d185f4 run -- /home/linya/codes/LATEX/test/main.pdf
Just want to chime in here, Im on Arch Linux and I also have to remove mupdf-third (and just link against mupdf) for things to compile properly. Everything from what I can tell works just fine, so I'm guessing it is just a distro difference in libs. Maybe a compile time option for newer distros would be solid? I wish there was a good way to detect these things lol. I also think just throwing a notice in the README is probably more than enough.
Thanks for letting me know! I'll see what I can do, for now a notice in the README seems fine.
如果直接编译是会出错的,需要把 build.zig 第12 行的 "mupdf-tird" 修改为 "mupdf"