Jump to content

LibMISB/Getting Started/Reference application: Difference between revisions

Tag: New redirect
 
Tag: Removed redirect
 
Line 1: Line 1:
#REDIRECT [[LibMISB/Examples/Reference application]]
 
 
<noinclude>
{{LibMISB/Head|previous=Getting_Started/How_to_get_the_library|next=|keywords=}}
</noinclude>
 
 
 
== Dependencies ==
Your build environment will need the following packages installed in order to build LibMISB:
* jansson
* cpputest
* doxygen
* meson
 
== Apt Get Installation ==
<syntaxhighlight lang=bash>
sudo apt-get install \
libjansson-dev \
cpputest \
doxygen \
python3 \
python3-pip \
ninja-build
</syntaxhighlight>
 
== Meson Installation ==
Follow the next command to install Meson:
 
<syntaxhighlight lang=bash>
pip3 install --user 'meson<=0.60.3' --force-reinstall
</syntaxhighlight>
 
If meson doesn't work, try reboot.
Important: Meson version must be less or equal to 0.60.3. You can verify Meson version with the following command
 
<syntaxhighlight lang=bash>
meson --version
</syntaxhighlight>
 
== LibMISB ==
LibMISB is a [https://mesonbuild.com/ Meson] project. This makes it easy to build software packages for a variety of operating systems and platforms, including embedded devices.
=== '''Building LibMISB''' ===
 
You can run the following commands:
<syntaxhighlight lang=bash>
meson builddir
ninja -C builddir
</syntaxhighlight>
 
Specify meson --prefix $INSTALL_PATH build, if you want the build to be configured for installation in a directory other than /usr/local.
 
== '''Installing the Binaries''' ==
Once the ninja -C build commands completes, you can install the generated binaries:
<syntaxhighlight lang=bash>
ninja -C builddir install
</syntaxhighlight>
 
If you are trying to install to a system location you will need to run with sudo privileges.
<syntaxhighlight lang=bash>
sudo ninja -C builddir install
</syntaxhighlight>
267

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.