[Kwintv] Compile Errors on chwizard.ui

Guy M. Spillman public at guyspillman.net
Sun Dec 7 19:00:21 CET 2003


I am getting the following errors when compiling the latest CVS code 
under Mandrake 9.2:

/usr/lib/qt3//bin/moc ./channelscanner.h -o channelscanner.moc
source='channelscanner.cpp' object='channelscanner.lo' libtool=yes \
depfile='.deps/channelscanner.Plo' tmpdepfile='.deps/channelscanner.TPlo' \
depmode=gcc3 /bin/sh ../../admin/depcomp \
/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ 
-DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/lib/qt3//include 
-I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith 
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -Wchar-subscripts -O2 -Wformat-security 
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  
-c -o channelscanner.lo `test -f 'channelscanner.cpp' || echo 
'./'`channelscanner.cpp
In file included from channelscanner.cpp:44:
channelscanner.h:38: error: syntax error before `{' token
channelscanner.h:39: error: virtual outside class declaration
channelscanner.h:39: error: non-member function `const char* 
className()' cannot have `const' method qualifier
channelscanner.h:39: error: virtual outside class declaration
channelscanner.h:39: error: virtual outside class declaration
channelscanner.h:39: error: virtual outside class declaration
channelscanner.h:39: error: virtual outside class declaration
channelscanner.h: In function `QObject* qObject()':
channelscanner.h:39: error: invalid use of `this' in non-member function
channelscanner.h: At global scope:
channelscanner.h:39: error: syntax error before `private'
channelscanner.h:44: error: destructors must be member functions
channelscanner.h:44: error: virtual outside class declaration
channelscanner.h:47: error: syntax error before `protected'
channelscanner.h:52: error: syntax error before `private'
channelscanner.h:68: error: syntax error before `private'
channelscanner.h:71: error: ISO C++ forbids declaration of `wizardPages' 
with no type
channelscanner.h:74: error: virtual outside class declaration
channelscanner.h:75: error: virtual outside class declaration
channelscanner.h:101: error: syntax error before `}' token
channelscanner.cpp:198: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In constructor 
`ChannelScanner::ChannelScanner(QtVision*, QWidget*, const char*)':
channelscanner.cpp:198: error: class `ChannelScanner' does not have any 
field named `ChWizard'
channelscanner.cpp:199: error: class `ChannelScanner' does not have any 
field named `_networkName'
channelscanner.cpp:200: error: class `ChannelScanner' does not have any 
field named `_qtv'
channelscanner.cpp:201: error: class `ChannelScanner' does not have any 
field named `_srcm'
channelscanner.cpp:202: error: class `ChannelScanner' does not have any 
field named `_vbimgr'
channelscanner.cpp:205: error: `connect' undeclared (first use this 
function)
channelscanner.cpp:205: error: (Each undeclared identifier is reported 
only once for each function it appears in.)
channelscanner.cpp:206: error: `_scanPredefined' undeclared (first use 
this function)
channelscanner.cpp:208: error: `_scanFrequencies' undeclared (first use 
this function)
channelscanner.cpp:210: error: `_source' undeclared (first use this 
function)
channelscanner.cpp:212: error: `_encoding' undeclared (first use this 
function)
channelscanner.cpp:214: error: `_channelList' undeclared (first use this 
function)
channelscanner.cpp:216: error: `_preselectRange' undeclared (first use 
this function)
channelscanner.cpp:220: error: `_progress' undeclared (first use this 
function)
channelscanner.cpp:222: error: `_textualScanFeedback' undeclared (first 
use this function)
channelscanner.cpp:224: error: no matching function for call to 
`QTimer::QTimer(ChannelScanner* const, const char[13])'
/usr/lib/qt3/include/qtimer.h:76: error: candidates are: 
QTimer::QTimer(const QTimer&)
/usr/lib/qt3/include/qtimer.h:50: error:                 
QTimer::QTimer(QObject*, const char*)
channelscanner.cpp:228: error: no matching function for call to 
`QTimer::QTimer(ChannelScanner* const, const char[10])'
/usr/lib/qt3/include/qtimer.h:76: error: candidates are: 
QTimer::QTimer(const QTimer&)
/usr/lib/qt3/include/qtimer.h:50: error:                 
QTimer::QTimer(QObject*, const char*)
channelscanner.cpp:239: error: `_frequencyTable' undeclared (first use 
this function)
channelscanner.cpp:247: error: no matching function for call to 
`ChannelStore::ChannelStore(QtVision*&, ChannelScanner* const, const 
char[12])'
channelstore.h:59: error: candidates are: 
ChannelStore::ChannelStore(const ChannelStore&)
channelstore.h:62: error:                 
ChannelStore::ChannelStore(QtVision*, QObject*, const char*)
channelscanner.cpp: At global scope:
channelscanner.cpp:253: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp:261: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp:266: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp:272: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `void 
ChannelScanner::preselectRangeChanged()':
channelscanner.cpp:273: error: no matching function for call to 
`ChannelStore::ChannelStore(QtVision*&, ChannelScanner* const, const 
char[13])'
channelstore.h:59: error: candidates are: 
ChannelStore::ChannelStore(const ChannelStore&)
channelstore.h:62: error:                 
ChannelStore::ChannelStore(QtVision*, QObject*, const char*)
channelscanner.cpp:295: error: `_minFreq' undeclared (first use this 
function)
channelscanner.cpp:296: error: `_maxFreq' undeclared (first use this 
function)
channelscanner.cpp: At global scope:
channelscanner.cpp:300: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `void 
ChannelScanner::updatePageSelection()':
channelscanner.cpp:302: error: `QWizard' undeclared (first use this 
function)
channelscanner.cpp:302: error: syntax error before `)' token
channelscanner.cpp:302: error: `preparePredefined' undeclared (first use 
this function)
channelscanner.cpp:302: error: `setAppropriate' undeclared (first use 
this function)
channelscanner.cpp:303: error: syntax error before `)' token
channelscanner.cpp:303: error: `prepareFreqRange' undeclared (first use 
this function)
channelscanner.cpp:305: error: syntax error before `)' token
channelscanner.cpp:306: error: syntax error before `)' token
channelscanner.cpp: At global scope:
channelscanner.cpp:311: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `void ChannelScanner::pageChanged()':
channelscanner.cpp:312: error: `helpButton' undeclared (first use this 
function)
channelscanner.cpp:314: error: `currentPage' undeclared (first use this 
function)
channelscanner.cpp:314: error: `indexOf' undeclared (first use this 
function)
channelscanner.cpp:315: error: `Setup' undeclared (first use this function)
channelscanner.cpp:319: error: `Scanning' undeclared (first use this 
function)
channelscanner.cpp:320: error: `backButton' undeclared (first use this 
function)
channelscanner.cpp:321: error: `nextButton' undeclared (first use this 
function)
channelscanner.cpp:324: error: `Finished' undeclared (first use this 
function)
channelscanner.cpp:325: error: `finishButton' undeclared (first use this 
function)
channelscanner.cpp: At global scope:
channelscanner.cpp:334: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `void ChannelScanner::accept()':
channelscanner.cpp:337: error: `_replaceChannels' undeclared (first use 
this function)
channelscanner.cpp:342: error: cannot call member function `virtual void 
QDialog::accept()' without object
channelscanner.cpp: At global scope:
channelscanner.cpp:346: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `void ChannelScanner::reject()':
channelscanner.cpp:350: error: cannot call member function `virtual void 
QDialog::reject()' without object
channelscanner.cpp: At global scope:
channelscanner.cpp:354: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `void 
ChannelScanner::scanningDone(bool)':
channelscanner.cpp:356: error: syntax error before `)' token
channelscanner.cpp:356: error: `showPage' undeclared (first use this 
function)
channelscanner.cpp:360: error: syntax error before `)' token
channelscanner.cpp: At global scope:
channelscanner.cpp:369: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp:380: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `void 
ChannelScanner::checkSignalStrengthReadback()':
channelscanner.cpp:384: error: `_vbiAccess' undeclared (first use this 
function)
channelscanner.cpp:390: error: `_signalReadback' undeclared (first use 
this function)
channelscanner.cpp:396: error: `_okToScan' undeclared (first use this 
function)
channelscanner.cpp: At global scope:
channelscanner.cpp:405: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp:418: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `void ChannelScanner::scan()':
channelscanner.cpp:420: error: no matching function for call to 
`ChannelStore::ChannelStore(QtVision*&, ChannelScanner* const, const 
char[13])'
channelstore.h:59: error: candidates are: 
ChannelStore::ChannelStore(const ChannelStore&)
channelstore.h:62: error:                 
ChannelStore::ChannelStore(QtVision*, QObject*, const char*)
channelscanner.cpp:429: error: `_disableUnused' undeclared (first use 
this function)
channelscanner.cpp:433: error: `_freqIncrement' undeclared (first use 
this function)
channelscanner.cpp: At global scope:
channelscanner.cpp:441: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `void 
ChannelScanner::scanFrequency()':
channelscanner.cpp:451: error: could not convert `percent' to `const 
QString&'
channelscanner.h:49: error: in passing argument 1 of `void 
progress(const QString&)'
channelscanner.cpp: At global scope:
channelscanner.cpp:465: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp:497: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp:505: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp:517: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp:534: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.cpp: In member function `bool ChannelScanner::fineTune()':
channelscanner.cpp:535: error: no matching function for call to 
`FineTuningDlg::FineTuningDlg(ChannelScanner* const, const char[18])'
finetuningdlg.h:25: error: candidates are: 
FineTuningDlg::FineTuningDlg(const FineTuningDlg&)
finetuningdlg.h:29: error:                 
FineTuningDlg::FineTuningDlg(QWidget*, const char*, bool, unsigned int)
channelscanner.cpp:542: error: `connect' undeclared (first use this 
function)
channelscanner.cpp: At global scope:
channelscanner.cpp:552: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
In file included from channelscanner.cpp:557:
channelscanner.moc:23: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.moc:27: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.moc:27: error: assignment (not initialization) in declaration
channelscanner.moc:28: error: incomplete type `ChannelScanner' does not 
have member `staticMetaObject'
channelscanner.moc:32: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
In file included from channelscanner.cpp:557:
channelscanner.moc:40: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
In file included from channelscanner.cpp:557:
channelscanner.moc:51: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.moc: In member function `QMetaObject* 
ChannelScanner::staticMetaObject()':
channelscanner.moc:52: error: `metaObj' undeclared (first use this function)
channelscanner.moc:54: error: `ChWizard' undeclared (first use this 
function)
channelscanner.moc:54: error: syntax error before `::' token
channelscanner.moc: At global scope:
channelscanner.moc:111: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.moc: In member function `void* 
ChannelScanner::qt_cast(const char*)':
channelscanner.moc:114: error: syntax error before `::' token
In file included from channelscanner.cpp:557:
channelscanner.moc: At global scope:
channelscanner.moc:119: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.moc: In member function `void ChannelScanner::progress(int)':
channelscanner.moc:120: error: `activate_signal' undeclared (first use 
this function)
channelscanner.moc: At global scope:
channelscanner.moc:125: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.moc: In member function `void 
ChannelScanner::progress(const QString&)':
channelscanner.moc:126: error: `activate_signal' undeclared (first use 
this function)
channelscanner.moc: At global scope:
channelscanner.moc:130: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.moc: In member function `bool 
ChannelScanner::qt_invoke(int, QUObject*)':
channelscanner.moc:132: error: `pageChanged' undeclared (first use this 
function)
channelscanner.moc:144: error: syntax error before `::' token
In file included from channelscanner.cpp:557:
channelscanner.moc: At global scope:
channelscanner.moc:150: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.moc: In member function `bool 
ChannelScanner::qt_emit(int, QUObject*)':
channelscanner.moc:152: error: could not convert 
`(&static_QUType_int)->QUType_int::get(QUObject*)((_o + 20))' to `const 
QString&'
channelscanner.h:49: error: in passing argument 1 of `void 
progress(const QString&)'
channelscanner.moc:155: error: syntax error before `::' token
In file included from channelscanner.cpp:557:
channelscanner.moc: At global scope:
channelscanner.moc:162: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.moc: In member function `bool 
ChannelScanner::qt_property(int, int, QVariant*)':
channelscanner.moc:163: error: syntax error before `::' token
channelscanner.moc:162: warning: unused parameter `int id'
channelscanner.moc:162: warning: unused parameter `int f'
channelscanner.moc:162: warning: unused parameter `QVariant*v'
channelscanner.moc: At global scope:
channelscanner.moc:166: error: invalid use of undefined type `class 
ChannelScanner'
channelscanner.h:37: error: forward declaration of `class ChannelScanner'
channelscanner.h:39: warning: `bool qt_static_property(QObject*, int, 
int, QVariant*)' declared `static' but never defined
channelscanner.h:39: warning: `QMetaObject* staticMetaObject()' declared 
`static' but never defined
channelscanner.h:39: warning: `QString tr(const char*, const char*)' 
declared `static' but never defined
channelscanner.h:39: warning: `QString trUtf8(const char*, const char*)' 
declared `static' but never defined
make[4]: *** [channelscanner.lo] Error 1
make[4]: Leaving directory `/tmp/kwintv/kdenonbeta/kwintv3/qtvision'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/kwintv/kdenonbeta/kwintv3/qtvision'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/kwintv/kdenonbeta/kwintv3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/kwintv/kdenonbeta'
make: *** [all] Error 2


Any help would be greatly apreciated.

Guy Spillman



More information about the kwintv mailing list