This project is a simple C++ application that uses the SFML to display the current date in a graphical window. The date is dynamically updated in the format YYYY/MM/DD.
I made this because i was bored
To compile and run this project, you need the following:
-
SFML Library:
- Install the SFML development libraries for your system.
- Includes
sfml-graphics,sfml-window,sfml-system, andsfml-audio.
-
C++ Compiler:
- A compiler that supports at least C++11 (e.g., GCC, Clang, or MSVC).
- Usually comes preinstalled in modern distros (Ubuntu, Arch)
-
Font File:
- The project uses the
NotoSerifTangut-Regular.ttffont. (You can always download this font in Google Fonts or use the one provided in the repo) Ensure this font file is available in the same directory as the executable or provide the correct path.
- The project uses the
Nobody.
- Install SFML (Debian):
sudo apt update #Recommended. sudo apt install libsfml-dev - Install SFML (Arch):
sudo pacman -Syyu #Recommended. sudo pacman -S sfml - Clone repo:
git clone https://github.com/bin-md5sum/DateSFML.git cd DateSFML - Compile the code:
g++ -o app index.cpp -lsfml-graphics -lsfml-window -lsfml-system -lsfml-audio- Run the app.
./app