Compilation
Windows
This guide explains how to compile a "Release" version in Visual Studio, producing a DLL file named user-material.dll
in the output folder.
-
Open the Solution in Visual Studio
- Launch Visual Studio.
- Navigate to
File>Open>Project/Solution.... - Browse and select the solution file (
impetus-user-material.sln), then clickOpen.
-
Select the "Release" Configuration
- In the toolbar, find the "Solution Configurations" dropdown (usually located at the top of the window).
- Click the dropdown and select
Release. This setting ensures that the build is optimised for performance.
-
Build the Solution
- In the toolbar, click
Build>Build Solution. - Visual Studio will compile the solution using the "Release" configuration.
- In the toolbar, click
-
Verify the Output
- After the build completes (if successful), navigate to the output directory
output\. - Confirm that the
user-material.dllfile is present.
- After the build completes (if successful), navigate to the output directory
Linux
This guide explains how to compile your project on Linux using make. The output will be a shared library
(DLL equivalent) named user-material.so located in the output directory.
-
Navigate to the Project Directory
- Open a terminal window.
- Use the
cdcommand to navigate to the directory containing yourMakefile.
cd /path/to/your/project -
Run the
makeCommand- Type
makein the terminal and pressEnter. This command will compile your project using the settings defined in theMakefile.
make - Type
-
Verify the Output
- Once the build completes, open the
output/directory to confirm that theuser-material.sofile has been generated.
ls output/- You should see
user-material.soin the directory.
- Once the build completes, open the