diff --git a/CMakeLists.txt b/CMakeLists.txt index b995ef4da2894612c6d2c2832c5dfd709089676d..0575cfec5d9b339d074182151a8ee7d188e194b4 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 e3c4ade6635fd59d8c83a3099d7dc349eab0b158..9a25c0be3fc31fe69b6adec1de91b2725d04b313 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):