[Kstars-devel] Error in ksnewstuff.h file.

sachdeva at collide.info sachdeva at collide.info
Wed Jun 9 13:03:24 CEST 2004


Hi Jason,
As you mentioned I upgraded the kdelibs from 3.2.2 to 3.2.3 and did make
clean and starting building kstars from the first step. I am getting the
same errors once again. Couild you please let me know which version of
kdelibs are you using and did you download it from KDE CVS ?
here is my version.
[root at balvenie kdeedu]# rpm -q kdelibs
kdelibs-3.2.3-1.0.rh90.kde

Waiting for your reply.(Cos i dont kow how to go further)
Thanks
Kunal
> This error (and the relocation error) probably indicate that you don't
> have
> kdelibs from CVS installed.  Unfortunately, KStars won't compile with
> kdelibs-3.2.  I think we will modify the code so that it will work with
> kdelibs-3.2 by the time 3.3 comes out, but for now, you will need the
> latest
> kdelibs installed.
>
> Sorry about that,
> Jason
>
> On Tuesday 08 June 2004 05:40 am, sachdeva at collide.info wrote:
>> Hi,
>> I am getting an error during make. Error is because of non-existence
>> knewstuff.h but still being included in ksnewsstuff.h.
>> This file was patched abut 3 days back.
>> I downloaded the updated sources from CVS.
>> Reply soon.
>> Kunal
>> The following might help:
>>
>>
>> /usr/lib/qt-3.3//bin/moc ./ksnewstuff.h -o ksnewstuff.moc
>> if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/include/kde
>> -I/usr/lib/qt-3.3//include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT
>> -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi
>> -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
>> -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2
>> -Wformat-security -Wmissing-format-attribute -fno-exceptions
>> -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
>> -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -MT
>> ksnewstuff.o -MD -MP -MF ".deps/ksnewstuff.Tpo" -c -o ksnewstuff.o
>> ksnewstuff.cpp; \
>> then mv -f ".deps/ksnewstuff.Tpo" ".deps/ksnewstuff.Po"; else rm -f
>> ".deps/ksnewstuff.Tpo"; exit 1; fi
>> In file included from ksnewstuff.cpp:10:
>> ksnewstuff.h:8:23: knewstuff.h: No such file or directory
>> In file included from ksnewstuff.cpp:10:
>> ksnewstuff.h:14: parse error before `{' token
>> ksnewstuff.h:15: virtual outside class declaration
>> ksnewstuff.h:15: non-member function `const char* className()' cannot
>> have
>> ` const' method qualifier
>> ksnewstuff.h:15: virtual outside class declaration
>> ksnewstuff.h:15: virtual outside class declaration
>> ksnewstuff.h:15: virtual outside class declaration
>> ksnewstuff.h:15: virtual outside class declaration
>> ksnewstuff.h: In function `QObject* qObject()':
>> ksnewstuff.h:15: invalid use of `this' in non-member function
>> ksnewstuff.h: At global scope:
>> ksnewstuff.h:15: parse error before `private'
>> In file included from ksnewstuff.cpp:10:
>> ksnewstuff.h: In function `bool createUploadFile(const QString&)':
>> ksnewstuff.h:21: warning: unused parameter `const QString&fileName'
>> ksnewstuff.h: At global scope:
>> ksnewstuff.h:26: parse error before `public'
>> ksnewstuff.h:32: parse error before `}' token
>> ksnewstuff.cpp:17: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.cpp: In constructor `KSNewStuff::KSNewStuff(QWidget*)':
>> ksnewstuff.cpp:18: class `KSNewStuff' does not have any field named
>> `KNewStuff'
>> ksnewstuff.cpp:18: type `class QObject' is not a direct base of
>> `KSNewStuff' ksnewstuff.cpp:21: `kdw' undeclared (first use this
>> function)
>> ksnewstuff.cpp:21: (Each undeclared identifier is reported only once for
>> each function it appears in.)
>> ksnewstuff.cpp:21: no matching function for call to
>> `KDirWatch::KDirWatch(
>>    KSNewStuff* const)'
>> /usr/include/kde/kdirwatch.h:62: candidates are:
>> KDirWatch::KDirWatch(const
>>    KDirWatch&)
>> /usr/include/kde/kdirwatch.h:74:
>> KDirWatch::KDirWatch(QObject*
>>    = 0, const char* = 0)
>> ksnewstuff.cpp: At global scope:
>> ksnewstuff.cpp:26: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.cpp: In member function `bool KSNewStuff::install(const
>> QString&)':
>> ksnewstuff.cpp:38: `connect' undeclared (first use this function)
>> ksnewstuff.cpp: At global scope:
>> ksnewstuff.cpp:49: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> In file included from ksnewstuff.cpp:115:
>> ksnewstuff.moc:23: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.moc:27: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.moc:27: assignment (not initialization) in declaration
>> ksnewstuff.moc:28: incomplete type `KSNewStuff' does not have member `
>>    staticMetaObject'
>> ksnewstuff.moc:51: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.moc: In member function `QMetaObject*
>>    KSNewStuff::staticMetaObject()':
>> ksnewstuff.moc:52: `metaObj' undeclared (first use this function)
>> ksnewstuff.moc: At global scope:
>> ksnewstuff.moc:76: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.moc: In member function `void* KSNewStuff::qt_cast(const
>> char*)': ksnewstuff.moc:80: `KNewStuff' undeclared (first use this
>> function) ksnewstuff.moc:80: parse error before `)' token
>> ksnewstuff.moc:81: cannot call member function `virtual void*
>>    QObject::qt_cast(const char*)' without object
>> ksnewstuff.moc: At global scope:
>> ksnewstuff.moc:85: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.moc: In member function `bool KSNewStuff::qt_invoke(int,
>>    QUObject*)':
>> ksnewstuff.moc:87: `updateData' undeclared (first use this function)
>> ksnewstuff.moc:89: cannot call member function `virtual bool
>>    QObject::qt_invoke(int, QUObject*)' without object
>> In file included from ksnewstuff.cpp:115:
>> ksnewstuff.moc: At global scope:
>> ksnewstuff.moc:95: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.moc: In member function `bool KSNewStuff::qt_emit(int,
>> QUObject*)':
>> ksnewstuff.moc:96: cannot call member function `virtual bool
>>    QObject::qt_emit(int, QUObject*)' without object
>> ksnewstuff.moc: At global scope:
>> ksnewstuff.moc:101: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.moc: In member function `bool KSNewStuff::qt_property(int,
>> int,
>>    QVariant*)':
>> ksnewstuff.moc:102: cannot call member function `virtual bool
>>    QObject::qt_property(int, int, QVariant*)' without object
>> ksnewstuff.moc: At global scope:
>> ksnewstuff.moc:105: invalid use of undefined type `class KSNewStuff'
>> ksnewstuff.h:13: forward declaration of `class KSNewStuff'
>> ksnewstuff.h:15: warning: `bool qt_static_property(QObject*, int, int,
>>    QVariant*)' declared `static' but never defined
>> ksnewstuff.h:15: warning: `QMetaObject* staticMetaObject()' declared
>> `static' but never defined
>> make[2]: *** [ksnewstuff.o] Error 1
>> make[2]: Leaving directory `/home/kunal/kdeedu/kstars/kstars'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/kunal/kdeedu/kstars/kstars'
>>
>> _______________________________________________
>> Kstars-devel mailing list
>> Kstars-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/kstars-devel
>
> --
> -------------------------------
> KStars: KDE Desktop Planetarium
> http://edu.kde.org/kstars
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
>



More information about the Kstars-devel mailing list