Giter VIP home page Giter VIP logo

pocketbook-dev-docker's Introduction

Dockerized SDK_6.3.0

As I struggled for a long time to get the SDK up and running on my Mac. Finally I came to the conclusion, that it's better to create a Docker container to get a working compile environment.

So now there is a Dockerfile available at
https://github.com/Skeeve/SDK_6.3.0/tree/docker

Use Docker to build the SDK

The Dockerfile allows you to create a docker image, containing the SDK 6.3.0 for your PocketBook device.

If you have a Touch HD3, or a similar device, the settings in the Dockerfile are already okay.

Otherwise set ENV SDK_ARCH=B288 to the one you require.

More adjustable settings are:

  • ENV SDK_BASE=/SDK
    Set the location of the SDK.

  • ENV CMAKE_TOOLCHAIN_FILE=${SDK_BASE}/share/cmake/arm_conf.cmake
    Where to find the CMAKE_TOOLCHAIN_FILE.

  • ENV SDK_URL=https://github.com/pocketbook/SDK_6.3.0/branches/5.19/SDK-${SDK_ARCH}
    Set the URL to download the SDK from.

  • ENV CMAKE_VERSION=3.21.3
    Set the version of cmake. 3.21.3 is currently the stable version.

  • ENV CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}
    Set the URL for downloading cmake.

Use image from dockerhub

There already is an image for Touch HD3 and similar devices available on dockerhub, so you can simply go to your project's source directory and run:

docker run --rm -it \
	--mount type=bind,source="$(pwd)",target=/project \
	5keeve/pocketbook-sdk:6.3.0-b288-v1

This will start a bash where you can run your compilation.

Build your own image

Run
docker build -t pbdev .

This will create a docker image pbdev locally.

Building applications

The provided CMakeLists.txt contains an example configuration for compiling a "Hello, World!" program.

To compile it, run

cmake .
cmake --build .

This will produce the demo executable. Place it in the applications directory of your PocketBook. Then you can launch it from the Applications menu.

Resources

The demo program is demo01 from pmartin/pocketbook-demo. Check that repository for more examples.

An old version of the inkview documentation is available at pocketbook-free/InkViewDoc.

Final note

Please keep in mind that I am not a C developer and this Dockerfile is the result of experimenting and testing a few days with existing PocketBook sourcecodes to try and get them to run.

I never before used make and cmake, so the stuff here could be suboptimal, as it is just the result of a few days of "googling" and tinkering. Please open issues on github should you have improvements.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.