Skip to content

Commit

Permalink
Merge branch 'devel' into 'master'
Browse files Browse the repository at this point in the history
Devel

See merge request MAB_Robotics/md_tools!8
  • Loading branch information
jakubmatyszczak committed Apr 27, 2022
2 parents 0df8b7b + e45ad5c commit 66e83fa
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ make install
`make` alone is for development, when `make install` is for release - it copies the files to `package/` directory, for easy .deb package creation.

## Cross compilation
The tool can be build using native compilers (as above) or using arm32/arm64 compilers ( for usage with embedded computers, mainly Raspbbery Pi).
### Dependencies
for any cross-compilation
```
Expand All @@ -27,7 +28,25 @@ and for arm64 (aarm64)
```
sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu
```

### Building
To build for armhf (arm 32-bit) or aarm64 (arm 64*bit):
Clean build directory
```
cd build
rm -r *
```
Prepare Makefile with proper architecure
```
cmake .. -DARCH=armhf
OR
cmake .. -DARCH=aarm64
```
Build
```
make
OR
make install
```
# .deb package
Based on :
https://www.internalpointers.com/post/build-binary-deb-package-practical-guide
Expand Down

0 comments on commit 66e83fa

Please sign in to comment.