-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add yaml-cpp dependency to the compilation guides
- Loading branch information
Showing
2 changed files
with
50 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ If you are used to development project, here is what you need: | |
|_Dependency:_ || | ||
|boost | 1.57.0 | | ||
|eigen | 3.2.4 | | ||
|yaml-cpp | 0.5+ | | ||
|libnabo | [from source](https://github.com/ethz-asl/libnabo) | | ||
|
||
|
||
|
@@ -111,12 +112,35 @@ The Eigen linear algebra is required before installing libpointmatcher and can b | |
brew install eigen | ||
``` | ||
|
||
### 2. Installing libnabo | ||
### 2. Installing yaml-cpp | ||
|
||
The straightforward way to install yaml-cpp library through brew was, as for hte end 2023, not functional | ||
```bash | ||
brew install yaml-cpp | ||
``` | ||
Instead, you can install the library from sources. Follow https://github.com/jbeder/yaml-cpp/tree/master | ||
```bash | ||
mkdir ~/Libraries/ | ||
cd ~/Libraries | ||
git clone [email protected]:jbeder/yaml-cpp.git | ||
cd yaml-cpp | ||
``` | ||
Now you can compile and install yaml-cpp by entering the following commands | ||
|
||
```bash | ||
SRC_DIR=$PWD | ||
BUILD_DIR=${SRC_DIR}/build | ||
mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} | ||
cmake .. | ||
make | ||
sudo make install | ||
``` | ||
|
||
### 3. Installing libnabo | ||
|
||
libnabo is a library for performing fast nearest-neighbor searches in low-dimensional spaces. It can be found [here](https://github.com/ethz-asl/libnabo). Clone the source repository into a local directory of your choice. | ||
|
||
```bash | ||
mkdir ~/Libraries/ | ||
cd ~/Libraries | ||
git clone git://github.com/ethz-asl/libnabo.git | ||
cd libnabo | ||
|
@@ -150,7 +174,7 @@ sudo make install | |
|
||
*Note:* If Eigen or Boost are not in their regular system locations you will have to indicate their location by setting the corresponding CMake flags. You can use the following command to default flags: Go [here](#possible-caveats) to see how it can be achieve. | ||
|
||
### 3. Installing libpointmatcher | ||
### 4. Installing libpointmatcher | ||
|
||
First, you need to clone the source repository into a local directory. As an example we reuse the Libraries directory that was created to contain the libnabo sources. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters