Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not find libraries #6

Open
Apollon76 opened this issue Jan 30, 2021 · 5 comments
Open

Can not find libraries #6

Apollon76 opened this issue Jan 30, 2021 · 5 comments

Comments

@Apollon76
Copy link

Apollon76 commented Jan 30, 2021

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
Copy link

cmoetzing commented Jun 14, 2021

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

@microo8
Copy link

microo8 commented Jun 28, 2021

same here

@microo8
Copy link

microo8 commented Jun 29, 2021

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
Copy link
Contributor

Skeeve commented Oct 22, 2021

@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
Copy link
Contributor

Skeeve commented Oct 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants