From c5f11ac75e18cd464f28d48c94598c85cc1bcfe3 Mon Sep 17 00:00:00 2001
From: Sylvain Calinon <sylvain.calinon@idiap.ch>
Date: Tue, 11 Jul 2017 18:33:15 +0200
Subject: [PATCH] Updated readme

---
 CMakeLists.txt | 2 +-
 README.md      | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b995ef4..0575cfe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,7 +57,7 @@ if(APPLE)
 
 elseif(UNIX)
 
-	set(GLFWLIB_SEARCH_PATH /usr/lib/x86_64-linux-gnu/)
+	set(GLFWLIB_SEARCH_PATH /usr/lib/x86_64-linux-gnu/ /usr/local/lib/)
 	find_library(GLFW_LIB glfw PATHS ${GLFWLIB_SEARCH_PATH})
 
 endif()
diff --git a/README.md b/README.md
index e3c4ade..9a25c0b 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ Daniel Berio, Philip Abbet
 The program requires glfw3 (modern lightweight and portable library for managing
 OpenGL contexts, windows and inputs, similar to glut but better!). 
 
-It also requires epoxy (OpenGL function pointer management library).
+It also requires epoxy (OpenGL function pointer management library) in some of the examples.
 
 ### Compilation
 
@@ -46,15 +46,17 @@ mkdir build
 cd build
 cmake -DBUILD_SHARED_LIBS=ON ../
 make
+sudo make install
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
 ```
 
 **Note:** The `-DBUILD_SHARED_LIBS` is necessary otherwise cmake will create a
-static library.
+static library. 
 
 
 ### References
 
-Did you find PbDLib useful for your research? Please acknowledge the authors in any academic publications that used parts of these codes.
+Did you find PbDlib useful for your research? Please acknowledge the authors in any academic publications that used parts of these codes.
 <br><br>
 
 [1] Tutorial (GMM, TP-GMM, MFA, MPPCA, GMR, LWR, GPR, MPC, LQR, trajGMM):
-- 
GitLab