Menu

Linux installation

Armando Navarro-Vázquez

Tested on OpenSuse tumbleweed

  1. Download the MagNes source code through svn ( svn checkout https://svn.code.sf.net/p/magnes/code/ magnes-code )
  2. Configure the projet using the Qt5 qmake. This command may be installad as qmake-qt5 on your Linux system.
  3. Load the magnes-code/magnes.pro project file
  4. Configure the project as debug or release as desired
    $ qmake-qt5 CONFIG+=debug
    or
    $ qmake-qt5 CONFIG=+release

  5. Compile
    $make

  6. Install
    $make install

  7. Your MagNes binary, libraries and plugins will be in
    magnes-code/install/Linux/bin
    magnes-code/install/Linux/lib
    magnes-code/install/Linux/plugins

  8. Create a script similar to this in a directory contained in your PATH
    magnes.sh
    MAGNES_DIR=$HOME/magnes-code/install/Linux/magnes
    LD_LIBRARY_PATH=$MAGNES_DIR/lib:$LD_LIBRARY_PATH
    $MAGNES_DIR/bin/MagNes $1 $2 $3

  9. Run the magnes.sh script

  10. In order to use the magnes application without gui you must call the script as
    magnes.sh --nogui structurefile inputextfile