nPDF icon indicating copy to clipboard operation
nPDF copied to clipboard

binaries out of date

Open rdeserm opened this issue 5 years ago • 2 comments

Can you please update the binaries for those of us who cannot compile this?

rdeserm avatar Apr 04 '19 01:04 rdeserm

yes please someone do this.

MyDimeIsUp avatar May 23 '19 00:05 MyDimeIsUp

Build from git master (abe29f54aef8bd8eca51a5c27adbf44f18f77d03): nPDF.zip

Needed two little changes to build:

diff --git a/Makefile b/Makefile
index 1102f56..0736467 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ MUPDF_VERBOSE ?= no
 MUPDF_DIR := mupdf
 MUPDF_INC := $(MUPDF_DIR)/include
 MUPDF_OUT := $(MUPDF_DIR)/build/$(MUPDF_BUILD)
-MUPDF_XCFLAGS := -DNOCJK
+MUPDF_XCFLAGS := -DNOCJK -DCMS_NO_PTHREADS
 
 CXX := nspire-g++
 CXXFLAGS := -O$(OPTIMIZE) -Wall -Wextra -std=gnu++14 -marm -I $(MUPDF_INC)
diff --git a/main.cpp b/main.cpp
index 904f18b..f15d026 100644
--- a/main.cpp
+++ b/main.cpp
@@ -202,7 +202,7 @@ int main(int argc, char **argv) {
                                v->display();
                        }
                }
-               sleep(10);
+               msleep(10);
        }
 
        Screen::deinit();

Vogtinator avatar Jun 05 '19 17:06 Vogtinator