hwhw/kindlepdfviewer — Issue #37: compilation issue
Author: traycold
Created: 2012-03-05 23:11:31+00:00
State: open

when making the project (in EMULATE_READER mode), i have to lauch make three time, since it goes in error the first two times. I don't know if it's an issue of my specific environment, or something wrong with makefile.

```
user@compilebox:~/kindle/git/kindlepdfviewer-traycold$ make clean
rm -f *.o kpdfview
user@compilebox:~/kindle/git/kindlepdfviewer-traycold$ make
gcc -c -O3 -Ilua/src -Imupdf/ -Iluafilesystem/src kpdfview.c -o kpdfview.o
gcc -c -O3 -Ilua/src -Imupdf/ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DEMULATE_READER -DEMULATE_READER_W=412 -DEMULATE_READER_H=600 \	einkfb.c -o einkfb.o
gcc:	: No such file or directory
make: *** [einkfb.o] Error 1
user@compilebox:~/kindle/git/kindlepdfviewer-traycold$ make
gcc -c -O3 -Ilua/src -Imupdf/ -Iluafilesystem/src pdf.c -o pdf.o
pdf.c: In function ‘openDocument’:
pdf.c:65: warning: passing argument 2 of ‘pdf_authenticate_password’ discards qualifiers from pointer target type
mupdf/pdf/mupdf.h:370: note: expected ‘char *’ but argument is of type ‘const char *’
gcc -c -O3 -Ilua/src -Imupdf/ -Iluafilesystem/src blitbuffer.c -o blitbuffer.o
gcc -c -O3 -Ilua/src -Imupdf/ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DEMULATE_READER -DEMULATE_READER_W=412 -DEMULATE_READER_H=600 \	input.c -o input.o
gcc:	: No such file or directory
make: *** [input.o] Error 1
user@compilebox:~/kindle/git/kindlepdfviewer-traycold$ make
gcc -c -O3 -Ilua/src -Imupdf/ -Iluafilesystem/src util.c -o util.o
gcc -c -O3 -Ilua/src -Imupdf/ -Imupdf/thirdparty/freetype-2.4.8/include ft.c -o ft.o
ft.c: In function ‘newBuiltinFace’:
ft.c:73: warning: passing argument 1 of ‘pdf_find_builtin_font’ discards qualifiers from pointer target type
mupdf/pdf/mupdf.h:622: note: expected ‘char *’ but argument is of type ‘const char *’
gcc -c -O3 -Ilua/src -Iluafilesystem/src luafilesystem/src/lfs.c -o lfs.o
gcc -c -O3 -Ilua/src -Imupdf/ -Idjvulibre/ djvu.c -o djvu.o
gcc -lm -ldl -lpthread -L/usr/lib -lSDL -lstdc++ \
kpdfview.o \
einkfb.o \
pdf.o \
blitbuffer.o \
input.o \
util.o \
ft.o \
lfs.o \
mupdf/build/debug/libfitz.a \
mupdf/build/debug/libfreetype.a mupdf/build/debug/libjpeg.a mupdf/build/debug/libopenjpeg.a mupdf/build/debug/libjbig2dec.a mupdf/build/debug/libz.a \
lua/src/liblua.a \
djvu.o \
djvulibre/build/libdjvu/.libs/libdjvulibre.a \
-o kpdfview
lua/src/liblua.a(loslib.o): In function `os_tmpname':
loslib.c:(.text+0x46): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
user@compilebox:~/kindle/git/kindlepdfviewer-traycold$
```