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

[Simon] Recognition reports missing backend

Tags: None
(comma "," separated)
bedahr
Moderator
Posts
141
Karma
0
OS
This is indeed weird then.

You should have a file called ~/.kde4/share/apps/simond/models/default/active/active.sbm.
The .sbm is really just a .tar.gz. If you extract it, you should find a file called "metadata.xml" inside. What is the value of the "<type>" tag?

And just to make sure - you wouldn't happen to have another (old) Simon installation in a directory "overshadowing" the one in /usr (/usr/local, for example), right?

In the interest of speeding up the debugging, you can also try to catch me in #kde-accessibility on freenode (nick: "bedahr").
I should be around most of the time tomorrow, for example.

Best regards,
Peter
hasufell
Registered Member
Posts
5
Karma
0
bedahr wrote:This is indeed weird then.

You should have a file called ~/.kde4/share/apps/simond/models/default/active/active.sbm.
The .sbm is really just a .tar.gz. If you extract it, you should find a file called "metadata.xml" inside. What is the value of the "<type>" tag?

SPHINX

bedahr wrote:And just to make sure - you wouldn't happen to have another (old) Simon installation in a directory "overshadowing" the one in /usr (/usr/local, for example), right?

No, I never install into /usr/local for exactly that reason.

Could it be that there is a runtime-only dependency on some KDE stuff which is not needed at build time and results in this error? For the record: I am not running a full kde desktop, but that should not be an issue.

The dependency list is as follows:
Code: Select all
RDEPEND="
   >=app-accessibility/pocketsphinx-0.8
   >=app-accessibility/sphinxbase-0.8
   >=app-accessibility/SphinxTrain-1
   dev-qt/qtcore:4
   dev-qt/qtdbus:4
   dev-qt/qtgui:4
   dev-qt/qtscript:4
   dev-qt/qtsql:4
   kde-base/kdelibs:4
   media-libs/alsa-lib
   media-libs/opencv
   virtual/libintl
   x11-libs/libX11
   x11-libs/libXtst
   x11-libs/qwt:6
   kdepim? (
      kde-base/akonadi:4
      kde-base/kdepimlibs:4
   )
   libsamplerate? ( media-libs/libsamplerate )"
DEPEND="${RDEPEND}
   sys-devel/bison
   sys-devel/flex
   sys-devel/gettext
   virtual/pkgconfig"
bedahr
Moderator
Posts
141
Karma
0
OS
hasufell wrote:Could it be that there is a runtime-only dependency on some KDE stuff which is not needed at build time and results in this error? For the record: I am not running a full kde desktop, but that should not be an issue.

Not really, no.

Could you please add some debug output to "RecognitionControlFactory::recognitionControl(...)" (simond/src/recognitioncontrolfactory.cpp). In all likelihood the symbol BACKEND_TYPE_BOTH will not be defined.
You could also add a "#ifndef BACKEND_TYPE_BOTH #error "Well, this shouldn't happen" #endif" snippet in that file.

BACKEND_TYPE_BOTH really should be defined if you have "BackendType:STRING=both" in your cmake configuration - which you do (at least according to the pasted cmake cache).

Btw. thanks for writing an ebuild. I appreciate it.

Best regards,
Peter
hasufell
Registered Member
Posts
5
Karma
0
nvm, seems simond was not killed properly

I changed the username/pw, killed it and restarted. Works now.
bedahr
Moderator
Posts
141
Karma
0
OS
Great. Let me know if you hit any other problems.

Best regards,
Peter


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell