- FreeType (
pkg install freetype).
- Xorg (
pkg install xorg). Enables glx. - SDL 1.2 (
pkg install sdl). Enables sdlfb & sdlgl. - SDL 2.0 (
pkg install sdl2). Enables sdl2fb, sdl2gl and sdl2mw. - png (
pkg install png). Enables PNG loading. - jpeg-turbo (
pkg install jpeg-turbo). Enables JPEG loading. - libiconv (
pkg install libiconv). Support encodings other than ASCII & UTF-8 in Textbox/Editable. - gettext (
pkg install gettext-runtime gettext-tools). Enables native language support.
-
Download and unpack the sources to a temporary location:
$ wget https://stable.hypertriton.com/agar/agar-1.6.0.tar.gz$ tar -xzf agar-1.6.0.tar.gz$ cd agar-1.6.0 -
Run the configure script. Use
--helpto see available options. Some examples:- Install to an alternate location (default =
/usr/local):
$ ./configure --prefix=$HOME- Enable run-time assertions, type-safety checks & GUI debugger:
$ ./configure --enable-debug- Disable support for multithreading:
$ ./configure --disable-threads$ ./configure --enable-{au,map,web} - Install to an alternate location (default =
-
Build and install the library:
$ make depend all# make install
- Install the binary package:
pkg install agar - Compile from ports sources:
(cd /usr/ports/devel/agar && make install clean)
On Linux Mint, Debian, Ubuntu & other apt-get-based distros 
- A C compiler such as clang or gcc (
apt-get install clangorapt-get install gcc). - FreeType (
apt-get install libfreetype6-dev).
- Xorg with OpenGL (
apt-get libgl1-mesa-dev libxinerama-dev). Enables glx. - Fontconfig (
apt-get install libfontconfig-dev). Allows system fonts to be used. - SDL 1.2 (
apt-get install libsdl-dev). Enables sdlfb & sdlgl. - SDL 2.0 (
apt-get install libsdl2-dev). Enables sdl2fb, sdl2gl and sdl2mw. - png (
apt-get install libpng-dev). Enables PNG loading. - jpeg-turbo (
apt-get install libjpeg-dev). Enables JPEG loading. - gettext (
pkg install gettext). Enables native language support.
-
Download and unpack the sources to a temporary location:
$ wget https://stable.hypertriton.com/agar/agar-1.6.0.tar.gz$ tar -xzf agar-1.6.0.tar.gz$ cd agar-1.6.0 -
Run the configure script. Use
--helpto see available options. Some examples:- Install to an alternate location (default =
/usr/local):
$ ./configure --prefix=$HOME- Enable run-time assertions, type-safety checks & GUI debugger:
$ ./configure --enable-debug- Disable support for multithreading:
$ ./configure --disable-threads$ ./configure --enable-{au,map,web} - Install to an alternate location (default =
-
Build and install the library:
$ make depend all# make install -
If necessary refresh your ld.so cache:
# ldconfig
On Linux Fedora & other yum-based distros 
- A C compiler such as clang or gcc (
yum install clangoryum install gcc). - FreeType (
yum install freetype-devel).
- Xorg with OpenGL (
yum install mesa-libGL-devel). Enables glx. - Fontconfig (
yum install fontconfig-devel). Allows system fonts to be used. - SDL 1.2 (
yum install SDL-devel). Enables sdlfb & sdlgl. - SDL 2.0 (
yum install SDL2-devel). Enables sdl2fb, sdl2gl and sdl2mw. - png (
yum install libpng-devel). Enables PNG loading. - jpeg-turbo (
yum install libjpeg-turbo-devel). Enables JPEG loading. - gettext (
yum install gettext). Enables native language support.
-
Download and unpack the sources to a temporary location:
$ wget https://stable.hypertriton.com/agar/agar-1.6.0.tar.gz$ tar -xzf agar-1.6.0.tar.gz$ cd agar-1.6.0 -
Run the configure script. Use
--helpto see available options. Some examples:- Install to an alternate location (default =
/usr/local):
$ ./configure --prefix=$HOME- Enable run-time assertions, type-safety checks & GUI debugger:
$ ./configure --enable-debug- Disable support for multithreading:
$ ./configure --disable-threads$ ./configure --enable-{au,map,web} - Install to an alternate location (default =
-
Build and install the library:
$ make depend all# make install -
If necessary add
/usr/local/libto/etc/ld.so.confand refresh your ld.so cache:# echo "/usr/local/lib" >> /etc/ld.so.conf# ldconfig
On MacOS / OS X 
- Xcode 3.14 or later.
- FreeType 2.10.1 or later (download source,
./configure && make install).
- SDL 1.2 (Download 1.2.x source,
./configure && make install). Enables sdlfb & sdlgl. - SDL 2.0 (Download 2.0.x source,
./configure && make install). Enables sdl2fb, sdl2gl and sdl2mw. - gettext (Download source,
./configure && make install). Enables native language support.
-
Download and unpack the sources to a temporary location:
$ wget https://stable.hypertriton.com/agar/agar-1.6.0.tar.gz$ tar -xzf agar-1.6.0.tar.gz$ cd agar-1.6.0 -
Run the configure script. Use
--helpto see available options. Some examples:- Install to an alternate location (default =
/usr/local):
$ ./configure --prefix=$HOME- Enable run-time assertions, type-safety checks & GUI debugger:
$ ./configure --enable-debug- Disable support for multithreading:
$ ./configure --disable-threads$ ./configure --enable-{au,map,web} - Install to an alternate location (default =
-
Build and install the library:
$ make depend all# make install -
If necessary add
/usr/local/libto/etc/ld.so.confand refresh your ld.so cache:# echo "/usr/local/lib" >> /etc/ld.so.conf# ldconfig


