SO Memory Management Simulation System
On Ubuntu you need the following packages installed: build-essential, cmake, doxygen, and git.
sudo apt install build-essential cmake doxygen git
In other Linux distributions you need equivalent packages installed.
In a directory of your choice, clone the project to your computer
cd «directory-of-your-choice»
git clone https://git@github.com:detiuaveiro/«your-project»
In a terminal, enter the base directory of your project, create the build directory, and use cmake to prepare make
cd «directory-of-your-choice»
cd «your-project»
mkdir build
cd build
cmake ../src
If you prefer ninja, instead of make,
cd «directory-of-your-choice»
cd «your-project»
mkdir build
cd build
cmake -G Ninja ../src
In a terminal, enter the build directory of your project and run make or ninja
cd «directory-of-your-choice»
cd «your-project»«your-project»«your-project»/build
make
or
cd «directory-of-your-choice»
cd «your-project»/build
ninja
The code is documented in doxygen. So, you can easily generate html documentation pages.
cd «directory-of-your-choice»
cd «your-project»/doc
doxygen
Then, you can display the pages running (inside the doc directory)
firefox html/index.html &
Of course, you can replace firefox with your favourite browser.
Commands
cd «directory-of-your-choice»
cd «your-project»
git config user.name "«your name»"
git config user.email "«your email»"
allows you to set your user name and email for this repository.
If you want to apply the settings to all repositories in the computer, run the followings commands instead.
cd «directory-of-your-choice»
cd «your-project»
git config --global user.name "«your name»"
git config --global user.email "«your email»"
After building the code, a program will be put in the «your-project»/bin directory.
Of course you can write your own testing programs. Do not forget to edit appropriately the main CMakeList.txt file.