FLECS - The World of Automation
We make the world’s automation solutions available at one place, with one click!
How To Build
Cloning the sources
If you are new to FLECS, make sure to clone recursively:
git clone --recurse-submodules https://github.com/flecs-technologies/flecs-public
If you have cloned the source code earlier, make sure to initialize submodules:
git submodule update --init
Requirements
The recommended way
It is recommended to use our official Docker image for building. To do so, run
docker run -it --rm --name flecs-build -v $(pwd):$(pwd) -w $(pwd) flecs/flecs-build:1.5.4-porpoise
from the repository's root directory.
If you intend to build Docker images as well (such as our System Apps), make sure to mount yout local Docker socket:
docker run -it --rm --name flecs-build -v $(pwd):$(pwd) -v /run/docker.sock:/run/docker.sock -w $(pwd) flecs/flecs-build:1.5.4-porpoise
Note: It is recommended to use the Docker image tag that corresponds to the Git tag you are building.
The other way
If you don't want to use our Docker image for whatever reason, please take a peek at https://github.com/FLECS-Technologies/flecs-build/tree/main/docker/flecs-build to find out which dependencies you might need for building. More detailed instructions will follow at a later stage...
Building
- Configuration:
cmake -G Ninja -B build/${ARCH} -DARCH=${ARCH} -DCMAKE_INSTALL_PREFIX=out/${ARCH}
ARCH
has to be one of (amd64|arm64|armhf)
2a. Building the whole project
cmake --build build/${ARCH}
2b. Building single targets
cmake --build build/${ARCH} --target <target>
Relevant single <target>
s might be flunder
or mqtt
.