SufficientlySecure / document-viewer

Document Viewer is a highly customizable document viewer for Android.
GNU General Public License v3.0
524 stars 155 forks source link

Can not build project on Windows #330

Open hnvmeta opened 3 years ago

hnvmeta commented 3 years ago

I installed Cygwin to build this project but I met this error:

jni/ebookdroid/mupdfdroidbridge.c:99:23: warning: initializing 'fz_locks_context ' (aka 'struct fz_locks_context_s ') with an expression of type 'const fz_locks_context ' (aka 'const struct fz_locks_context_s ') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] fz_locks_context *locks = doc->ctx->locks; ^ ~~~ jni/ebookdroid/mupdfdroidbridge.c:686:10: error: no member named 'ebookdroid_nightmode' in 'struct fz_context_s' ctx->ebookdroid_nightmode = nightmode;


jni/ebookdroid/mupdfdroidbridge.c:688:15: error: no member named
      'ebookdroid_nightmode' in 'struct fz_context_s'
    doc->ctx->ebookdroid_nightmode = nightmode;
    ~~~~~~~~  ^
1 warning and 2 errors generated.
make: *** [/cygdrive/d/Programs/Android/SDK/ndk/22.1.7171670/build/core/build-binary.mk:476: obj/local/arm64-v8a/objs/ebookdroid/mupdfdroidbridge.o] Error 1