-
Notifications
You must be signed in to change notification settings - Fork 3
Building CRHMcode GCC
jhs507 edited this page Mar 24, 2022
·
7 revisions
A installation script is provided in crhmcode/crhmcode/src/install_crhm.sh when executed with super user permissions ie sudo ./install_crhm.sh it will install crhm into /usr/local and place the crhmConfig.h header in /usr/include
- Checkout desired branch from this repository
- Download boost from https://www.boost.org/users/history/version_1_75_0.html
- Decompress the downloaded boost archive
- Place the boost_1_75_0 directory in crhmcode/crhmcode/src/libs directory
- Initialize the spdlog submodule by running the commands
git submodule init
andgit submodule update
- Create a build folder at crhmcode/crhmcode/build.
- Change directories to the build folder
cd crhmcode/crhmcode/build
- Configure the project with CMake
cmake ../src
- Build the project with CMake
cmake --build .
- The build folder will contain the crhm executable
- Install MSYS2 following the directions found here: https://www.msys2.org/#installation
- From the start menu run "MSYS MinGW 64-bit" (You will need to "run as administrator").
- In the MSYS MinGW console navigate to the crhmcode/crhmcode directory.
- Follow steps 1 - 10 from the above directions.
After completing the build step above you can also install the executable so that it can be accessed from anywhere.
- Navigate to the build directory.
- Run the command "make install".
- The program will be installed at /usr/local and its configuration file will be placed in /usr/include