LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installation problem with kvoicecontrol (https://www.linuxquestions.org/questions/linux-software-2/installation-problem-with-kvoicecontrol-111851/)

unholy 11-03-2003 10:32 AM

Installation problem with kvoicecontrol
 
I'm interested in voice recognition. I've seen it running in windows. I've followed the voice recognition howto on this site, and if you omit dead links and beta versions - the only option I cane up with is an app called kvoice control.

The first problem was a make error telling me to define QTDIR and KDEDIR environment variables. I did this by..

Code:


export QTDIR=/path/to/qt/    (in my case /home/unholy/qt)
export KDEDIR=/path/to/.kde  (/home/unholy/.kde)

After this, make produced the following output..

unholy@linux:~/kvoicecontrol-0.11> make
kvoicecontrol.h -o kvoicecontrol.moc
make: kvoicecontrol.h: Command not found
make: *** [kvoicecontrol.moc] Error 127

I found kvoicecontrol.h in the current directory so I don't know what the problem is.

(This app, and others is available from ftp://ftp.uninett.no/pub/Linux/sound/apps/speech/ )

Thankyou,
unholy

musrum 11-03-2003 12:31 PM

For one thing, you don't want KDEDIR to point to your private .kde folder. QTDIR should point to where QT is installed, and KDEDIR should point to where KDE is installed.

unholy 11-04-2003 04:07 PM

Thanks, I've fixed that error. KDEDIR and QTDIR in SuSE 8.2 were not set. The correct value for them are...
QTDIR=/usr/lib/qt3/
KDEDIR=/opt/kde3/

kvoicecontrol now compiles, however further on I get these errors..

Code:

unholy@linux:~/kvoicecontrol-0.11> make
moc kvoicecontrol.h -o kvoicecontrol.moc
moc speakermodel.h -o speakermodel.moc
moc reference.h -o reference.moc
moc utterance.h -o utterance.moc
moc reference_editor.h -o reference_editor.moc
moc score.h -o score.moc
moc preprocessing.h -o preprocessing.moc
moc soundcard.h -o soundcard.moc
moc buffer.h -o buffer.moc
moc options.h -o options.moc
moc optionsdata.h -o optionsdata.moc
moc docking.h -o docking.moc
moc train_dialog.h -o train_dialog.moc
c++ -c -g -O -Wall -Wunused -I/opt/kde3//include -I/usr/lib/qt3//include  -I/usr/X11R6/include kvoicecontrol.cpp
In file included from kvoicecontrol.moc:11,
                from kvoicecontrol.cpp:63:
kvoicecontrol.h:33:24: ktopwidget.h: No such file or directory
In file included from kvoicecontrol.moc:11,
                from kvoicecontrol.cpp:63:
kvoicecontrol.h:40: error: parse error before `{' token
kvoicecontrol.h:41: error: virtual outside class declaration
kvoicecontrol.h:41: error: non-member function `const char* className()' cannot
  have `const' method qualifier
kvoicecontrol.h:41: error: virtual outside class declaration
kvoicecontrol.h:41: error: virtual outside class declaration
kvoicecontrol.h:41: error: virtual outside class declaration
kvoicecontrol.h:41: error: virtual outside class declaration
kvoicecontrol.h: In function `QObject* qObject()':
kvoicecontrol.h:41: error: invalid use of `this' in non-member function
kvoicecontrol.h: At global scope:
kvoicecontrol.h:41: error: parse error before `private'
kvoicecontrol.h:46: error: destructors must be member functions
kvoicecontrol.h:50: error: parse error before `public'
kvoicecontrol.h:59: error: parse error before `private'
kvoicecontrol.h:73: error: parse error before `}' token
In file included from kvoicecontrol.cpp:63:
kvoicecontrol.moc:23: error: invalid use of undefined type `class KVoiceControl
  '
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.moc:27: error: invalid use of undefined type `class KVoiceControl
  '
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.moc:27: error: assignment (not initialization) in declaration
kvoicecontrol.moc:28: error: incomplete type `KVoiceControl' does not have
  member `staticMetaObject'
kvoicecontrol.moc:32: error: invalid use of undefined type `class KVoiceControl
  '
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
In file included from kvoicecontrol.cpp:63:
kvoicecontrol.moc:40: error: invalid use of undefined type `class KVoiceControl
  '
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
In file included from kvoicecontrol.cpp:63:
kvoicecontrol.moc:51: error: invalid use of undefined type `class KVoiceControl
  '
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.moc: In member function `QMetaObject*
  KVoiceControl::staticMetaObject()':
kvoicecontrol.moc:52: error: `metaObj' undeclared (first use this function)
kvoicecontrol.moc:52: error: (Each undeclared identifier is reported only once
  for each function it appears in.)
kvoicecontrol.moc:54: error: `KTopLevelWidget' undeclared (first use this
  function)
kvoicecontrol.moc:54: error: parse error before `::' token
kvoicecontrol.moc: At global scope:
kvoicecontrol.moc:87: error: invalid use of undefined type `class KVoiceControl
  '
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.moc: In member function `void* KVoiceControl::qt_cast(const
  char*)':
kvoicecontrol.moc:90: error: parse error before `::' token
In file included from kvoicecontrol.cpp:63:
kvoicecontrol.moc: At global scope:
kvoicecontrol.moc:94: error: invalid use of undefined type `class KVoiceControl
  '
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.moc: In member function `bool KVoiceControl::qt_invoke(int,
  QUObject*)':
kvoicecontrol.moc:96: error: `about' undeclared (first use this function)
kvoicecontrol.moc:102: error: parse error before `::' token
In file included from kvoicecontrol.cpp:63:
kvoicecontrol.moc: At global scope:
kvoicecontrol.moc:108: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.moc: In member function `bool KVoiceControl::qt_emit(int,
  QUObject*)':
kvoicecontrol.moc:109: error: parse error before `::' token
kvoicecontrol.moc: At global scope:
kvoicecontrol.moc:114: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.moc: In member function `bool KVoiceControl::qt_property(int,
  int, QVariant*)':
kvoicecontrol.moc:115: error: parse error before `::' token
kvoicecontrol.moc: At global scope:
kvoicecontrol.moc:118: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
In file included from /usr/include/g++/backward/iostream.h:31,
                from kvoicecontrol.cpp:65:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
kvoicecontrol.cpp:71: error: syntax error before `*' token
kvoicecontrol.cpp: In function `int main(int, char**)':
kvoicecontrol.cpp:83: error: `getIconLoader' undeclared (first use this
  function)
kvoicecontrol.cpp:88: error: `kvoicecontrol' undeclared (first use this
  function)
kvoicecontrol.cpp:88: error: parse error before `(' token
kvoicecontrol.cpp: At global scope:
kvoicecontrol.cpp:102: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.cpp: In constructor `KVoiceControl::KVoiceControl(char*)':
kvoicecontrol.cpp:103: error: `getConfig' undeclared (first use this function)
kvoicecontrol.cpp:106: error: `create_menu' undeclared (first use this
  function)
kvoicecontrol.cpp:108: error: `connect' undeclared (first use this function)
kvoicecontrol.cpp:116: error: `resize' undeclared (first use this function)
kvoicecontrol.cpp:118: error: `setMinimumSize' undeclared (first use this
  function)
kvoicecontrol.cpp:119: error: `setMaximumSize' undeclared (first use this
  function)
kvoicecontrol.cpp:127: error: `show' undeclared (first use this function)
kvoicecontrol.cpp: At global scope:
kvoicecontrol.cpp:138: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.cpp:155: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.cpp: In member function `void KVoiceControl::about()':
kvoicecontrol.cpp:160: error: no matching function for call to `QMessageBox::
  about(KVoiceControl* const, const char[9], const char[63])'
/usr/lib/qt3/include/qmessagebox.h:108: error: candidates are: static void
  QMessageBox::about(QWidget*, const QString&, const QString&)
kvoicecontrol.cpp: At global scope:
kvoicecontrol.cpp:171: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.cpp: In member function `void KVoiceControl::create_menu()':
kvoicecontrol.cpp:173: error: `klocale' undeclared (first use this function)
kvoicecontrol.cpp:181: error: `CTRL' undeclared (first use this function)
kvoicecontrol.cpp:181: error: `Key_Q' undeclared (first use this function)
kvoicecontrol.cpp:184: error: `ALT' undeclared (first use this function)
kvoicecontrol.cpp:184: error: `Key_R' undeclared (first use this function)
kvoicecontrol.cpp:189: error: no matching function for call to `QAccel::QAccel(
  KVoiceControl* const)'
/usr/lib/qt3/include/qaccel.h:99: error: candidates are: QAccel::QAccel(const
  QAccel&)
/usr/lib/qt3/include/qaccel.h:55: error:
  QAccel::QAccel(QWidget*, QObject*, const char* = 0)
/usr/lib/qt3/include/qaccel.h:54: error:
  QAccel::QAccel(QWidget*, const char* = 0)
kvoicecontrol.cpp:200: error: `Key_F1' undeclared (first use this function)
kvoicecontrol.cpp:204: error: no matching function for call to `KMenuBar::
  KMenuBar(KVoiceControl* const, const char[10])'
/opt/kde3/include/kmenubar.h:41: error: candidates are:
  KMenuBar::KMenuBar(const KMenuBar&)
/opt/kde3/include/kmenubar.h:46: error:
  KMenuBar::KMenuBar(QWidget* = 0, const char* = 0)
kvoicecontrol.cpp:211: error: `setMenu' undeclared (first use this function)
kvoicecontrol.cpp: At global scope:
kvoicecontrol.cpp:222: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.cpp:234: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.cpp: In member function `void KVoiceControl::quit()':
kvoicecontrol.cpp:241: error: `getConfig' undeclared (first use this function)
kvoicecontrol.cpp: At global scope:
kvoicecontrol.cpp:260: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.cpp:272: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.cpp: In member function `void KVoiceControl::set_title(QString)':
kvoicecontrol.cpp:273: error: `setCaption' undeclared (first use this function)
kvoicecontrol.cpp: At global scope:
kvoicecontrol.cpp:279: error: invalid use of undefined type `class
  KVoiceControl'
kvoicecontrol.h:39: error: forward declaration of `class KVoiceControl'
kvoicecontrol.h:41: warning: `bool qt_static_property(QObject*, int, int,
  QVariant*)' declared `static' but never defined
kvoicecontrol.h:41: warning: `QMetaObject* staticMetaObject()' declared
  `static' but never defined
kvoicecontrol.h:41: warning: `QString tr(const char*, const char*)' declared
  `static' but never defined
kvoicecontrol.h:41: warning: `QString trUtf8(const char*, const char*)'
  declared `static' but never defined
make: *** [kvoicecontrol.o] Error 1



All times are GMT -5. The time now is 03:45 AM.