trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: January 2012

Re: [trinity-users] tdelibs fails to build - Git source

From: Mike Howard <mike@...>
Date: Wed, 11 Jan 2012 20:42:07 +0000
On 11/01/2012 16:06, Darrell Anderson wrote:
>> Well I'm now totally stumped on this one. I've reinstalled
>> the OS (wheezy - a number of times), built fro GIT following
>> the wiki (a number of times) but still, building tdelibs
>> fails (despite having built it a week or so ago) with the
>> following;
>>
>> [  1%] Building CXX object
>> dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o
>> cd /tmp/tdelibs/dcop&&
>> /usr/bin/c++   -DDCOP_shared_EXPORTS
>> -DHAVE_CONFIG_H -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE
>> -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION
>> -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC
>> -I/tmp/tdelibs/dcop -I/tmp/tdelibs
>> -I/data/trinity/root.tde.tmp/tde.new/tde/main/tdelibs/dcop
>> -I/tmp/tdelibs/tdecore
>> -I/data/trinity/root.tde.tmp/tde.new/tde/main/tdelibs/tdecore
>>    -o CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o -c
>> /data/trinity/root.tde.tmp/tde.new/tde/main/tdelibs/dcop/dcopclient.cpp
>> In file included from
>> /data/trinity/root.tde.tmp/tde.new/tde/main/tdelibs/dcop/dcopclient.cpp:2285:0:
>> /tmp/tdelibs/dcop/dcopclient.moc:121:47: error: QCString
>> does not name a type
>> /tmp/tdelibs/dcop/dcopclient.moc:121:57: error: ISO C++
>> forbids declaration of t0 with no type [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:121:6: error: prototype
>> for void DCOPClient::applicationRegistered(const int&)
>> does not match any in class DCOPClient
>> /data/trinity/root.tde.tmp/tde.new/tde/main/tdelibs/dcop/dcopclient.h:745:8:
>> error: candidate is: void
>> DCOPClient::applicationRegistered(const TQCString&)
>> /tmp/tdelibs/dcop/dcopclient.moc:134:44: error: QCString
>> does not name a type
>> /tmp/tdelibs/dcop/dcopclient.moc:134:54: error: ISO C++
>> forbids declaration of t0 with no type [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:134:6: error: prototype
>> for void DCOPClient::applicationRemoved(const int&) does
>> not match any in class DCOPClient
>> /data/trinity/root.tde.tmp/tde.new/tde/main/tdelibs/dcop/dcopclient.h:754:8:
>> error: candidate is: void
>> DCOPClient::applicationRemoved(const TQCString&)
>> /tmp/tdelibs/dcop/dcopclient.moc:166:42: error: QCString
>> does not name a type
>> /tmp/tdelibs/dcop/dcopclient.moc:166:52: error: ISO C++
>> forbids declaration of t1 with no type [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:166:62: error: QByteArray
>> does not name a type
>> /tmp/tdelibs/dcop/dcopclient.moc:166:74: error: ISO C++
>> forbids declaration of t2 with no type [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:166:6: error: prototype
>> for void DCOPClient::callBack(int, const int&, const
>> int&) does not match any in class DCOPClient
>> /data/trinity/root.tde.tmp/tde.new/tde/main/tdelibs/dcop/dcopclient.h:794:8:
>> error: candidate is: void DCOPClient::callBack(int, const
>> TQCString&, const TQByteArray&)
>> /tmp/tdelibs/dcop/dcopclient.moc: In member function
>> virtual bool DCOPClient::qt_emit(int, TQUObject*):
>> /tmp/tdelibs/dcop/dcopclient.moc:196:42: error: ISO C++
>> forbids declaration of type name with no type
>> [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:196:42: error: ISO C++
>> forbids declaration of type name with no type
>> [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:196:36: error: expected
>> primary-expression before const
>> /tmp/tdelibs/dcop/dcopclient.moc:196:36: error: expected )
>> before const
>> /tmp/tdelibs/dcop/dcopclient.moc:197:39: error: ISO C++
>> forbids declaration of type name with no type
>> [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:197:39: error: ISO C++
>> forbids declaration of type name with no type
>> [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:197:33: error: expected
>> primary-expression before const
>> /tmp/tdelibs/dcop/dcopclient.moc:197:33: error: expected )
>> before const
>> /tmp/tdelibs/dcop/dcopclient.moc:200:62: error: ISO C++
>> forbids declaration of type name with no type
>> [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:200:62: error: ISO C++
>> forbids declaration of type name with no type
>> [-fpermissive]
>> /tmp/tdelibs/dcop/dcopclient.moc:200:56: error: expected
>> primary-expression before const
>> /tmp/tdelibs/dcop/dcopclient.moc:200:56: error: expected )
>> before const
>> make[2]: ***
>> [dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o] Error 1
>> make[2]: Leaving directory `/tmp/tdelibs'
>> make[1]: *** [dcop/CMakeFiles/DCOP-shared.dir/all] Error 2
>> make[1]: Leaving directory `/tmp/tdelibs'
>> make: *** [all] Error 2
>>
>> I hate being beaten but there is nothing above that jumps
>> out at me and I'm sure it's something to do with my
>> configuration but I've gone over it repeatedly!
>>
>> If anybody with more knowledge than me can see something
>> I'd be eternally grateful.
> I'm no expert and I have not started trying to build from GIT. Tim is starting to merge patches. Further, he has been removing various TQt layer commands/functions, although I won't pretend to know the extent of that. Thus, tdelibs could be broken in GIT. With that said, the calls to QCString and QByteArray look conspicuous. With the TQt layer those should be TQCString and TQByteArray, but Tim would know for sure.
>
> Darrell
>
>
Well that does appear to be the problem. Not being a developer, I don't 
know how to fix it though :)

Various .moc files (which I assume are autogenerated) contain 
calls/references to QCString, QByteArray, QCommonStyle, QApplication 
etc. Fixing up these in the moc files allows progression to the next 
erroneous file. I'll look see if I can work  out what goes on to create 
these files ...... but I wouldn't hold your breath :)

Cheers,
Mike.

--