LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-03-2003, 10:32 AM   #1
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Rep: Reputation: 30
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
 
Old 11-03-2003, 12:31 PM   #2
musrum
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 112

Rep: Reputation: 15
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.
 
Old 11-04-2003, 04:07 PM   #3
unholy
Member
 
Registered: Sep 2003
Location: Eire
Distribution: Ubuntu 7.10
Posts: 344

Original Poster
Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation Problem noelg100 Linux - Newbie 1 05-20-2005 04:00 PM
installation problem joe chonk Red Hat 1 10-14-2004 12:42 PM
installation problem ronss Linux - Distributions 3 04-16-2003 05:27 AM
Installation Problem ALBlackshire Linux - Software 0 01-03-2002 08:03 PM
LiLo Installation problem ?and (GNOME and KDE problem) hitesh_linux Linux - Software 1 01-01-2002 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration