BGSLibrary Examples
Requirements
-
Build and install BGSLibrary from source
$ git clone --recursive https://github.com/andrewssobral/bgslibrary.git
$ cd bgslibrary/build
$ cmake ..
$ make -j $(nproc)
$ 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
on linux or*.dylib
on mac)/usr/local/include/
for the include files (e.g./usr/local/include/bgslibrary
)
Build and run examples
$ git clone https://github.com/andrewssobral/bgslibrary-examples.git
$ cd bgslibrary-examples
- bgslibrary_list_algorithms.cpp
make bgslibrary_list_algorithms
./bgslibrary_list_algorithms
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