Saturday, April 27, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2555  / 1 Year ago, mon, december 19, 2022, 5:05:35

I'm a PhD researcher in Applied Anthropology, and I am trying to dictate fieldnotes to my Ubuntu 12.04.1 LTS (x86_64 3.2.0-36-generic). I undestand Simon is a "simple install-and-go project" which fits my unix basic skill level.



Installing Simon, I followed instructions on these two other Questions Unable to install Simon and Simon Listens 4.0 build error, thanks to all of you there!



I couldn't solve the problem "The following packages have unmet dependencies: simon : Depends: libattica0 but it is not installable", so I started compiling from the source using "build_ubuntu.sh" script, as suggested by Takakt in the first Question above. (first time for me compiling).
Then I encountered all the problems told by Matthiew and Xiao-Long Chen in the second Question above. So I installed a lot of libraries.



I still have this error: anyone can help me, please? Thanks so much!



./build_ubuntu.sh 
-- Found Qt-Version 4.8.1 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found KDE 4.8 include dir: /usr/include
-- Found KDE 4.8 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Qt-Version 4.8.1 (using /usr/bin/qmake)
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found Qwt: /usr/lib/libqwt.so
CMake Warning at /usr/share/kde4/apps/cmake/modules/MacroOptionalFindPackage.cmake:32 (find_package):
Could not find module FindQAccessibilityClient.cmake or a configuration
file for package QAccessibilityClient.

Adjust CMAKE_MODULE_PATH to find FindQAccessibilityClient.cmake or set
QAccessibilityClient_DIR to the directory containing a CMake configuration
file for QAccessibilityClient. The file will have one of the following
names:

QAccessibilityClientConfig.cmake
qaccessibilityclient-config.cmake

Call Stack (most recent call first):
CMakeLists.txt:56 (macro_optional_find_package)


-- Found SphinxBase
-- WARNING: OpenCV was not found. Please specify OpenCV directory using OpenCV_DIR env. variable
-- 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

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
* LibSampleRate <http://www.mega-nerd.com/SRC/>
Resampling library
Required to activate resampling.
* qaccessibilityclient <https://projects.kde.org/projects/playground/accessibility/libkdeaccessibilityclient>
KDE client-side accessibility library
Required to enable ATSPI plugin.
* OpenCV <http://http://opencv.willowgarage.com/>
OpenCV (Open Source Computer Vision) is a library of programming functions for real time computer vision
Required for Simon Vision

-----------------------------------------------------------------------------

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
X11_XTest_LIB (ADVANCED)
linked by target "eventsimulation" in directory /home/miro/Downloads/simon- 0.4.0/simonlib/eventsimulation

-- Configuring incomplete, errors occurred!

More From » installation

 Answers
6

Note: We built Simon on Raspbian (Raspberry Pi) (Was a bad idea anyway). This should help you out too.



QAccessibilityClientConfig.cmake
qaccessibilityclient-config.cmake



aptitiude install libqaccessibilityclient0 libaccessibility-dev


WARNING: OpenCV was not found. Please specify OpenCV directory using OpenCV_DIR



aptitude install libopencv-dev


LibSampleRate http://www.mega-nerd.com/SRC/



aptitude install libsamplerate0-dev 


You will also need:



aptitude install libboost-dev


I also needed the following packages to compile successfully:



aptitude install libasound2-dev libxtst-dev 
aptitude install bison
aptitude install libqwt6 libqwt-dev
aptitude install kdepimlibs5-dev kdepimlibs


It seems that Pocketsphinx and Sphinxbase are allready on your system. But you will also need Sphinxtrain. You will need to compile it from source (Note: they have to be in the same directory). Get it here:



http://sourceforge.net/projects/cmusphinx/files/



or try the HTK Speech Modul



http://htk.eng.cam.ac.uk/download.shtml



Those who try to compile Simon on a armhf Based Platform will get the error message:



error: no matching function for call to 'qBound(double, qreal, qreal)'



replace the doubles to float around line 222 in qwt_bars_item.cpp, and line 65 qwt_bars_item.h



/tmp/simon/sam/src/qwt_bars_item.cpp:222
/tmp/simon/sam/src/qwt_bars_item.h:65


Those steps should result in a successful build of Simon.



To use Simon, make sure you have Julius and libqt4-sql-sqlite installed.


[#32894] Wednesday, December 21, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iriousutur

Total Points: 321
Total Questions: 112
Total Answers: 106

Location: Sweden
Member since Mon, Dec 7, 2020
3 Years ago
iriousutur questions
Sun, Apr 9, 23, 02:48, 1 Year ago
Tue, May 23, 23, 00:41, 1 Year ago
Fri, Oct 21, 22, 02:47, 2 Years ago
Mon, May 9, 22, 00:01, 2 Years ago
;