LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Install Simon Voice Recognition Software (https://www.linuxquestions.org/questions/linux-software-2/install-simon-voice-recognition-software-4175556509/)

Ztcoracat 10-18-2015 03:34 PM

Install Simon Voice Recognition Software
 
Hi:

I'm trying to install Simon but I have questions as I'm not use to running build scripts and after untarring there is not any mention of running ./configure, make or make install.

Here's the README file.
I get that I need to install all of the dependencies first.

Code:

Please compile Simon with the provided build.sh script.

There are the following dependencies.

Required build-time dependency:
1. KDE libraries and workspace (4.8 or newer)

Optional build-time dependencies:
1. KDE Pim Libs . Enables the optional command plugin "Akonadi" that allows
Simon to trigger commands at certain times and to use Simon dialogs as
calendar reminders.
2. LibSampleRate (http://www.mega-nerd.com/SRC/). If you build Simon with LibSampleRate support, it can
automatically resample audio in- and output for devices that don't support the
required configuration.
3. qaccessibilityclient (http://cmusphinx.sf.net://projects.kde.org/projects/playground/accessibility/libkdeaccessibilityclient). Enables the experimental ATSPI integration.
4. Sphinxbase, PocketSphinx, SphinxTrain (http://cmusphinx.sf.net). Together, they enable SPHINX support in Simon
(model compilation and recognition).
5. OpenCV (http://opencv.org). Enables the face detection and lip detection context plugins.

Here's a pic of all of the files that came with Simon:-

http://i1052.photobucket.com/albums/...40340%20PM.png

After the dependencies are installed than would I run the build.sh script?

Would I run cmake or will that run on it's own during the build?

TobiSGD 10-18-2015 03:46 PM

If you have the dependencies installed just run the build.s script, it should do all the work.

knudfl 10-18-2015 04:00 PM

And ..... the script build.sh is a text file with two commands :
Please read the "two lines" to know that it's simply running 'cmake' and make ...

Ztcoracat 10-18-2015 04:29 PM

Quote:

Originally Posted by TobiSGD (Post 5436489)
If you have the dependencies installed just run the build.s script, it should do all the work.


I'm on my way to downloading and installing all of the dependencies now that you've given me confirmation.

Thanks!

Ztcoracat 10-18-2015 04:41 PM

Quote:

Originally Posted by knudfl (Post 5436494)
And ..... the script build.sh is a text file with two commands :
Please read the "two lines" to know that it's simply running 'cmake' and make ...

The build.sh script says:
Code:

mddir build 2> /dev/null
cd build&& cmake -DMAKE_INSTALL-PREFIX='kde4-config --prefix'..&&make && su -c 'make install && ldconfig' && kbuildsycoca4 && echo -e

So all I need to execute is:
Code:

./build.sh
right?

Ztcoracat 10-18-2015 04:50 PM

Is this link the correct KDE Pim Libraries?
http://www.rpmfind.net/linux/rpm2htm...4kpimtextedit4

<OR> should I focus on this KDE page instead?
https://community.kde.org/Frameworks/Epics/kdepimlibs

-::-Generally I just go to the Slack Builds repo but some of the packages that I need are not in the Slack repo-::-

Ztcoracat 10-18-2015 05:06 PM

The website that the README file gives for 'qaccessibilityclient' returns Error Not Found.

So; I'll have to convert the .rpm with rpm2tgz to get the dependency installed.

Libsamplerate-0.1.8.tar.gz has to be compiled so I have a lot of work to due before I actually install Simon.
(learning as I download the dependencies)

If I don't have the correct dependency installed will the build show me an error?

John VV 10-18-2015 05:18 PM

the date on the build.sh is june 2013

be warned
a qt5 and qt4 mixed system can be a royal pain sometimes
some qt4 code will need tweaking

qt4 allright
-- from the "CMakeLists.txt"
Code:


find_package(KDE4 "4.4" REQUIRED)
find_package(Qt4 COMPONENTS QtCore QtDbus QtGui QtTest QtXml QtScript QtConcurrent REQUIRED)

the cmake code looks to be looking for "qmake" and NOT "qmake-gt4"


make sure that you make a link to gmake-qt4 to qmake and that "qmakt-qt5" IS NOT!!! A LINK TO "qmake"
but the real qt5 qmake


/usr/bin/qmake MIGHT!!! not be a link to qmake-qt5
qmake-qt5 might BE THE LINK

Code:

cd /usr/bin
ls -l qmake*

and running
Code:

cd build
cmake ..

will tell you the errors and any missing software

just DELETE ALL FILES in the "build" folder between runs of cmake

on my opensuse 13.2 "cmake" finishes ( kde 4.11 )
and "make -j4 " finishes
-- i DID NOT pass the install location to cmake so i ma not installing this

Ztcoracat 10-18-2015 05:27 PM

Quote:

Originally Posted by John VV (Post 5436519)
the date on the build.sh is june 2013

make sure that a older qt is installed

if you are using qt5 make sure 4.8 or 4.6 is installed and "qmake " points to "gmake-qt4"
and you have the qt4 development files also installed

be warned
a qt5 and qt4 mixed system can be a royal pain sometimes
some qt4 code will need tweaking

Thanks John:-

TobiSGD 10-18-2015 05:33 PM

If you have a full Slackware installation you already should have KDEPimLibs already installed.
Quote:

If I don't have the correct dependency installed will the build show me an error?
It shouldn't, since the README clearly states that these are optional dependencies.

Ztcoracat 10-18-2015 05:50 PM

Quote:

Originally Posted by TobiSGD (Post 5436521)
If you have a full Slackware installation you already should have KDEPimLibs already installed.
It shouldn't, since the README clearly states that these are optional dependencies.

Negative on the KDEPimLibs.
When I installed Slackware I did not install anything 'KDE'

Ztcoracat 10-18-2015 05:57 PM

Code:

bash-4.2# slackpkg search kdepimlibs

Looking for kdepimlibs in package list. Please wait... DONE

The list below shows all packages with name matching "kdepimlibs".

[uninstalled] - kdepimlibs-4.10.5-x86_64-1

You can search specific files using "slackpkg file-search file".

Found it here-:)
http://pkgs.org/slackware-14.1/slack..._64-1.txz.html

Ztcoracat 10-18-2015 06:30 PM

Quote:

Originally Posted by John VV (Post 5436519)
the date on the build.sh is june 2013

be warned
a qt5 and qt4 mixed system can be a royal pain sometimes
some qt4 code will need tweaking

qt4 allright
-- from the "CMakeLists.txt"
Code:


find_package(KDE4 "4.4" REQUIRED)
find_package(Qt4 COMPONENTS QtCore QtDbus QtGui QtTest QtXml QtScript QtConcurrent REQUIRED)

the cmake code looks to be looking for "qmake" and NOT "qmake-gt4"


make sure that you make a link to gmake-qt4 to qmake and that "qmakt-qt5" IS NOT!!! A LINK TO "qmake"
but the real qt5 qmake


/usr/bin/qmake MIGHT!!! not be a link to qmake-qt5
qmake-qt5 might BE THE LINK

Code:

cd /usr/bin
ls -l qmake*

and running
Code:

cd build
cmake ..

will tell you the errors and any missing software

just DELETE ALL FILES in the "build" folder between runs of cmake

on my opensuse 13.2 "cmake" finishes ( kde 4.11 )
and "make -j4 " finishes
-- i DID NOT pass the install location to cmake so i ma not installing this

Install Qt4 before or after the dependencies are installed?

Ztcoracat 10-18-2015 08:21 PM

I now have all of the dependencies downloaded and in my Downloads directory.

All of those dependencies get installed in the order in which they are listed in on the README file; right?

knudfl 10-18-2015 08:37 PM

Re #14.

If Slackware 14.1, all kde-4.10.5 can be installed from the install DVD.
And the same for qt-4.8.5 .

Slackware : The install order doesn't really matter. Random order is OK.

Simon : The only missing package is qwt. (With a full install of Slackware 14.1).
`qwt' http://slackbuilds.org/repository/14.1/libraries/qwt/
... Other packages are optional.
Simon will start building when qwt is installed ...


-


All times are GMT -5. The time now is 02:07 PM.