[ Official Wiki | API Documentation | Lotus Examples | CBuild ]
[ Official Discord | Official Reddit | Lotus Discussions | Lotus FAQ ]
(NOTE): Using the CBuild
CLI build-tool requires you to have python installed! More info can be found on the CBuild Repository
Lotus now includes pre-configured .cbuild
files for easy setup and compilation! Users are encouraged to use the CBuild CLI tool, which is lightweight and tailored for projects like Lotus Core.
-
Install CBuild:
Install the tool via PyPI:pip install cbuild
-
Clone the Repository:
git clone https://github.com/d34d0s/Lotus.git cd Lotus
-
Build the Engine:
Use the provided.cbuild
configuration to build Lotus:cbuild lotus.cbuild
-
Output:
The compiledLotus.dll
will be located in thebuild/lotus.core
directory.
If you prefer manual setup, follow these steps:
-
Clone the Repository:
git clone https://github.com/d34d0s/Lotus.git cd Lotus
-
Compile the Engine:
Use GCC to build Lotus:gcc -c lotus/lotus.core/*.c -Ilotus/include -DLOTUS_EXPORT -o build/lotus.core/*.o gcc -shared build/lotus.core/*.o -lopengl32 -lgdi32 -o build/lotus.core/Lotus.dll
-
Install the Compiled Binaries:
Move the compiled files to your project's directories as needed:cp build/lotus.core/Lotus.dll your_project/bin/
-
Prepare Your Project:
Set up your source files and include paths. -
Compile with CBuild or GCC:
- Example using GCC:
gcc my_project.c -Ilotus/include -lLotus -o my_project.exe
- Example using GCC:
Lotus is licensed under the Apache 2.0 license.