RF24Log
0.1.3
Unified logging library
|
A more modern approach instead of using hand-crafted Makefiles & configure scripts to build & install software.
The RF24Log library has pre-built packages (*.deb or *.rpm files) that can be installed on a Raspberry Pi. These packages can be found on the library's GitHub release page
Download the appropriate package for your machine
Go to the library's GitHub release page, and look for the latest release's assets.
For all Raspberry Pi variants using the Raspberry Pi OS (aka Raspbian), you need the file marked for armhf architecture.
For Raspberry Pi 4 variants using a 64-bit OS (like Ubuntu), you need the file marked for arm64 architecture.
Install the downloaded pkg
If you downloaded the file directly from your target machine using the desktop environment, then you only need to double-click the package (deb or rpm) file, and the OS should do the rest.
If you downloaded the file remotely and want to copy it over ssh, then use the scp
command in a terminal.
The scp
command will ask you for a password belonging to the user's name on the remote machine (we used pi
in the above example).
Now you can open up a ssh session and install the copied package from the terminal.
Build the examples
Navigate to the examples directory
Create a build directory in the examples_linux directory and navigate to it.
Now you are ready to build the examples.
The RF24Log library comes with some pre-made toolchain files (located in the RF24/cmake/toolchains directory) to use in CMake. To use these toolchain files, additional command line options are needed when configuring CMake to build the library (step 5 in the above instructions to build from source).
If you plan on using the cross-compiled library with your personal cross-compiled project, then it is advised to specify the path that your project will look in when linking to the RF24Log library:
To install remotely, you can create an installable package file using CMake's built-in program called CPack.
This will create a deb file and a rpm file in a new sub-directory called "pkgs" within the build directory. You can use to install to your target machine (see the above instructions about using a package manager).