dennwc / inkview

Go SDK for Pocketbook
MIT License
34 stars 5 forks source link

Can not find libraries #6

Open Apollon76 opened 3 years ago

Apollon76 commented 3 years ago

Trying to build example after docker-compose build with docker run --rm -v $PWD:/app -v $GOPATH:/gopath dennwc/pocketbook-go-sdk:latest. Getting

# github.com/dennwc/inkview
/usr/lib/gcc-cross/arm-linux-gnueabi/5/../../../../arm-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/../lib/libinkview.so when searching for -linkview
/usr/lib/gcc-cross/arm-linux-gnueabi/5/../../../../arm-linux-gnueabi/bin/ld: skipping incompatible //usr/lib/libinkview.so when searching for -linkview
/usr/lib/gcc-cross/arm-linux-gnueabi/5/../../../../arm-linux-gnueabi/bin/ld: cannot find -linkview
collect2: error: ld returned 1 exit status

Though it works fine with the pulled from docker hub image v0.2.

cmoetzing commented 3 years ago

Same here. The error message indicates that the compiler finds the lib but does not think its compatible, though.

microo8 commented 3 years ago

same here

microo8 commented 3 years ago

So I don't know how this project is going, but I made a fork: git.sr.ht/~ghost08/inkview Fixed this issue and changed the SDK from pbsdk-linux-1.1.0.deb to https://github.com/pocketbook/SDK_6.3.0.git Also using the included arm-linux-gcc from the SDK repo.

Skeeve commented 3 years ago

@microo8 please check my dockerfile at https://github.com/Skeeve/SDK_6.3.0/tree/docker

I created an image based on Debian 9 slim. As I found the cloning of the pocketbook SDK a bit slow I switched to exporting just the (for me) relecant B288 directory using svn.

ENV SDK_ARCH=B288
ENV SDK_BASE=/SDK
ENV SDK_URL=https://github.com/pocketbook/SDK_6.3.0/branches/5.19/SDK-${SDK_ARCH}
svn export ${SDK_URL} ${SDK_BASE}

That saves about 4GB of traffic by leaving out the other 2 directories.

You're welcome to adopt this.

Skeeve commented 3 years ago

I just updated to SDK 6.3.0 and golang 17.2 here https://github.com/Skeeve/inkview/tree/SDK-6.3.0