Because there is no documentation on how to compile Kurso de Esperanto from source, here is how to do it.

This tutorial works with Ubuntu and Debian, if you run windows you probably wouldn't do it that way ;) .

Read also : [In French] - [In Esperanto]

Download

Install dependencies

  • Install Qt header files, compiler, and compilation tools : sudo apt-get install build-essential qt4-qmake libqt4-dev g++ make libphonon-dev libqt4-xml-dev libqt4-opengl-dev

Particular case : Ubuntu 12.04

To compile with Ubuntu 12.04, you need to install Qt module mobility in order to us the Qt module multimedia.

  • Add qtmobility-dev to dependencies : sudo apt-get install qtmobility-dev
  • Make the following symbolic link (as root) : sudo ln -s /usr/include/QtMultimediaKit/ /usr/include/QtMultimedia
  • Edit the file kurso4.pro from source folder :
    Find :

    QT += core gui phonon  multimedia

    Replace with :

    QT += core gui phonon
    CONFIG += mobility
    MOBILITY += multimedia

Compile program

  • Enter in source folder : cd kurso4
  • Run command qt4-qmake to generate the Makefile.
  • Run command make to compile the program.

Run program

To run the program, simply run the file kurso4 wich is now in your source folder, or install it by running the command make install .

Note that you will need the Qt executable libraries in order to run the program (the libraries are dynamically linked) (sudo apt-get install libqt4 phonon qtmobility libqtcore4 libqt4-dbus libqt4-xml libqt4-opengl)

The program is crashing at startup (segmentation fault)

The source archive does not contains audio and video files, (sonoj and video folders). The program is crashing while trying to say "hello" at startup. You have to get these directories in an other archive (the executable versions of Kurso de Esperanto from the download page), and copy these directories in the source folder before starting kurso4.

That's all ! If you encounter any problem while trying to compile Kurso, don't hesitate to comment that post.