Quote:
Originally Posted by rkomar
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.