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

Prerequisits? #1

Open
Skeeve opened this issue Dec 14, 2018 · 1 comment
Open

Prerequisits? #1

Skeeve opened this issue Dec 14, 2018 · 1 comment

Comments

@Skeeve
Copy link

Skeeve commented Dec 14, 2018

Hi!
Could you please explain more about the prerequisites?

On a Mac for example, I can't compile. Assuming Linux is a prerequisite. But are there any specific packages to be installed?

Additionally: What are the 3 SDKs for? Which one does what?

Thanks alot.

@Skeeve
Copy link
Author

Skeeve commented Oct 20, 2021

I found this to work (Dockerfile)

FROM debian:9-slim

LABEL maintainer="https://github.com/Skeeve"

# ENV SDK_ARCH=A13
# ENV SDK_ARCH=iMX6
ENV SDK_ARCH=B288
ENV SDK_VERSION=6.3.0
ENV SDK_BRANCH=5.19

ENV SDK_URL=https://github.com/pocketbook/SDK_${SDK_VERSION}.git
ENV CMAKE_VERSION=3.21.3

ENV CMAKE_TOOLCHAIN_FILE=/SDK_${SDK_VERSION}/SDK-${SDK_ARCH}/share/cmake/arm_conf.cmake

VOLUME "/project"
WORKDIR "/project"

RUN apt-get update \
 && apt-get upgrade --yes \
 && apt-get install --yes \
    locales \
    htop \
    git \
    build-essential \
    wget \
	rsync \
 && rm -rf /var/lib/apt/lists/* \
 && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
 && CMAKE="cmake-${CMAKE_VERSION}-linux-$( uname -m )" \
 && wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE}.tar.gz \
 && tar xzf ${CMAKE}.tar.gz \
 && rsync -rv ${CMAKE}/* /usr/ \
 && rm -rf ${CMAKE} ${CMAKE}.tar.gz \
;

RUN cd / \
 && git clone "$SDK_URL" \
 && BASEPATH=/$( basename "${SDK_URL}" .git ) \
 && PBSDK=${BASEPATH}/SDK-${SDK_ARCH} \
 && cd $( dirname $PBSDK ) \
 && git checkout $SDK_BRANCH \
 && $PBSDK/bin/update_path.sh \
 && chmod +x $BASEPATH/*/usr/bin/pbres \
;

ENTRYPOINT [ "bash" ]

Mount your project directory like so:

docker build -t pbdev .
docker run --rm -it --mount type=bind,source="$(pwd)",target=/project pbdev

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

1 participant