Skip to content
Snippets Groups Projects
Commit 01427e5c authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Update README.md

parent 744f96ad
No related branches found
No related tags found
1 merge request!26cmake fixes
Pipeline #11129 passed
......@@ -2,25 +2,48 @@
Clone the repository in your chosen directory. In a new terminal:
```
```bash
cd <your/path>
git clone <repo-link>
```
Clone the RTKLIB lib as a sub-module:
```
```bash
git submodule update --init
```
Create a directory to build all the source files:
```
$ mkdir build
$ cd build
```bash
mkdir build
cd build
```
Compile the source files:
```bash
cmake ..
make
```
Install the library:
```bash
make install
```
## Installation in local folder
With the previous steps, the library will be stored in `CMAKE_PREFIX_PATH` that usually is `/usr/local`. If you want to install the library in a local folder (avoiding sudo permissions), you can add these lines in your `.bashrc` file:
```bash
export WOLF_PREFIX=/your/local/installation/path # To be substituted by your desired installation path
export LD_LIBRARY_PATH=$WOLF_PREFIX/lib:$LD_LIBRARY_PATH
export CMAKE_PREFIX_PATH=$WOLF_PREFIX:$CMAKE_PREFIX_PATH
```
And compile with:
```bash
cmake .. -DCMAKE_INSTALL_PREFIX=$WOLF_PREFIX
make
make install
```
$ cmake ..
$ make
```
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment