View Single Post
Old 08-10-2011, 06:34 PM   #39
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,057
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
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) $<
rkomar is offline   Reply With Quote