Can not find libraries
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.
Same here. The error message indicates that the compiler finds the lib but does not think its compatible, though.
same here
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.
@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.
I just updated to SDK 6.3.0 and golang 17.2 here https://github.com/Skeeve/inkview/tree/SDK-6.3.0