baskerville / plato

Document reader
Other
1.31k stars 109 forks source link

Failure to compile on M1 Mac #287

Closed inderdeepsingh closed 1 year ago

inderdeepsingh commented 1 year ago

Following the build steps here

I ran emulator.sh after cloning the repo The script complains about:

mupdf_wrapper.c:1:10: fatal error: 'mupdf/fitz.h' file not found

but continues anyway

Here's the full build log output:

bash-5.2$ ./run-emulator.sh
+ ./run-emulator.sh
+ '[' -e Settings.toml ']'
+ cat
+ ./service.sh run_emulator
+ '[' 1 -lt 1 ']'
+ WRAPPER_PATH=mupdf_wrapper
++ uname -s
+ TARGET_OS=Darwin
+ '[' -e mupdf_wrapper/Darwin ']'
+ cd mupdf_wrapper
+ ./build.sh
+ set -e
+ CC=gcc
+ AR=ar
++ uname -s
+ TARGET_OS=Darwin
+ BUILD_DIR=../target/mupdf_wrapper/Darwin
+ mkdir -p ../target/mupdf_wrapper/Darwin
+ gcc -I../thirdparty/mupdf/include -c mupdf_wrapper.c -o ../target/mupdf_wrapper/Darwin/mupdf_wrapper.o
mupdf_wrapper.c:1:10: fatal error: 'mupdf/fitz.h' file not found
#include <mupdf/fitz.h>
         ^~~~~~~~~~~~~~
1 error generated.
+ cd -
/Users/angad/Projects/plato
+ CMD=run_emulator
+ shift
+ case "$CMD" in
+ cargo run -p emulator
   Compiling libc v0.2.141
   Compiling proc-macro2 v1.0.56
   Compiling autocfg v1.1.0
   Compiling quote v1.0.26
   Compiling unicode-ident v1.0.8
   Compiling cfg-if v1.0.0
   Compiling serde_derive v1.0.159
   Compiling serde v1.0.159
   Compiling version_check v0.9.4
   Compiling typenum v1.16.0
   Compiling pkg-config v0.3.26
   Compiling generic-array v0.14.7
   Compiling memchr v2.5.0
   Compiling num-traits v0.2.15
   Compiling subtle v2.4.1
   Compiling fnv v1.0.7
   Compiling crc32fast v1.3.2
   Compiling indexmap v1.9.3
   Compiling zstd-safe v5.0.2+zstd.1.5.2
   Compiling rand_core v0.6.4
   Compiling syn v2.0.13
   Compiling adler v1.0.2
   Compiling version-compare v0.1.1
   Compiling miniz_oxide v0.6.2
   Compiling aho-corasick v0.7.20
   Compiling jobserver v0.1.26
   Compiling cc v1.0.79
   Compiling cpufeatures v0.2.6
   Compiling sdl2-sys v0.35.2
   Compiling memoffset v0.7.1
   Compiling num-integer v0.1.45
   Compiling hashbrown v0.12.3
   Compiling bitflags v1.3.2
   Compiling block-buffer v0.10.4
   Compiling crypto-common v0.1.6
   Compiling regex-syntax v0.6.29
   Compiling base64ct v1.6.0
   Compiling log v0.4.17
   Compiling digest v0.10.6
   Compiling hmac v0.12.1
   Compiling sha2 v0.10.6
   Compiling password-hash v0.4.2
   Compiling cipher v0.3.0
   Compiling flate2 v1.0.25
   Compiling core-foundation-sys v0.8.4
   Compiling opaque-debug v0.3.0
   Compiling lazy_static v1.4.0
   Compiling serde_json v1.0.95
   Compiling time-core v0.1.0
   Compiling anyhow v1.0.70
   Compiling winnow v0.4.1
   Compiling byteorder v1.4.3
   Compiling thiserror v1.0.40
   Compiling tinyvec_macros v0.1.1
   Compiling tinyvec v1.6.0
   Compiling time v0.3.20
   Compiling iana-time-zone v0.1.56
   Compiling zstd-sys v2.0.8+zstd.1.5.5
   Compiling bzip2-sys v0.1.11+1.0.8
   Compiling aes v0.7.5
   Compiling pbkdf2 v0.11.0
   Compiling regex v1.7.3
   Compiling sha1 v0.10.5
   Compiling bstr v1.4.0
   Compiling plato-core v0.9.35 (/Users/angad/Projects/plato/crates/core)
   Compiling sdl2 v0.35.2
   Compiling static_assertions v1.1.0
   Compiling itoa v1.0.6
   Compiling pin-utils v0.1.0
   Compiling constant_time_eq v0.1.5
   Compiling same-file v1.0.6
   Compiling ryu v1.0.13
   Compiling joinery v2.1.0
   Compiling walkdir v2.3.3
   Compiling nix v0.26.2
   Compiling unicode-normalization v0.1.22
   Compiling globset v0.4.10
   Compiling titlecase v2.2.1
   Compiling fxhash v0.2.1
   Compiling png v0.17.7
   Compiling filetime v0.2.21
   Compiling rand_xoshiro v0.6.0
   Compiling thiserror-impl v1.0.40
   Compiling downcast-rs v1.2.0
   Compiling paragraph-breaker v0.4.4
   Compiling levenshtein v1.0.5
   Compiling percent-encoding v2.2.0
   Compiling septem v1.1.0
   Compiling entities v1.0.1
   Compiling bitflags v2.1.0
   Compiling xi-unicode v0.3.0
   Compiling bzip2 v0.4.4
   Compiling zstd v0.11.2+zstd.1.5.2
   Compiling zip v0.6.4
   Compiling atlatl v0.1.2
   Compiling bincode v1.3.3
   Compiling serde_spanned v0.6.1
   Compiling toml_datetime v0.6.1
   Compiling chrono v0.4.24
   Compiling kl-hyphenate-commons v0.7.3
   Compiling toml_edit v0.19.8
   Compiling kl-hyphenate v0.7.3
   Compiling toml v0.7.3
error: could not find native static library `mupdf_wrapper`, perhaps an -L flag is missing?

error: could not compile `plato-core` due to previous error
inderdeepsingh commented 1 year ago

The docker build process doesn't work as well. It fails to find libcrypt.so.1 I issued the following command:

docker build . -f Dockerfile.dev -t plato:dev

and got the output

[+] Building 22.6s (7/9)
 => [internal] load build definition from Dockerfile.dev                                                                     0.0s
 => => transferring dockerfile: 660B                                                                                         0.0s
 => [internal] load .dockerignore                                                                                            0.0s
 => => transferring context: 2B                                                                                              0.0s
 => [internal] load metadata for docker.io/library/rust:1.60.0-buster                                                        0.0s
 => [1/5] FROM docker.io/library/rust:1.60.0-buster                                                                          0.0s
 => CANCELED [internal] load build context                                                                                  22.5s
 => => transferring context: 360.51MB                                                                                       22.5s
 => CACHED [2/5] RUN apt-get update && apt-get install -y libtool         pkg-config         jq         libdjvulibre-dev     0.0s
 => ERROR [3/5] RUN echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list        && apt-get update   22.5s
------
 > [3/5] RUN echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list        && apt-get update        && apt-get install -y mupdf libmupdf-dev:
#6 0.995 Get:1 http://deb.debian.org/debian testing InRelease [181 kB]
#6 1.818 Get:2 http://deb.debian.org/debian testing/main arm64 Packages [8811 kB]
#6 4.891 Fetched 8992 kB in 4s (2148 kB/s)
#6 4.891 Reading package lists...
#6 6.288 Reading package lists...
#6 7.737 Building dependency tree...
#6 7.977 Reading state information...
#6 8.502 The following packages were automatically installed and are no longer required:
#6 8.502   cpp-8 libasan5 libisl19 libmpdec2 libpcre16-3 libpcre3-dev libpcre32-3
#6 8.503   libpcrecpp0v5 libpython3.7-minimal libpython3.7-stdlib libtsan0
#6 8.503   python3.7-minimal
#6 8.503 Use 'apt autoremove' to remove them.
#6 8.503 The following additional packages will be installed:
#6 8.503   binutils binutils-aarch64-linux-gnu binutils-common cpp cpp-12 g++ g++-12
#6 8.503   gcc gcc-12 gcc-12-base libasan8 libatomic1 libbinutils libc-bin libc-dev-bin
#6 8.503   libc6 libc6-dev libcc1-0 libcrypt-dev libcrypt1 libctf-nobfd0 libctf0
#6 8.503   libffi-dev libffi8 libgcc-12-dev libgcc-s1 libgirepository-1.0-1
#6 8.503   libglib2.0-0 libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libglut3.12
#6 8.503   libgmp-dev libgmp10 libgmpxx4ldbl libgomp1 libgprofng0 libgumbo1 libhwasan0
#6 8.503   libisl23 libitm1 libjansson4 libjbig2dec0 liblsan0 libmount-dev libmount1
#6 8.503   libmujs2 libnsl-dev libnsl2 libpam0g libpcre2-16-0 libpcre2-32-0
#6 8.503   libpcre2-8-0 libpcre2-dev libpcre2-posix3 libpython3-stdlib
#6 8.503   libpython3.11-minimal libpython3.11-stdlib libreadline8 libselinux1
#6 8.503   libselinux1-dev libsepol-dev libsepol2 libsqlite3-0 libsqlite3-dev libssl3
#6 8.504   libstdc++-12-dev libstdc++6 libtirpc-common libtirpc-dev libtirpc3 libtsan2
#6 8.504   libubsan1 libzstd1 python3 python3-distutils python3-lib2to3 python3-minimal
#6 8.504   python3.11 python3.11-minimal rpcsvc-proto
#6 8.505 Suggested packages:
#6 8.505   binutils-doc cpp-doc gcc-12-locales cpp-12-doc gcc-12-doc gcc-multilib
#6 8.505   manpages-dev flex bison gdb gcc-doc glibc-doc libc-l10n locales libnss-nis
#6 8.505   libnss-nisplus low-memory-monitor libgirepository1.0-dev libglib2.0-doc
#6 8.505   libxml2-utils gmp-doc libgmp10-doc libmpfr-dev cryptsetup-bin libpam-doc
#6 8.505   sqlite3-doc libstdc++-12-doc mupdf-tools python3-doc python3-tk python3-venv
#6 8.505   python3.11-venv python3.11-doc binfmt-support
#6 8.505 Recommended packages:
#6 8.505   manpages manpages-dev libc-devtools xdg-user-dirs
#6 9.524 The following packages will be REMOVED:
#6 9.527   g++-8 gcc-8 libgcc-8-dev libsepol1-dev libstdc++-8-dev python3.7
#6 9.527 The following NEW packages will be installed:
#6 9.527   cpp-12 g++-12 gcc-12 gcc-12-base libasan8 libcrypt-dev libcrypt1
#6 9.527   libctf-nobfd0 libctf0 libffi8 libgcc-12-dev libgcc-s1 libglut3.12
#6 9.527   libgprofng0 libgumbo1 libhwasan0 libisl23 libjansson4 libjbig2dec0 libmujs2
#6 9.527   libmupdf-dev libnsl-dev libnsl2 libpcre2-16-0 libpcre2-32-0 libpcre2-dev
#6 9.527   libpcre2-posix3 libpython3.11-minimal libpython3.11-stdlib libreadline8
#6 9.527   libsepol-dev libsepol2 libssl3 libstdc++-12-dev libtirpc-common libtirpc-dev
#6 9.527   libtirpc3 libtsan2 mupdf python3.11 python3.11-minimal rpcsvc-proto
#6 9.527 The following packages will be upgraded:
#6 9.527   binutils binutils-aarch64-linux-gnu binutils-common cpp g++ gcc libatomic1
#6 9.527   libbinutils libc-bin libc-dev-bin libc6 libc6-dev libcc1-0 libffi-dev
#6 9.528   libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin libglib2.0-dev
#6 9.530   libglib2.0-dev-bin libgmp-dev libgmp10 libgmpxx4ldbl libgomp1 libitm1
#6 9.530   liblsan0 libmount-dev libmount1 libpam0g libpcre2-8-0 libpython3-stdlib
#6 9.530   libselinux1 libselinux1-dev libsqlite3-0 libsqlite3-dev libstdc++6 libubsan1
#6 9.530   libzstd1 python3 python3-distutils python3-lib2to3 python3-minimal
#6 9.671 41 upgraded, 42 newly installed, 6 to remove and 417 not upgraded.
#6 9.671 Need to get 148 MB of archives.
#6 9.671 After this operation, 323 MB of additional disk space will be used.
#6 9.671 Get:1 http://deb.debian.org/debian testing/main arm64 gcc-12-base arm64 12.2.0-14 [37.5 kB]
#6 9.729 Get:2 http://deb.debian.org/debian testing/main arm64 libgmpxx4ldbl arm64 2:6.2.1+dfsg1-1.1 [338 kB]
#6 9.824 Get:3 http://deb.debian.org/debian testing/main arm64 libgmp-dev arm64 2:6.2.1+dfsg1-1.1 [622 kB]
#6 9.876 Get:4 http://deb.debian.org/debian testing/main arm64 libgmp10 arm64 2:6.2.1+dfsg1-1.1 [538 kB]
#6 9.893 Get:5 http://deb.debian.org/debian testing/main arm64 libisl23 arm64 0.25-1 [611 kB]
#6 9.910 Get:6 http://deb.debian.org/debian testing/main arm64 libc6 arm64 2.36-8 [2310 kB]
#6 10.10 Get:7 http://deb.debian.org/debian testing/main arm64 libgcc-s1 arm64 12.2.0-14 [34.8 kB]
#6 10.10 Get:8 http://deb.debian.org/debian testing/main arm64 libzstd1 arm64 1.5.4+dfsg2-5 [251 kB]
#6 10.11 Get:9 http://deb.debian.org/debian testing/main arm64 cpp-12 arm64 12.2.0-14 [8226 kB]
#6 10.32 Get:10 http://deb.debian.org/debian testing/main arm64 libcc1-0 arm64 12.2.0-14 [37.7 kB]
#6 10.32 Get:11 http://deb.debian.org/debian testing/main arm64 libbinutils arm64 2.40-2 [645 kB]
#6 10.34 Get:12 http://deb.debian.org/debian testing/main arm64 libctf-nobfd0 arm64 2.40-2 [144 kB]
#6 10.34 Get:13 http://deb.debian.org/debian testing/main arm64 libctf0 arm64 2.40-2 [79.2 kB]
#6 10.35 Get:14 http://deb.debian.org/debian testing/main arm64 libgprofng0 arm64 2.40-2 [680 kB]
#6 10.36 Get:15 http://deb.debian.org/debian testing/main arm64 libjansson4 arm64 2.14-2 [40.2 kB]
#6 10.36 Get:16 http://deb.debian.org/debian testing/main arm64 binutils-aarch64-linux-gnu arm64 2.40-2 [2637 kB]
#6 10.62 Get:17 http://deb.debian.org/debian testing/main arm64 binutils arm64 2.40-2 [64.9 kB]
#6 10.62 Get:18 http://deb.debian.org/debian testing/main arm64 binutils-common arm64 2.40-2 [2487 kB]
#6 10.67 Get:19 http://deb.debian.org/debian testing/main arm64 libc-dev-bin arm64 2.36-8 [43.0 kB]
#6 10.67 Get:20 http://deb.debian.org/debian testing/main arm64 libpam0g arm64 1.5.2-6 [90.4 kB]
#6 10.67 Get:21 http://deb.debian.org/debian testing/main arm64 libcrypt1 arm64 1:4.4.33-2 [90.0 kB]
#6 10.68 Get:22 http://deb.debian.org/debian testing/main arm64 libglib2.0-dev arm64 2.74.6-1 [1613 kB]
#6 10.71 Get:23 http://deb.debian.org/debian testing/main arm64 libc6-dev arm64 2.36-8 [1427 kB]
#6 10.73 Get:24 http://deb.debian.org/debian testing/main arm64 libcrypt-dev arm64 1:4.4.33-2 [121 kB]
#6 10.74 Get:25 http://deb.debian.org/debian testing/main arm64 libtirpc-common all 1.3.3+ds-1 [14.0 kB]
#6 10.74 Get:26 http://deb.debian.org/debian testing/main arm64 libtirpc3 arm64 1.3.3+ds-1 [80.9 kB]
#6 10.74 Get:27 http://deb.debian.org/debian testing/main arm64 libnsl2 arm64 1.3.0-2 [36.9 kB]
#6 10.74 Get:28 http://deb.debian.org/debian testing/main arm64 libtirpc-dev arm64 1.3.3+ds-1 [194 kB]
#6 10.74 Get:29 http://deb.debian.org/debian testing/main arm64 libnsl-dev arm64 1.3.0-2 [66.1 kB]
#6 10.75 Get:30 http://deb.debian.org/debian testing/main arm64 rpcsvc-proto arm64 1.4.3-1 [59.7 kB]
#6 10.75 Get:31 http://deb.debian.org/debian testing/main arm64 libffi8 arm64 3.4.4-1 [20.5 kB]
#6 10.75 Get:32 http://deb.debian.org/debian testing/main arm64 libffi-dev arm64 3.4.4-1 [56.0 kB]
#6 10.77 Get:33 http://deb.debian.org/debian testing/main arm64 libsepol2 arm64 3.4-2 [258 kB]
#6 10.80 Get:34 http://deb.debian.org/debian testing/main arm64 libsepol-dev arm64 3.4-2 [343 kB]
#6 10.81 Get:35 http://deb.debian.org/debian testing/main arm64 libpcre2-8-0 arm64 10.42-1 [231 kB]
#6 10.82 Get:36 http://deb.debian.org/debian testing/main arm64 libpcre2-16-0 arm64 10.42-1 [216 kB]
#6 10.82 Get:37 http://deb.debian.org/debian testing/main arm64 libpcre2-32-0 arm64 10.42-1 [207 kB]
#6 10.83 Get:38 http://deb.debian.org/debian testing/main arm64 libpcre2-posix3 arm64 10.42-1 [55.5 kB]
#6 10.83 Get:39 http://deb.debian.org/debian testing/main arm64 libpcre2-dev arm64 10.42-1 [664 kB]
#6 10.84 Get:40 http://deb.debian.org/debian testing/main arm64 libselinux1-dev arm64 3.4-1+b5 [159 kB]
#6 10.85 Get:41 http://deb.debian.org/debian testing/main arm64 libselinux1 arm64 3.4-1+b5 [69.0 kB]
#6 10.85 Get:42 http://deb.debian.org/debian testing/main arm64 libmount-dev arm64 2.38.1-5+b1 [22.5 kB]
#6 10.85 Get:43 http://deb.debian.org/debian testing/main arm64 libmount1 arm64 2.38.1-5+b1 [159 kB]
#6 10.86 Get:44 http://deb.debian.org/debian testing/main arm64 libgirepository-1.0-1 arm64 1.74.0-3 [93.2 kB]
#6 10.87 Get:45 http://deb.debian.org/debian testing/main arm64 libglib2.0-dev-bin arm64 2.74.6-1 [149 kB]
#6 10.90 Get:46 http://deb.debian.org/debian testing/main arm64 libglib2.0-bin arm64 2.74.6-1 [106 kB]
#6 10.94 Get:47 http://deb.debian.org/debian testing/main arm64 libglib2.0-0 arm64 2.74.6-1 [1311 kB]
#6 10.97 Get:48 http://deb.debian.org/debian testing/main arm64 libssl3 arm64 3.0.8-1 [1801 kB]
#6 11.00 Get:49 http://deb.debian.org/debian testing/main arm64 libpython3.11-minimal arm64 3.11.2-6 [806 kB]
#6 11.02 Get:50 http://deb.debian.org/debian testing/main arm64 python3.11-minimal arm64 3.11.2-6 [1858 kB]
#6 11.06 Get:51 http://deb.debian.org/debian testing/main arm64 python3-minimal arm64 3.11.2-1+b1 [26.3 kB]
#6 11.06 Get:52 http://deb.debian.org/debian testing/main arm64 libreadline8 arm64 8.2-1.3 [155 kB]
#6 11.06 Get:53 http://deb.debian.org/debian testing/main arm64 libsqlite3-dev arm64 3.40.1-2 [979 kB]
#6 11.09 Get:54 http://deb.debian.org/debian testing/main arm64 libsqlite3-0 arm64 3.40.1-2 [786 kB]
#6 11.11 Get:55 http://deb.debian.org/debian testing/main arm64 libpython3.11-stdlib arm64 3.11.2-6 [1747 kB]
#6 11.24 Get:56 http://deb.debian.org/debian testing/main arm64 python3.11 arm64 3.11.2-6 [572 kB]
#6 11.26 Get:57 http://deb.debian.org/debian testing/main arm64 libpython3-stdlib arm64 3.11.2-1+b1 [9296 B]
#6 11.26 Get:58 http://deb.debian.org/debian testing/main arm64 python3-lib2to3 all 3.11.2-2 [76.2 kB]
#6 11.26 Get:59 http://deb.debian.org/debian testing/main arm64 python3-distutils all 3.11.2-2 [131 kB]
#6 11.26 Get:60 http://deb.debian.org/debian testing/main arm64 python3 arm64 3.11.2-1+b1 [26.3 kB]
#6 11.27 Get:61 http://deb.debian.org/debian testing/main arm64 libgomp1 arm64 12.2.0-14 [104 kB]
#6 11.27 Get:62 http://deb.debian.org/debian testing/main arm64 libitm1 arm64 12.2.0-14 [23.9 kB]
#6 11.27 Get:63 http://deb.debian.org/debian testing/main arm64 libatomic1 arm64 12.2.0-14 [9536 B]
#6 11.27 Get:64 http://deb.debian.org/debian testing/main arm64 libasan8 arm64 12.2.0-14 [2095 kB]
#6 11.32 Get:65 http://deb.debian.org/debian testing/main arm64 liblsan0 arm64 12.2.0-14 [926 kB]
#6 11.36 Get:66 http://deb.debian.org/debian testing/main arm64 libtsan2 arm64 12.2.0-14 [2179 kB]
#6 11.45 Get:67 http://deb.debian.org/debian testing/main arm64 libubsan1 arm64 12.2.0-14 [862 kB]
#6 11.47 Get:68 http://deb.debian.org/debian testing/main arm64 libhwasan0 arm64 12.2.0-14 [998 kB]
#6 11.55 Get:69 http://deb.debian.org/debian testing/main arm64 libgcc-12-dev arm64 12.2.0-14 [959 kB]
#6 11.58 Get:70 http://deb.debian.org/debian testing/main arm64 gcc-12 arm64 12.2.0-14 [16.3 MB]
#6 12.13 Get:71 http://deb.debian.org/debian testing/main arm64 gcc arm64 4:12.2.0-3 [5244 B]
#6 12.13 Get:72 http://deb.debian.org/debian testing/main arm64 cpp arm64 4:12.2.0-3 [6832 B]
#6 12.13 Get:73 http://deb.debian.org/debian testing/main arm64 libstdc++-12-dev arm64 12.2.0-14 [2006 kB]
#6 12.20 Get:74 http://deb.debian.org/debian testing/main arm64 g++-12 arm64 12.2.0-14 [9071 kB]
#6 12.55 Get:75 http://deb.debian.org/debian testing/main arm64 g++ arm64 4:12.2.0-3 [1336 B]
#6 12.56 Get:76 http://deb.debian.org/debian testing/main arm64 libc-bin arm64 2.36-8 [529 kB]
#6 12.57 Get:77 http://deb.debian.org/debian testing/main arm64 libstdc++6 arm64 12.2.0-14 [557 kB]
#6 12.58 Get:78 http://deb.debian.org/debian testing/main arm64 libglut3.12 arm64 3.4.0-1 [133 kB]
#6 12.58 Get:79 http://deb.debian.org/debian testing/main arm64 libgumbo1 arm64 0.10.1+dfsg-5 [106 kB]
#6 12.58 Get:80 http://deb.debian.org/debian testing/main arm64 libjbig2dec0 arm64 0.19-3 [62.8 kB]
#6 12.58 Get:81 http://deb.debian.org/debian testing/main arm64 libmujs2 arm64 1.3.2-1 [100 kB]
#6 12.58 Get:82 http://deb.debian.org/debian testing/main arm64 libmupdf-dev arm64 1.21.1+ds2-1+b3 [29.1 MB]
#6 13.77 Get:83 http://deb.debian.org/debian testing/main arm64 mupdf arm64 1.21.1+ds2-1+b3 [45.2 MB]
#6 16.00 debconf: delaying package configuration, since apt-utils is not installed
#6 16.21 Fetched 148 MB in 6s (25.3 MB/s)
#6 16.27 Selecting previously unselected package gcc-12-base:arm64.
(Reading database ... 26545 files and directories currently installed.)
#6 16.43 Preparing to unpack .../gcc-12-base_12.2.0-14_arm64.deb ...
#6 16.44 Unpacking gcc-12-base:arm64 (12.2.0-14) ...
#6 16.61 Setting up gcc-12-base:arm64 (12.2.0-14) ...
(Reading database ... 26550 files and directories currently installed.)
#6 16.77 Preparing to unpack .../libgmpxx4ldbl_2%3a6.2.1+dfsg1-1.1_arm64.deb ...
#6 16.80 Unpacking libgmpxx4ldbl:arm64 (2:6.2.1+dfsg1-1.1) over (2:6.1.2+dfsg-4+deb10u1) ...
#6 16.97 Preparing to unpack .../libgmp-dev_2%3a6.2.1+dfsg1-1.1_arm64.deb ...
#6 17.00 Unpacking libgmp-dev:arm64 (2:6.2.1+dfsg1-1.1) over (2:6.1.2+dfsg-4+deb10u1) ...
#6 17.33 Preparing to unpack .../libgmp10_2%3a6.2.1+dfsg1-1.1_arm64.deb ...
#6 17.36 Unpacking libgmp10:arm64 (2:6.2.1+dfsg1-1.1) over (2:6.1.2+dfsg-4+deb10u1) ...
#6 17.62 Setting up libgmp10:arm64 (2:6.2.1+dfsg1-1.1) ...
#6 17.75 Selecting previously unselected package libisl23:arm64.
(Reading database ... 26554 files and directories currently installed.)
#6 17.79 Preparing to unpack .../libisl23_0.25-1_arm64.deb ...
#6 17.80 Unpacking libisl23:arm64 (0.25-1) ...
#6 18.18 dpkg: libgcc-8-dev:arm64: dependency problems, but removing anyway as you requested:
#6 18.18  libstdc++-8-dev:arm64 depends on libgcc-8-dev (= 8.3.0-6).
#6 18.18  gcc-8 depends on libgcc-8-dev (= 8.3.0-6).
#6 18.18
(Reading database ... 26561 files and directories currently installed.)
#6 18.23 Removing libgcc-8-dev:arm64 (8.3.0-6) ...
(Reading database ... 26501 files and directories currently installed.)
#6 18.52 Preparing to unpack .../libc6_2.36-8_arm64.deb ...
#6 18.75 debconf: unable to initialize frontend: Dialog
#6 18.75 debconf: (TERM is not set, so the dialog frontend is not usable.)
#6 18.75 debconf: falling back to frontend: Readline
#6 18.92 Checking for services that may need to be restarted...
#6 18.95 Checking init scripts...
#6 19.03 Unpacking libc6:arm64 (2.36-8) over (2.28-10+deb10u1) ...
#6 21.60 Selecting previously unselected package libgcc-s1:arm64.
#6 21.61 Preparing to unpack .../libgcc-s1_12.2.0-14_arm64.deb ...
#6 21.62 Unpacking libgcc-s1:arm64 (12.2.0-14) ...
#6 21.63 Replacing files in old package libgcc1:arm64 (1:8.3.0-6) ...
#6 21.87 Setting up libgcc-s1:arm64 (12.2.0-14) ...
#6 21.90 Setting up libc6:arm64 (2.36-8) ...
#6 21.94 /usr/bin/perl: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
#6 21.95 dpkg: error processing package libc6:arm64 (--configure):
#6 21.95  installed libc6:arm64 package post-installation script subprocess returned error exit status 127
#6 21.96 Errors were encountered while processing:
#6 21.96  libc6:arm64
#6 22.34 E: Sub-process /usr/bin/dpkg returned an error code (1)
------
executor failed running [/bin/sh -c echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list        && apt-get update        && apt-get install -y mupdf libmupdf-dev]: exit code: 100
baskerville commented 1 year ago
mupdf_wrapper.c:1:10: fatal error: 'mupdf/fitz.h' file not found

I’ll fix this, but in the meantime, you can try : cd thirdparty && ./download.sh mupdf && cd .. && ./run-emulator.sh.

inderdeepsingh commented 1 year ago

cd thirdparty && ./download.sh mupdf got rid of the following error

mupdf_wrapper.c:1:10: fatal error: 'mupdf/fitz.h' file not found

but I ran into another error

ld: library not found for -lSDL2

and I had to fix by running: export LIBRARY_PATH=/opt/homebrew/lib .

I am just starting out on rust so I could be wrong here but looks like LIBRARY_PATH variable is used by cargo as per this post on apple.stackexchange.com. This maybe my environment specific issue though.

FWIW: I have rust 1.68.2 installed with homebrew