This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Simon] Build errors on Debian Stretch

Tags: simon, build, error, stretch simon, build, error, stretch simon, build, error, stretch
(comma "," separated)
Registered Member
hey ppl!
i was interested in simon in relation with pseudo-ai user interfaces. but have some problems compiling it. not many solutions on google. i think i'm missing some dependency that is not specified in the wiki. here's the output of
Code: Select all
-- Found Qt-Version 4.8.7 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/
-- Found KDE 4.12 include dir: /usr/include
-- Found KDE 4.12 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Qt-Version 4.8.7 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/
ldd: ./: not regular file
-- Found Qwt: /usr/lib/
ldd: ./: not regular file
CMake Warning at /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:32 (find_package):
  By not providing "FindQAccessibilityClient.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "QAccessibilityClient", but CMake did not find one.

  Could not find a package configuration file provided by
  "QAccessibilityClient" with any of the following names:


  Add the installation prefix of "QAccessibilityClient" to CMAKE_PREFIX_PATH
  or set "QAccessibilityClient_DIR" to a directory containing one of the
  above files.  If "QAccessibilityClient" provides a separate development
  package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:68 (macro_optional_find_package)

-- Found SphinxBase
-- BackendType='both'

-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
   * KDE PIM Libs - KDE Libraries for PIM
   * Sphinxbase - Open source toolkit for speech recognition
   * PocketSphinx - PocketSphinx is a small-footprint continuous speech recognition system
   * OpenCV - OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision

-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
   * LibSampleRate  <>
     Resampling library
     Required to activate resampling.
   * qaccessibilityclient  <>
     KDE client-side accessibility library
     Required to enable ATSPI plugin.
   * VRPN  <>
     Virtual-Reality Peripheral Network Connector
     Required to build the VRPN command plugin


-- Configuring done
-- Generating done
-- Build files have been written to: /home/efkin/simon/simonsource/build
[  0%] Built target eventsimulation_automoc
[  1%] Built target eventsimulation
[  1%] Built target simoneventhandlertest-eventhandler_automoc
[  1%] Built target simoneventhandlertest-eventhandler
[  1%] Built target simonscenarios_automoc
[  1%] Built target simongraphemetophoneme_automoc
[  1%] Built target simongraphemetophoneme
[  1%] Built target simonlogging_automoc
[  2%] Built target simonlogging
[  2%] Built target simoninfo_automoc
[  2%] Built target simoninfo
[  2%] Built target simonxml_automoc
[  3%] Built target simonxml
[  3%] Built target simonrecognitionresult_automoc
[  3%] Built target simonrecognitionresult
[  3%] Built target simoncontextdetection_automoc
[  4%] Built target simoncontextdetection
[  4%] Built target simonscenariobase_automoc
[  4%] Built target simonscenariobase
[  9%] Built target simonscenarios
[  9%] Built target simonactions_automoc
[ 11%] Built target simonactions
[ 11%] Built target simonactionskcm_automoc
[ 11%] Built target simonactionskcm
[ 11%] Built target simoncontextcoreui_automoc
[ 12%] Built target simoncontextcoreui
[ 12%] Built target simonddatabaseaccess_automoc
[ 12%] Built target simonddatabaseaccess
[ 12%] Built target simondstreamer_automoc
[ 12%] Built target simonuicomponents_automoc
[ 14%] Built target simonuicomponents
[ 14%] Built target simonsound_automoc
[ 14%] Built target simonwav_automoc
[ 14%] Built target simonwav
[ 19%] Built target simonsound
[ 20%] Built target simondstreamer
[ 20%] Built target simonjsonconnector_automoc
[ 20%] Built target simonjsonconnector
[ 20%] Built target simonutils_automoc
[ 20%] Built target simonutils
[ 20%] Built target simonrecognizer_automoc
[ 20%] Building CXX object simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/sphinxrecognizer.cpp.o                                                                       
/home/efkin/simon/simonsource/simonlib/simonrecognizer/sphinxrecognizer.cpp: In member function ‘virtual QList<RecognitionResult> SphinxRecognizer::recognize(const QString&)’:
/home/efkin/simon/simonsource/simonlib/simonrecognizer/sphinxrecognizer.cpp:109:45: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
       ps_decode_raw(decoder, toRecognize, -1);
/home/efkin/simon/simonsource/simonlib/simonrecognizer/sphinxrecognizer.cpp:109:45: error: too few arguments to function ‘int ps_decode_raw(ps_decoder_t*, FILE*, const char*, long int)’
In file included from /home/efkin/simon/simonsource/simonlib/simonrecognizer/sphinxrecognizer.h:27:0,
                 from /home/efkin/simon/simonsource/simonlib/simonrecognizer/sphinxrecognizer.cpp:20:
/usr/include/pocketsphinx/pocketsphinx.h:335:5: note: declared here
 int ps_decode_raw(ps_decoder_t *ps, FILE *rawfh,
/home/efkin/simon/simonsource/simonlib/simonrecognizer/sphinxrecognizer.cpp:125:35: error: too few arguments to function ‘const char* ps_get_hyp(ps_decoder_t*, int32*, const char**)’
   hyp = ps_get_hyp(decoder, &score);
In file included from /home/efkin/simon/simonsource/simonlib/simonrecognizer/sphinxrecognizer.h:27:0,
                 from /home/efkin/simon/simonsource/simonlib/simonrecognizer/sphinxrecognizer.cpp:20:
/usr/include/pocketsphinx/pocketsphinx.h:449:13: note: declared here
 char const *ps_get_hyp(ps_decoder_t *ps, int32 *out_best_score,
simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/build.make:169: recipe for target 'simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/sphinxrecognizer.cpp.o' failed
make[2]: *** [simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/sphinxrecognizer.cpp.o] Error 1
CMakeFiles/Makefile2:2253: recipe for target 'simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/all' failed
make[1]: *** [simonlib/simonrecognizer/CMakeFiles/simonrecognizer.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2

any hints are welcome! hope it can helps also other users
Registered Member
Indeed you need this software to be compiled and installed first: ... repository

It's not yet packaged for Debian.

Registered Member
Just realized now what your problem was. Should be fixed now by a recent commit. So please use git clone to get current master of Simon.


Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]