Skip to content
Zorro edited this page Jul 31, 2019 · 1 revision

Static Linking Allegro 5

First, when you static link Allegro, you need to be aware of any dependencies your version of Allegro was compiled with.

Each addon for Allegro comes with its own (optional) dependencies.

Font : FreeType, Harfbuzz

Image : PNG, Zlib, LibJPEG, WebP

Audio : Ogg, Vorbis, OPUS, OpenAL

Acodec : Dumb, FLAC

Video : Theora

Networking : Enet

Windows

On Windows, you can use either MSVS, MinGW, or Clang to compile your programs.

Visual Studio uses .lib files for static archives.

MinGW and Clang use .a for static archives.

So assuming you linked all the libraries listed above, here is the full list of libraries to link to for MinGW or Clang :

-static -ljpeg -ldumb -lwebp -lFLAC -ltheora -lvorbisfile -lvorbis -logg -lphysfs -lfreetype -lharfbuzz -lpng16 -lzlibstatic -ldsound -lgdiplus -luuid -lkernel32 -lwinmm -lpsapi -lopengl32 -lglu32 -luser32 -lcomdlg32 -lgdi32 -lshell32 -lole32 -ladvapi32 -lws2_32 -lshlwapi -lpthread -static-libstdc++ -static-libgcc

MacOSX

Linux

Android

Iphone

Clone this wiki locally