shermp / go-kobo-input

Basic touch input handling for Kobo ereaders
GNU General Public License v3.0
5 stars 0 forks source link

Questions regarding building #1

Closed takov751 closed 3 years ago

takov751 commented 3 years ago

Greetings

I am trying to recreate the example project to test the my builder environment and I do fail miserably. Did anything changed in fbink which might broke this? I am trying to use the Koreader kobo building docker image spiced up with the go1.17 and even just trying to run the go get command in the readme fails with this # github.com/shermp/go-fbink-v2/gofbink /usr/bin/ld: skipping incompatible ../pkg/mod/github.com/shermp/go-fbink-v2@v1.20.2/gofbink/../fbinklib/libfbink.a when searching for -lfbink /usr/bin/ld: cannot find -lfbink collect2: error: ld returned 1 exit status

Sorry beforehand I am new to go and this suppose to be my starter projects to write some basic app in go for my kobo glo hd. Than you in advance.

takov751 commented 3 years ago

I was an idiot solved the issue. Sorry for even opening it.

FROM koreader/kokobo:0.2.2

ARG GOLANG_VERSION=1.17.3
USER root
RUN apt update && apt install -y bash musl-dev libssl-dev ca-certificates && update-ca-certificates
USER ko
WORKDIR /home/ko
RUN wget https://dl.google.com/go/go$GOLANG_VERSION.linux-amd64.tar.gz && tar -C /home/ko -xzf go$GOLANG_VERSION.linux-amd64.tar.gz && rm /home/ko/go$GOLANG_VERSION.linux-amd64.tar.gz
RUN mkdir -p /home/ko/src
ENV GOROOT=/home/ko/go \
    GOPATH=/home/ko/src/go-kobo-input \
    PATH=$PATH:/home/ko/go/bin \
    CC=arm-linux-gnueabihf-gcc \
    CXX=arm-linux-gnueabihf-g++ \
    GOOS=linux \
    GOARCH=arm \
    CGO_ENABLED=1
WORKDIR /home/ko/src
#RUN git clone https://github.com/shermp/go-fbink-v2.git && cd go-fbink-v2/example && go build && cd .. && 
RUN git clone https://github.com/shermp/go-kobo-input && cd go-kobo-input
RUN go get github.com/shermp/go-kobo-input/... && go mod init go-kobo-input/m && go mod tidy