Currently, there are two libraries supported in this project:
- treerend library
- dstructs library
First, navigate to the directory where you want to download this repository and clone it using the following command:
git clone https://github.com/janserbus/mylib.gitNext, you need to install all the dependencies:
libsdl2-2.0-0andlibsdl2-devlibsdl2-ttf-2.0-0andlibsdl2-ttf-devlibsdl2-gfx-1.0-0andlibsdl2-gfx-devlibfontconfig1andlibfontconfig1-dev
Update your packages:
sudo apt updateThen, install all the dependencies:
sudo apt install libsdl2-2.0-0 libsdl2-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev libsdl2-gfx-1.0-0 libsdl2-gfx-dev libfontconfig1 libfontconfig1-devOnce you have successfully installed all the dependencies, navigate to the cloned directory and run the make script to compile and install the libraries:
cd mylib
sudo make installNow, your libraries are ready for use!
To uninstall the mylib files, run the following command:
sudo make uninstallAfter uninstalling the library files, navigate up the directory and delete the cloned repository:
cd ..
rm -rf mylibTo remove all the dependencies that were installed execute the following commands:
sudo apt remove --purge libsdl2-2.0-0 libsdl2-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev libsdl2-gfx-1.0-0 libsdl2-gfx-dev libfontconfig1 libfontconfig1-dev
sudo apt autoremove --purge