Skip to content

problem building kobowriter #18

@cittadhammo

Description

@cittadhammo

Dear @olup,

I finally put my hand on a machine where I was able to install Linux.

I have successfully built the KOReader Cross Compile ToolChains , by running the gen-tc.sh file, which took more than 2 hours:

[INFO ]  Build completed at 20240118.201720
[INFO ]  (elapsed: 131:19.72)
[INFO ]  Finishing installation (may take a few seconds)...
[131:21] / 
[INFO ]  =================================================================
[INFO ]  Build done. Please add /home/user/x-tools/arm-kobo-linux-gnueabihf/bin to your PATH.
[INFO ]  =================================================================
~/Downloads/kobowriter-main/build ~/Downloads/kobowriter-main
~/Downloads/kobowriter-main
[INFO ]  =================================================================
[INFO ]  The x-compile.sh script can do that (and more) for you:
[INFO ]  * If you need a persistent custom sysroot (e.g., if you intend to build a full dependency chain)
[INFO ]    > source /home/user/Downloads/kobowriter-main/refs/x-compile.sh kobo env
[INFO ]  * If you just need a compiler:
[INFO ]    > source /home/user/Downloads/kobowriter-main/refs/x-compile.sh kobo env bare

I have run the:

source /home/user/Downloads/kobowriter-main/refs/x-compile.sh kobo env bare
* Setting environment up . . .

* Environment has been set up for the KOBO TC, enjoy :)
* Not using our custom sysroot! :)

to set up the environment.

After installing golang-go via apt, when I run the make file, I have the following error:

make
CGO_ENABLED=1 GOARCH=arm GOOS=linux CC=arm-kobo-linux-gnueabihf-gcc CXX=arm-kobo-linux-gnueabihf-g++ go build -o ./build/kobowriter
go: downloading github.com/MarinX/keylogger v0.0.0-20210528193429-a54d7834cc1a
go: downloading github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef
go: downloading github.com/fogleman/gg v1.3.0
go: downloading github.com/shermp/go-fbink-v2 v1.20.2
go: downloading github.com/matoous/go-nanoid/v2 v2.0.0
go: downloading github.com/matoous/go-nanoid v1.5.0
go: downloading github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
go: downloading github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
go: downloading golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d
# github.com/olup/kobowriter/screener
screener/screen.go:90:9: too many arguments in call to fb.ClearScreen
	have (*gofbink.FBInkConfig, *gofbink.FBInkRect)
	want (*gofbink.FBInkConfig)
screener/screen.go:125:25: not enough arguments in call to fb.Refresh
	have (number, number, number, number, *gofbink.FBInkConfig)
	want (uint32, uint32, uint32, uint32, gofbink.HWDither, *gofbink.FBInkConfig)
screener/screen.go:161:43: too many arguments in call to s.fb.ClearScreen
	have (*gofbink.FBInkConfig, *gofbink.FBInkRect)
	want (*gofbink.FBInkConfig)
screener/screen.go:166:59: too many arguments in call to s.fb.ClearScreen
	have (*gofbink.FBInkConfig, *gofbink.FBInkRect)
	want (*gofbink.FBInkConfig)
make: *** [Makefile:3: build] Error 2

I can try to correct these small errors in the code, but I am wondering if I am not doing something else wrong.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions