From 01427e5cc3275a623ddbaad1de1d5618d8f71928 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu> Date: Fri, 20 May 2022 19:02:23 +0200 Subject: [PATCH] Update README.md --- README.md | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 8db7c47..8f35823 100644 --- a/README.md +++ b/README.md @@ -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 -- GitLab