View Single Post
Old 10-16-2021, 04:41 PM   #58
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,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
It's true that my Makefile assumes a make system just like that provided by Sergey Vlasov's PBSDK. You build for a target platform using the BUILD environmental variable. I believe that Sergey's SDK provides toolchains for the BUILD=arm (ancient firmware version1 devices) and BUILD=arm_gnueabi (really old firmware version 2, 3 and 4 devices). Try "make BUILD=arm_gnueabi" to see if that works.

I liked that SDK system, so I've been rolling my own toolchain versions having the same structure but based on more recent official SDKs. Unfortunately, that's not much help for people like you who want to build it themselves. You are probably better off writing your own make or cmake file based on the SDK that matches your device. The sh_tool build is really simple, you just compile main.c and link it against the Inkview library (plus whatever other libraries libinkview requires). Here's what building for arm_fwv6 looks like for me:

robpc4>make BUILD=arm_fwv6
mkdir obj_arm_fwv6
arm-obreey6-linux-gnueabi-gcc -c -o obj_arm_fwv6/main.c.o -Os -D__ARM__ -Wall -fomit-frame-pointer -Wno-write-strings -MTobj_arm_fwv6/main.c.o -MF`echo obj_arm_fwv6/main.c.o | sed -e 's,\.o$,.d,'` -MD -MP main.c
arm-obreey6-linux-gnueabi-g++ -o obj_arm_fwv6/sh_ivtool.app obj_arm_fwv6/main.c.o -Wl,-s -linkview

You can probably even run those last two commands by hand, replacing arm-obreey6-linux-gnueabi-gcc/arm-obreey6-linux-gnueabi-g++ with whatever gcc compiler you have in your latest pocketbook SDK. The program will end up in obj_arm_fwv6/sh_ivtool.app.
rkomar is offline   Reply With Quote