View Single Post
Old 08-11-2011, 03:14 AM   #41
sergeyvl12
ebook fan
sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.sergeyvl12 ought to be getting tired of karma fortunes by now.
 
Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
Quote:
Originally Posted by rkomar View Post
I modified the common.mk file to make the soft link automatically. I also changed it to define "IVSAPP", since the i386 version of libinkview.so seems to look for everything in ./system. Here's a patch for my changes.

Code:
--- common.mk.orig      2011-06-21 06:45:42.000000000 -0700
+++ common.mk   2011-08-08 23:45:11.550863003 -0700
@@ -29,12 +29,12 @@
 
 ifeq ($(BUILD), emu)
 PROJECT = $(OBJDIR)/$(OUT)
-LIBS += -linkview -ljpeg -lfreetype -lz -lcurl -lpthread
+LIBS += -linkview
 INCLUDES += `freetype-config --cflags`
 CC  = gcc
-CFLAGS += -D__EMU__ -Wall -g -m32
+CFLAGS += -D__EMU__ -DIVSAPP -Wall -g -m32
 CXX = g++
-CXXFLAGS += -D__EMU__ -Wall -g -m32
+CXXFLAGS += -D__EMU__ -DIVSAPP -Wall -g -m32
 LD = g++
 LDFLAGS += -m32
 endif
@@ -54,6 +54,9 @@
 
 $(OBJDIR):
        mkdir $(OBJDIR)
+ifeq ($(BUILD), emu)
+       ln -s $(SDKDIR)/system $(OBJDIR)/system
+endif
 
 $(OBJDIR)/%.bmp.c.o: $(OBJDIR)/%.bmp.c
        $(CC) -c -o $@ $(CFLAGS) $(INCLUDES) $(CDEPS) $<
Thanks!

This will be in the next version of SDK soon.
sergeyvl12 is offline   Reply With Quote