The Enlightenment Foundation Libraries (EFL) power millions of systems from mobile phones to set-top boxes, desktops, laptops, game systems and more. You'll need EFL if you want to develop apps for Enlightenment and for any of the devices that use Enlightenment for its visual interface.
This tutorial describes several ways to install EFL on your system. You will only need to use one of these. Select your chosen method using the index on the right.
Many distributions offer EFL as installable packages from their default repositories. In this case you only need to use your distribution's software management system to install. However, most versions of EFL in default repositories are out of date and will not compile more recent Enlightenment applications. If this is not an issue for you, read through the "From Distribution Repositories" section below.
The Enlightenment developers provide a pre-packaged source of EFL. Although not bleeding edge it is up to date and considered stable for production environments. You can download, compile and install it yourself by following the instructions in "Installing from Packaged Source".
You can also download the source code for the most recent version from the Enlightenment git repositories. To get started, read the section "Installing from Git".
You need to install the needed dependencies, which are usually not provided on Widows. The Ewpi project has an NSIS installer which provides them. You can download the lastest one in the Ewpi project, or in the EFL download repository.
Once the dependencies have been installed, you can use the EFL installer either in the Ewpi project, or in the EFL download repository.
You can also get the bleeding edge version of EFL by cloning it from the git repository. These steps will be done in the MSYS2 environment
MSYS2 64bit
--> MSYS2 MINGW64
pacman -Syu
, press Y
to proceed the installation. Press Y
to close the terminalMSYS2 64bit
--> MSYS2 MINGW64
pacman -Syu base-devel autoconf automake libtool tar git wget python flex bison gettext-devel pkgconf make mingw-w64-x86_64-gperf mingw-w64-x86_64-nasm mingw-w64-x86_64-yasm mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain mingw-w64-x86_64-ninja mingw-w64-x86_64-meson mingw-w64-x86_64-nsis
Y
to proceed the installation This may take several minutesMSYS2
terminal, create a directory where tp clone Ewpi
and enter it. For example: mkdir gitroot && cd gitroot
Ewpi
repository: git clone https://github.com/vtorri/ewpi.git
Ewpi repository
: cd ewpi
ewpi
tool: gcc -O2 -std=c99 -o ewpi ewpi.c ewpi_map.c
./ewpi --jobs=8
(change the number of jobs to whatever you want).This will install all the dependencies of the EFL in $HOME/ewpi_64
git clone https://git.enlightenment.org/enlightenment/efl.git
efl
directory :#! /bin/bash
export EWPI_PATH=$HOME/ewpi_64
export PKG_CONFIG_PATH=$EWPI_PATH/lib/pkgconfig
export CPPFLAGS=-I$EWPI_PATH/include
export LDFLAGS=-L$EWPI_PATH/lib
rm -rf builddir
meson setup \
--prefix=$HOME/efl_64 \
--libdir=lib \
--buildtype=release \
--strip \
--default-library shared \
-Dsystemd=false \
-Dpulseaudio=false \
-Dv4l2=false \
-Dlibmount=false \
-Deeze=false \
-Dx11=false \
-Dxinput2=false \
-Devas-loaders-disabler='pdf','ps','rsvg','json' \
-Dopengl=none \
-Dpixman=true \
-Dembedded-lz4=false \
-Dfribidi=true \
-Dinput=false \
-Dbuild-examples=false \
-Dbuild-tests=false \
-Dbindings='cxx' \
-Dlua-interpreter=luajit \
-Delua=true \
builddir
ninja -C builddir install
You need to update the PATH
environment variable in the MSYS2 terminal, or globally in Windows. With MSYS2:
export PATH=$HOME/ewpi_64/bin:$HOME/efl_64/bin:$PATH
Once done, you can test elementary_test
If you are having problems compiling and installing EFL, you can come and seek advice on any of our IRC channels or post a ticket to our Gitea.
If you would like to install EFL on a different operating system visit the Installing EFL page.