This is a small cpp project i developed during a course
This file contains instructions for installing Allegro and building the demo project.
For the API guide, see Documentation.md.
Build and run using Visual Studio.
- Open the project creation dialog: File → New → Project...
- Opt for an empty project: Visual C++ → General → Empty Project
- Right-click on your project and select Manage NuGet Packages.
- Go to the Browse tab and search for Allegro using the search bar.
- Locate Allegro package and press Install.
- Right-click on your project and select Properties.
- Select Allegro 5 and set the Library type to Dynamic Debug - Dynamic Runtime.
- Now enable the required Add-ons:
- Image
- Font
- TrueType Font
- Primitives
- Color
- Hit the Apply button.
sudo apt install liballegro*5.2 liballegro*5-dev
sudo dnf install allegro5*
Search with your package manager for a binary package or build from source, if none is available (see Getting Started guide at the bottom of this page).
g++ -std=c++11 hy352_gui.cpp example.cpp -o hy352_demo $(pkg-config --libs allegro-5 allegro_image-5 allegro_primitives-5 allegro_font-5 allegro_ttf-5)
It seems NOT to work on macOS. Please, try on Windows or a Linux VM.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install allegro
clang++ -std=c++11 hy352_gui.cpp example.cpp -o hy352_demo -lallegro -lallegro_primitives -lallegro_image -lallegro_ttf -lallegro_font -lallegro_main
Open ./projects/xcode/LogoGUI.xcodeproj
.