You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+97-69
Original file line number
Diff line number
Diff line change
@@ -39,99 +39,120 @@ library.
39
39
40
40
#### Prerequisites
41
41
42
-
1. The build requires the __cmake__ build system and a compiler toolchain (by default __gcc__).
42
+
1. The build requires Ubuntu 22.04.4 LTS, the __cmake__ build system and a compiler toolchain (by default __gcc__).
43
43
44
44
Additionally, the __pkg-config__ tool is used to manage the flags required for dependencies.
45
45
46
46
These can typically be installed via the built-in package management system on most Linux
47
47
distributions.
48
48
49
-
On Debian/Ubuntu and derivatives:
49
+
The required packages on Ubuntu 22.04 are: cmake, pkg-config, and build-essential.
50
50
51
-
Note: The scripts on this page are available as example scripts in bplib/doc/example-scripts. The example scripts mimic the BPLib GitHub Actions and Workflows. The scripts have bash `trap` and `set -o pipefail` statements to help if errors occur. The names of the example scripts are used as labels here. For example `bplib/doc/example-scripts/install-toolchain` contains `install-toolchain` (part 1) and `install-toolchain` (part 2).
51
+
The versions used may change. The versions as of the last update of this document are:
52
52
53
-
`install-toolchain` (part 1)
54
-
```sh
55
-
sudo apt install cmake pkg-config build-essential
56
-
```
53
+
- cmake version 3.22.1
54
+
- pkg-config 0.29.1
55
+
- gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
56
+
57
+
2. Install tinycbor if it is not already installed.
58
+
See https://github.com/intel/tinycbor.git.
57
59
58
-
2. For BPv7 this uses the TinyCBOR library at https://github.com/intel/tinycbor. As any
59
-
distribution-packaged version may be outdated, it is recommended to compile this from source.
60
-
As of this writing, the library uses a simple Makefile that will install into `/usr/local`.
61
-
This installation prefix can be changed by editing the Makefile before building. Otherwise,
62
-
to install into the default location, steps are as follows:
60
+
- tinycbor version 0.6.0
61
+
62
+
#### Build bplib with cFS
63
+
3. Create a subdirectory for building bplib. Run CMake to set up the build tree. Build bplib by running __make__ in the build subdirectory:
The cfs-env-vars file is just an example. In practice, if ~/.profile defines CFS_HOME, then `source $CFS_HOME/cfs-env-vars` will always set the environment variables.
119
+
5. Test bplib
103
120
104
-
CFS_REPO is the folder containing the working copy of the https://github.com/nasa/cFS repository. In this case it was cloned and initialized with:
0 commit comments