Code Monkey home page Code Monkey logo

arm32v7's Introduction

CMAKE - ARM32v7 CrossCompiling Setup

Dependencies

  • ubuntu >= 18.x
  • docker

Installing docker on ubuntu

1 - Building the docker image

$ ./build.sh

2 - Installing dependencies

To install project dependecies on system level add your dependencies to the Dockerfile in the RUN apt-get section.

RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --allow-remove-essential apt-utils:armhf vim git-core wget g++-8-arm-linux-gnueabihf curl:armhf pkg-config:armhf apt-transport-https:armhf \
  your-dependencies.... \
  ...\
  && rm -rf /var/lib/apt/lists/*

IMPORTANT! You need to rebuild the docker image.

Using the project to cross compile.

1 - Setup

Add your project to the code folder

$ git clone --recurse https://github.com/cgi-studio-gmbh/cmake-example.git

Add the project to the docker-compose.yml file

version: '3'
services:
  cex: # arbitrary name you will use to call the service later
    image: arm32v7-gcc-83
    volumes:
      - ./code:/home/code/CGI
    command: ["bash", "compile.sh", "true", "cmake-example", "install", "Release"]
  ...
  ...
  ...

2 - Compiling

On the top level (in the folder where docker-compose.yml exists) call

$ docker-compose up cex // cex is the name we gave to our project in the yaml file.

3 - Using the compiled libraries or executables

Navigate the the project in code. The compiled libs and bin should be in a folder called install. Copy them to the board and run.

arm32v7's People

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.