View Single Post
Old 09-17-2012, 01:26 PM   #650
dracodoc
Connoisseur
dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.dracodoc has a complete set of Star Wars action figures.
 
Posts: 83
Karma: 322
Join Date: Mar 2009
Device: Kindle DXG, Sony T1
I've been hesitating to try more with kpv because I'll need the emulation but I'm not familiar with the c stuff. I used linux before and mainly programmed in java.

Following Kai771's detailed log, I'm trying to compile an emulation now. I'm using linux mint 13 with vmware, and the compilation seemed ok except this one when I was doing "make kpdfview"
Quote:
draco@mint ~/Downloads/kindlepdfviewer $ make kpdfview
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Iluafilesystem/src kpdfview.c -o kpdfview.o
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Iluafilesystem/src einkfb.c -o einkfb.o
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Iluafilesystem/src pdf.c -o pdf.o
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Iluafilesystem/src blitbuffer.c -o blitbuffer.o
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Iluafilesystem/src drawcontext.c -o drawcontext.o
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Iluafilesystem/src input.c -o input.o
input.c: In function ‘openInputDevice’:
input.c:71:7: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Iluafilesystem/src util.c -o util.o
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Imupdf/thirdparty/freetype-2.4.10/include -Imupdf/fitz ft.c -o ft.o
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Iluafilesystem/src luafilesystem/src/lfs.c -o lfs.o
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Iluafilesystem/src mupdfimg.c -o mupdfimg.o
mupdfimg.c: In function ‘loadPNGData’:
mupdfimg.c:49:24: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
mupdfimg.c: In function ‘loadJPEGData’:
mupdfimg.c:62:24: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]
arm-linux-gnueabi-gcc -c -O3 -march=armv6 -Iluajit-2.0/src -Imupdf/ -Idjvulibre/ djvu.c -o djvu.o
arm-linux-gnueabi-gcc -c -Ikpvcrlib/crengine/crengine/include/ -Iluajit-2.0/src cre.cpp -o cre.o -lstdc++
arm-linux-gnueabi-gcc \
kpdfview.o \
einkfb.o \
pdf.o \
blitbuffer.o \
drawcontext.o \
input.o \
util.o \
ft.o \
lfs.o \
mupdfimg.o \
mupdf/build/debug/libfitz.a \
mupdf/build/debug/libfreetype.a mupdf/build/debug/libopenjpeg.a mupdf/build/debug/libjbig2dec.a mupdf/build/debug/libjpeg.a mupdf/build/debug/libz.a \
luajit-2.0/src/libluajit.a \
djvu.o \
djvulibre/build/libdjvu/.libs/libdjvulibre.a \
cre.o \
kpvcrlib/crengine/crengine/libcrengine.a kpvcrlib/crengine/thirdparty/chmlib/libchmlib.a kpvcrlib/crengine/thirdparty/libpng/libpng.a kpvcrlib/crengine/thirdparty/antiword/libantiword.a \
\
-o kpdfview -lm -ldl -lpthread -lstdc++
And the emulation doesn't run correctly, it seemed the lua file was not correctly executed, but I do have lua installed, and luajit fetched correctly.

Quote:
draco@mint ~/Downloads/kindlepdfviewer $ EMULATE_READER=1 make thirdparty kpdfview
make: Nothing to be done for `thirdparty'.
make: `kpdfview' is up to date.
draco@mint ~/Downloads/kindlepdfviewer $ ./reader.lua test
./reader.lua: line 2: --[[: command not found
./reader.lua: line 3: KindlePDFViewer:: command not found
./reader.lua: line 4: syntax error near unexpected token `C'
./reader.lua: line 4: ` Copyright (C) 2011 Hans-Werner Hilse <hilse@web.de>'
dracodoc is offline   Reply With Quote