Cross compilation with Docker and CLion

Cover Image for Cross compilation with Docker and CLion
Anton Khomich

What is cross-compilation

Why docker?

Docker image as a toolchain for CLion

To connect Your docker image to CLion, to be used as a toolchain source, You have to follow these steps:

  1. Build Your image defined with Dockerfile or pull it from Hub with docker pull Make sure You do this with the sudo prefix for all commands.
  2. Open CLion with sudo: sudo clion . in the directory where You want to have a project to be located.
  3. Go to settings -> Build, Execution, Deployment -> Toolchains and create a new, Docker based, toolchain configuration.
  4. Specify a server as docker, go to setting (gear symbol), and make sure that You have a socket specified as "default".
Image

More Stories

Cover Image for Circuit Breaker Panel Tester

Circuit Breaker Panel Tester

Tool for quick measurements of multitude of connections

Anton Khomich
Cover Image for Impedance Clamp Meter

Impedance Clamp Meter

How to measure HIGH impedance In-Circuit using clamp and Digital Signal Processing

Anton Khomich