git clone the development version

I made a fresh install of Ubuntu 10.04 (because the upgrade from Ubuntu 9.10 to 10.04 introduced an error on my computer that I don’t know how to fix). This means that I have to git the simon development version via the Ubuntu terminal:

$ git clone git://speech2text.git.sourceforge.net/gitroot/speech2text/speech2text

And now:

ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$ ./build_ubuntu.sh
./build_ubuntu.sh: line 6: cmake: command not found
touch: cannot touch `./julius/gramtools/mkdfa/mkfa-1.44-flex/*': No such file or directory
ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$

Obviously, the command cmake is missing. I have to install it via the Ubuntu terminal:

ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$ sudo apt-get install cmake

I am trying to install simon again, but the installation is failing again:

ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$ ./build_ubuntu.sh
– The C compiler identification is GNU
– The CXX compiler identification is unknown
– Check for working C compiler: /usr/bin/gcc
– Check for working C compiler: /usr/bin/gcc — works
– Detecting C compiler ABI info
– Detecting C compiler ABI info – done
CMake Error: your CXX compiler: “CMAKE_CXX_COMPILER-NOTFOUND” was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at cmake/FindPortaudio.cmake:63 (message):
Could not find Portaudio
Call Stack (most recent call first):
julius/libsent/CMakeLists.txt:2 (find_package)

– Configuring incomplete, errors occurred!
touch: cannot touch `./julius/gramtools/mkdfa/mkfa-1.44-flex/*’: No such file or directory
ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$

I am reading this post. Is it necessary to add ppa:kubuntu-ppa/backports via System > Administration > Software Sources > Other Software, press Add...?

kubuntu-ppa-backports

Is it necessary to install ppa:kubuntu-ppa-backports as source when you have Ubuntu 10.04 installed?

I think that I should do something different, so I am trying System > Administration > Synaptic Package Manager. I am installing now portaudio19-dev via Synaptic. And now, a different problem occurs:

ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$ ./build_ubuntu.sh
– The CXX compiler identification is unknown
CMake Error: your CXX compiler: “CMAKE_CXX_COMPILER-NOTFOUND” was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
– Found Portaudio: /usr/lib/libportaudio.so
CMake Error at cmake/FindZLIB.cmake:25 (MESSAGE):
Could not find ZLIB
Call Stack (most recent call first):
julius/libsent/CMakeLists.txt:3 (find_package)

– Configuring incomplete, errors occurred!
touch: cannot touch `./julius/gramtools/mkdfa/mkfa-1.44-flex/*’: No such file or directory
ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$

I am now reading the requirements in the simon wiki. Maybe I should type the following command into the Ubuntu terminal:

sudo apt-get install subversion build-essential cmake bison flex gettext gettext-kde kdeartwork \
kdelibs5-dev portaudio19-dev libxtst-dev libqt4-sql-sqlite libqt4-phonon-dev julius libattica-dev libattica0

So, I have to wait a few minutes until these packages are installed. Then I try it again, but the ZLIB error still occurs. I am now installing zlibc via Synaptic, then try ./build_ubuntu.sh again, but the ZLIB error isn’t gone. I don’t know what to do now. What should I do next?

Tags: , , ,

4 Responses to “git clone the development version”

  1. producer says:

    I followed this advice, and typed into the Ubuntu terminal: sudo apt-get install zlib1g-dev. Then I issued ./build_ubuntu.sh, and simon is building now, until the following error message appears:

    [ 66%] Building CXX object simon/src/simonrecognitioncontrol/CMakeFiles/simonrecognitioncontrol.dir/simonrecognitioncontrol_automoc.o
    Linking CXX shared library ../../../lib/libsimonrecognitioncontrol.so
    /usr/bin/ld: cannot find -ladinstreamer
    collect2: ld returned 1 exit status
    make[2]: *** [lib/libsimonrecognitioncontrol.so.4.4.0] Error 1
    make[1]: *** [simon/src/simonrecognitioncontrol/CMakeFiles/simonrecognitioncontrol.dir/all] Error 2
    make: *** [all] Error 2
    ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$

  2. Peter Grasch says:

    You might want to try again…

    Greetings,
    Peter

  3. producer says:

    Thanks, simon is working now.

  4. producer says:

    Fine: zlib1g-dev is now mentioned in the requirements section.