Skip to content

Install:Opensuse

Hugar edited this page Jul 23, 2021 · 4 revisions

The official logo of Opensuse based operation systems and distributions.

The recommended way to install Enigma on Linux-based systems is through the source code. Opensuse users should follow these instructions below.

  • Please bear in mind this method is experimental and you may need to do additional steps to get the full usage....
Easy method for Opensuse Users
On Opensuse Linux and their derivatives, copy this code into a file and name it "install.sh" *. Make sure that you give it permissions to run as an executable file.

//#!/bin/bash
cd ~/
echo "Installing dependencies..."
 sudo zypper install git gcc gdb grpc pkgconf protobuf-devel protobuf-c zlib-devel glew glew-devel glm-devel glu-devel Mesa openal-soft-tools 
 libogg-devel alure-devel libvorbis-devel vorbis-tools libBox2D-devel libSDL2-devel libfreetype6 libffi-devel libX11-devel libXrandr-devel
 libXinerama-devel rapidjson-devel yaml-cpp-devel boost-devel pulseaudio pugixml-devel libgme-devel 
echo "Downloading Enigma..."
git clone git://github.com/enigma-dev/enigma-dev.git
cd enigma-dev
echo "Downloading easy startup script..."
wget https://pastebin.com/raw/aBAU4j3C -O start.sh
sed -i -e 's/\r$//' start.sh
echo "Correcting permissions..."
chmod +x start.sh
chmod +x install.sh
echo "Installing..."
./install.sh
cd enigma-dev
make clean
make
echo "Done, to start Enigma just run ~/enigma-dev/start.sh"

Table of Contents

Installing Dependencies

  • Prerequisites: GNU GCC G++ Compiler, Git Client, Java
  • The following dependencies must be installed for Enigma and the games it compiles.:
     sudo zypper install git gcc gdb pkgconf protobuf-devel protobuf-c zlib-devel glew glew-devel glm-devel 
                 glu-devel Mesa openal-soft-tools libogg-devel alure-devel libvorbis-devel vorbis-tools 
                 libBox2D-devel libSDL2-devel libfreetype6 libffi-devel libX11-devel libXrandr-devel 
                 libXinerama-devel rapidjson-devel yaml-cpp-devel boost-devel pulseaudio pugixml-devel 
                 libgme-devel
  • These may be needed to be included/installed on the end-users computers that run your games:
    sudo zypper install zlib-devel glew glew-devel glm-devel libpng-devel Mesa openal-soft-tools libogg- 
                devel alure-devel libvorbis-devel vorbis-tools libBox2D-devel libSDL2-devel libfreetype6 
                libffi-devel libX11-devel libXrandr-devel libXinerama-devel libgme-devel

Please start a topic on the forums if you are unsure or having problems with any dependencies your game needs.

Downloading Enigma

Enigma can be downloaded using the following git command:

    git clone git://github.com/enigma-dev/enigma-dev.git

Install IDE + Plugin

You will need to install the IDE LateralGM and ENIGMA plugin binaries; they can be installed 1 of 3 ways.

1) Running the install script in the enigma-dev folder:

   cd ~/enigma-dev
   ./install.sh

2) Invoking python via the python script:

   cd ~/enigma-dev
   python install.py
  • Please note: you must have python 2.6 or greater installed:
3) Or you can obtain manually per these instructions.

Additional Steps

  • Installing codecs for audio: 'cannot find 'ldumb' error
OpenAL is the desired dependency for playing sound. However there are some codecs that may contain proprietary code, so Opensuse will not install them. One such file is the libdumb library. Other Linux distributions like Debian and Arch have such libraries installed. Opensuse however does not. For this reason you will get an error when you try to run a game with the OpenAL API selected. This can be fixed by adding the Games Repository in the Terminal. Doing so should be done as a last resort measure.
  • Installing the Games Repository
Open a Terminal window and type:
    sudo zypper addrepo [https://ftp.lysator.liu.se/pub/opensuse/repositories/games/openSUSE_Tumbleweed/games-x86_64 

Next install the libaldmb-devel rpm package:

    sudo zypper install libaldmb-devel

If you want you can also install the entire libdumb package:

    sudo zypper install libdumb
  • OpenAL Alternative
SFML is being proposed as an alternative to OpenAL via as an Extension. Based on its ease of use and integration in developing games and multimedia apps, it serves best as a simple interface to your pc components. It is composed of 5 modules: audio, network, window, graphics and system. You can find out more at its website SFML.org
  • SFML Dependecy and Library Files
To get SFML working you need to install the libsfml and sfml2-devel libraries.

Clone this wiki locally