Skip to content

Installation instructions Ubuntu or OSX

Andrews Cordolino Sobral edited this page Mar 4, 2023 · 13 revisions

Step-by-step Instructions

git clone --recursive https://github.com/andrewssobral/bgslibrary.git

cd bgslibrary/build
cmake ..
make -j $(nproc)

####### OPTIONAL #######
make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

# The BGSlibrary is typically installed in the following directories by default: 
# `/usr/local/bin/` for the executable files (e.g. /usr/local/bin/bgslibrary)
# `/usr/local/lib/` for the library files (e.g. /usr/local/lib/libbgslibrary_core.so)
# `/usr/local/include/` for the include files (e.g. /usr/local/include/bgslibrary)
########################

cd ..
chmod +x *.sh
./run_video.sh
./run_camera.sh

(Video) Build & Execute BGSLibrary on MacOSX using CMake

https://www.youtube.com/watch?v=E7gm6sGSoIA

Uninstall

To uninstall the BGSlibrary, follow these steps:

$ cd bgslibrary/build
$ cat install_manifest.txt | xargs echo rm | sh
$ rm -rf /usr/local/include/bgslibrary
$ rm -rf /usr/local/lib/cmake/BGSLibrary