-
-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
This guide will help you get up and running with the CodeConjurer projects.
Before working with the projects in this repository, ensure you have the following installed:
- Git - For cloning the repository
- C++ Compiler - GCC 9+, Clang 10+, or MSVC 2019+
- CMake (3.16+) - Most projects use CMake for building
- Make or Ninja - Build system
| Library | Projects Using It |
|---|---|
| SFML | Snake, Hangman, SFML_Multithread_verlet |
| SDL2 | POng, simplesdl2_game_template |
| OpenGL | Chess_3D, OpenGL_examples, Trigonometric-Functions, volumetric-clouds |
| GLFW | Chess_3D, volumetric-clouds |
| GLM | Chess_3D, OpenGL_examples |
| Qt5 | WordProc |
| ncurses | SystemMonitor, Terminal_File_Manager, Matrix_ScreenSaver |
git clone https://github.com/ibra-kdbra/CodeConjurer.git
cd CodeConjurerNavigate to the project directory you want to explore:
cd <project-name>
# Example: cd Chess_3DEach project has its own README with specific build and run instructions:
cat README.md
# or open README.md in your editorMost projects follow one of these patterns:
mkdir build && cd build
cmake ..
cmake --build .makeg++ -std=c++17 main.cpp -o mainFor projects requiring external libraries:
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release# Essential build tools
sudo apt update
sudo apt install build-essential cmake git
# Graphics libraries
sudo apt install libsfml-dev libsdl2-dev libglfw3-dev libglm-dev
# Qt5
sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
# ncurses
sudo apt install libncurses5-dev libncursesw5-dev# Essential tools
brew install cmake
# Graphics libraries
brew install sfml sdl2 glfw glm
# Qt5
brew install qt@5
# ncurses (usually pre-installed)
brew install ncurses# Install vcpkg if not already installed
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
# Install libraries
.\vcpkg install sfml:x64-windows
.\vcpkg install sdl2:x64-windows
.\vcpkg install glfw3:x64-windows
.\vcpkg install glm:x64-windowsEach project typically follows this structure:
project-name/
โโโ README.md # Project-specific documentation
โโโ CMakeLists.txt # CMake build configuration (if using CMake)
โโโ Makefile # Make build configuration (if using Make)
โโโ src/ # Source files
โโโ include/ # Header files
โโโ assets/ # Resources (images, sounds, etc.)
โโโ screenshots/ # Preview images
โโโ tests/ # Test files (if available)
# Install CMake
# Ubuntu: sudo apt install cmake
# macOS: brew install cmake
# Windows: Download from cmake.orgMake sure you've installed the required dependencies for the specific project. Check the project's README for requirements.
Update your compiler to a newer version:
# Check your compiler version
g++ --version
clang++ --version
# Ubuntu: Install newer GCC
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-11chmod +x ./executable_name
./executable_name-
Start Simple: Begin with simpler projects like
CollatzorHangmanbefore tackling complex ones likeMarbleMarcher. -
Read the Code: Each project is an opportunity to learn. Take time to understand the implementation.
-
Check Issues: If you encounter problems, check the GitHub Issues page for known problems and solutions.
-
Experiment: Modify the code and see what happens! This is a playground after all.