Next Tutorial: Profiler
These instructions are for installing only Ignition Common. If you're interested in using all the Ignition libraries, check out this Ignition installation.
We recommend following the Binary Installation instructions to get up and running as quickly and painlessly as possible.
The Source Installation instructions should be used if you need the very latest software improvements, you need to modify the code, or you plan to make a contribution.
Binary Installation
Ubuntu
On Ubuntu systems, apt-get
can be used to install ignition-common
:
Be sure to replace <#>
with a number value, such as 2 or 3, depending on which version you need.
macOS
On macOS, add OSRF packages:
Install Ignition Common:
Be sure to replace <#>
with a number value, such as 3 or 4, depending on which version you need.
Windows
Install Conda package management system. Miniconda suffices.
Create if necessary, and activate a Conda environment:
Install ignition-common
:
Be sure to replace <#>
with a number value, such as 2 or 3, depending on which version you need.
Source Installation
Source installation can be performed by first installing the necessary prerequisites followed by building from source.
Prerequisites
Ignition Common requires:
The Graphics component requires:
The AV component requires:
Windows
First, follow the ign-cmake tutorial for installing Conda, Visual Studio, CMake, etc., prerequisites, and creating a Conda environment.
Navigate to condabin
if necessary to use the conda
command (i.e., if Conda is not in your PATH
environment variable. You can find the location of condabin
in Anaconda Prompt, where conda
).
Activate the Conda environment:
Install prerequisites:
Install Ignition dependencies:
You can view available versions and their dependencies:
Install dependencies, replacing <#>
with the desired versions:
Build from Source
Ubuntu
- Clone the repository git clone https://github.com/ignitionrobotics/ign-common
- Configure and build cd ign-commonmkdir buildcd buildcmake ..make
- Optionally, install sudo make install
macOS
Clone the repository
git clone https://github.com/ignitionrobotics/ign-common -b ign-common<#>Be sure to replace
<#>
with a number value, such as 3 or 4, depending on which version you need.Install dependencies
brew install --only-dependencies ignition-common<#>Be sure to replace
<#>
with a number value, such as 3 or 4, depending on which version you need.- Configure and build cd ign-commonmkdir buildcd buildcmake ..make
- Optionally, install sudo make install
Windows
This assumes you have created and activated a Conda environment while installing the Prerequisites.
- Navigate to where you would like to build the library, and clone the repository. # Optionally, append `-b ign-common#` (replace # with a number) to check out a specific versiongit clone https://github.com/ignitionrobotics/ign-common.git
- Configure and build cd ign-commonmkdir buildcd buildcmake .. -DBUILD_TESTING=OFF # Optionally, -DCMAKE_INSTALL_PREFIX=path\to\installcmake --build . --config Release
- Optionally, install cmake --install . --config Release
Documentation
API and tutorials can be found at https://ignitionrobotics.org/libs/common.
You can also generate the documentation from a clone of this repository by following these steps.
- You will need Doxygen. On Ubuntu Doxygen can be installed using sudo apt-get install doxygen
- Clone the repository git clone https://github.com/ignitionrobotics/ign-common
- Configure and build the documentation. cd ign-commonmkdir buildcd buildcmake ../make doc
- View the documentation by running the following command from the build directory. firefox doxygen/html/index.html
Testing
Follow these steps to run tests and static code analysis in your clone of this repository.
- Follow the source install instruction.
- Run tests. make test
- Static code checker. make codecheck