Hi Tim,
I try compile kdelibs and it stopping with this error (tqtinterface is built with Qt3):
[ 2%] Building CXX object dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o cd /home/serghei/kdelibs.build/dcop && /usr/bin/c++ -DDCOP_shared_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -include tqt.h -fPIC -I/usr/qt/3/include -I/usr/include/tqt -I/home/serghei/kdelibs.build/dcop -I/home/serghei/kdelibs.build -I/usr/src/trinity/kdelibs/dcop -I/home/serghei/kdelibs.build/kdecore -I/usr/src/trinity/kdelibs/kdecore -o CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o -c /usr/src/trinity/kdelibs/dcop/dcopclient.cpp /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjects(QCStringList&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1334: error: 'class QObject' has no member named 'tqchildren' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1334: error: 'tqobjectTrees' is not a member of 'QObject' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1348: error: 'class QObject' has no member named 'tqchildren' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjectsEx(QValueList<<unnamed>::O>&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1371: error: 'class QObject' has no member named 'tqchildren' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1371: error: 'tqobjectTrees' is not a member of 'QObject' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1385: error: 'class QObject' has no member named 'tqchildren' make[2]: *** [dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o] Error 1 make[2]: Leaving directory `/home/serghei/kdelibs.build' make[1]: *** [dcop/CMakeFiles/DCOP-shared.dir/all] Error 2 make[1]: Leaving directory `/home/serghei/kdelibs.build'
On Friday 07 January 2011 19:51:09 Serghei Amelian wrote:
Hi Tim,
I try compile kdelibs and it stopping with this error (tqtinterface is built with Qt3):
[ 2%] Building CXX object dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o cd /home/serghei/kdelibs.build/dcop && /usr/bin/c++ -DDCOP_shared_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -include tqt.h -fPIC -I/usr/qt/3/include -I/usr/include/tqt -I/home/serghei/kdelibs.build/dcop
[...]
I forgot to checkout. After checkout, the error is this:
[ 1%] Building CXX object dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o cd /home/serghei/kdelibs.build/dcop && /usr/bin/c++ -DDCOP_shared_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -include tqt.h -fPIC -I/usr/qt/3/include -I/usr/include/tqt -I/home/serghei/kdelibs.build/dcop -I/home/serghei/kdelibs.build -I/usr/src/trinity/kdelibs/dcop -I/home/serghei/kdelibs.build/kdecore -I/usr/src/trinity/kdelibs/kdecore -o CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o -c /usr/src/trinity/kdelibs/dcop/dcopclient.cpp /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjects(QCStringList&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1334: error: 'class QObject' has no member named 'tqchildren' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1348: error: 'class QObject' has no member named 'tqchildren' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjectsEx(QValueList<<unnamed>::O>&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1371: error: 'class QObject' has no member named 'tqchildren' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1385: error: 'class QObject' has no member named 'tqchildren' make[2]: *** [dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o] Error 1
On Friday 07 January 2011 19:51:09 Serghei Amelian wrote:
Hi Tim,
I try compile kdelibs and it stopping with this error (tqtinterface is built with Qt3):
[ 2%] Building CXX object dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o cd /home/serghei/kdelibs.build/dcop && /usr/bin/c++ -DDCOP_shared_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -include tqt.h -fPIC -I/usr/qt/3/include -I/usr/include/tqt -I/home/serghei/kdelibs.build/dcop
[...]
I forgot to checkout. After checkout, the error is this:
[ 1%] Building CXX object dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o cd /home/serghei/kdelibs.build/dcop && /usr/bin/c++ -DDCOP_shared_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -include tqt.h -fPIC -I/usr/qt/3/include -I/usr/include/tqt -I/home/serghei/kdelibs.build/dcop -I/home/serghei/kdelibs.build -I/usr/src/trinity/kdelibs/dcop -I/home/serghei/kdelibs.build/kdecore -I/usr/src/trinity/kdelibs/kdecore -o CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o -c /usr/src/trinity/kdelibs/dcop/dcopclient.cpp /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjects(QCStringList&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1334: error: 'class QObject' has no member named 'tqchildren' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1348: error: 'class QObject' has no member named 'tqchildren' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjectsEx(QValueList<<unnamed>::O>&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1371: error: 'class QObject' has no member named 'tqchildren' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1385: error: 'class QObject' has no member named 'tqchildren' make[2]: *** [dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o] Error 1
-- Serghei
Ah, OK, I know what that is...
I recently made a change to Qt3 itself to add the ability to retrieve a (copied) TQObjectList of children instead of a pointer to an internal object. The patch is attached.
Some of the reasoning for this change is up on the TQt interface page, but it boils down to: 1. Qt3 is not maintained upstream (obviously) 2. I am very nervous about pointers to static objects that may be deleted at any time from any other thread/process/etc., causing nasty crashes 3. This is the only change needed to allow TQt to handle both Qt3 and Qt4 4. The Qt3 ABI and API are unaffected as the change merely adds two methods that will be utilized in the future
You will need to recompile Qt3 with the patch applied before TQt will build properly. Alternatively you may utilize the TQt source from before SVN revision 1210400, but that will cause problems in the future as final TQt porting is completed.
Tim
On Friday 07 January 2011 21:18:38 Timothy Pearson wrote: [...]
Ah, OK, I know what that is...
I recently made a change to Qt3 itself to add the ability to retrieve a (copied) TQObjectList of children instead of a pointer to an internal object. The patch is attached.
[...]
You will need to recompile Qt3 with the patch applied before TQt will build properly. Alternatively you may utilize the TQt source from before SVN revision 1210400, but that will cause problems in the future as final TQt porting is completed.
I patched Qt3 (also cmake checks if detected Qt is patched for tqtinterface compatibility). Now stopping with this error:
[ 1%] Building CXX object dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o cd /home/serghei/kdelibs.build/dcop && /usr/bin/c++ -DDCOP_shared_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -include tqt.h -fPIC -I/usr/qt/3/include -I/usr/include/tqt -I/home/serghei/kdelibs.build/dcop -I/home/serghei/kdelibs.build -I/usr/src/trinity/kdelibs/dcop -I/home/serghei/kdelibs.build/kdecore -I/usr/src/trinity/kdelibs/kdecore -o CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o -c /usr/src/trinity/kdelibs/dcop/dcopclient.cpp /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjects(QCStringList&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1334: error: no match for ternary 'operator?:' in '(o != 0u) ? QObject::tqchildren()() : QObject::objectTrees()' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1348: error: could not convert 'QObject::tqchildren()()' to 'bool' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjectsEx(QValueList<<unnamed>::O>&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1371: error: no match for ternary 'operator?:' in '(o != 0u) ? QObject::tqchildren()() : QObject::objectTrees()' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1385: error: could not convert 'QObject::tqchildren()()' to 'bool' make[2]: *** [dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o] Error 1
On Friday 07 January 2011 21:18:38 Timothy Pearson wrote: [...]
Ah, OK, I know what that is...
I recently made a change to Qt3 itself to add the ability to retrieve a (copied) TQObjectList of children instead of a pointer to an internal object. The patch is attached.
[...]
You will need to recompile Qt3 with the patch applied before TQt will build properly. Alternatively you may utilize the TQt source from before SVN revision 1210400, but that will cause problems in the future as final TQt porting is completed.
I patched Qt3 (also cmake checks if detected Qt is patched for tqtinterface compatibility). Now stopping with this error:
[ 1%] Building CXX object dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o cd /home/serghei/kdelibs.build/dcop && /usr/bin/c++ -DDCOP_shared_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -include tqt.h -fPIC -I/usr/qt/3/include -I/usr/include/tqt -I/home/serghei/kdelibs.build/dcop -I/home/serghei/kdelibs.build -I/usr/src/trinity/kdelibs/dcop -I/home/serghei/kdelibs.build/kdecore -I/usr/src/trinity/kdelibs/kdecore -o CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o -c /usr/src/trinity/kdelibs/dcop/dcopclient.cpp /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjects(QCStringList&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1334: error: no match for ternary 'operator?:' in '(o != 0u) ? QObject::tqchildren()() : QObject::objectTrees()' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1348: error: could not convert 'QObject::tqchildren()()' to 'bool' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp: In function 'void fillQtObjectsEx(QValueList<<unnamed>::O>&, QObject*, QCString)': /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1371: error: no match for ternary 'operator?:' in '(o != 0u) ? QObject::tqchildren()() : QObject::objectTrees()' /usr/src/trinity/kdelibs/dcop/dcopclient.cpp:1385: error: could not convert 'QObject::tqchildren()()' to 'bool' make[2]: *** [dcop/CMakeFiles/DCOP-shared.dir/dcopclient.cpp.o] Error 1
-- Serghei
OK, I submitted a temporary patch to tqtinterface that will fix the build failure for now. The underlying problem will need to be addressed later on.
Tim
On Saturday 08 January 2011 00:13:55 Timothy Pearson wrote:
[...]
OK, I submitted a temporary patch to tqtinterface that will fix the build failure for now. The underlying problem will need to be addressed later on.
Tim
I think I must revert to vanilla Qt3, without tqtinterface compatibility:
[ 1%] Building CXX object CMakeFiles/tqt.dir/qtinterface/tqaccessible.cpp.o In file included from /usr/qt/3/include/qaccessible.h:43,
from /var/tmp/portage/kde-base/tqtinterface-3.5.13_p1183278/work/tqtinterface/qtinterface/tqaccessible.h:32,
from /var/tmp/portage/kde-base/tqtinterface-3.5.13_p1183278/work/tqtinterface/qtinterface/tqaccessible.cpp:23: /usr/qt/3/include/qobject.h:105: error: 'const QObjectList QObject::children() const' cannot be overloaded /usr/qt/3/include/qobject.h:103: error: with 'const QObjectList* QObject::children() const'
On Saturday 08 January 2011 00:13:55 Timothy Pearson wrote:
[...]
OK, I submitted a temporary patch to tqtinterface that will fix the build failure for now. The underlying problem will need to be addressed later on.
Tim
I think I must revert to vanilla Qt3, without tqtinterface compatibility:
[ 1%] Building CXX object CMakeFiles/tqt.dir/qtinterface/tqaccessible.cpp.o In file included from /usr/qt/3/include/qaccessible.h:43,
from /var/tmp/portage/kde-base/tqtinterface-3.5.13_p1183278/work/tqtinterface/qtinterface/tqaccessible.h:32,
from /var/tmp/portage/kde-base/tqtinterface-3.5.13_p1183278/work/tqtinterface/qtinterface/tqaccessible.cpp:23: /usr/qt/3/include/qobject.h:105: error: 'const QObjectList QObject::children() const' cannot be overloaded /usr/qt/3/include/qobject.h:103: error: with 'const QObjectList* QObject::children() const'
-- Serghei
Yes, that would be a good idea for the time being. I will try to properly address the build failures with Qt3 soon.
Tim
On Saturday 08 January 2011 00:13:55 Timothy Pearson wrote:
[...]
OK, I submitted a temporary patch to tqtinterface that will fix the build failure for now. The underlying problem will need to be addressed later on.
Tim
I think I must revert to vanilla Qt3, without tqtinterface compatibility:
[ 1%] Building CXX object CMakeFiles/tqt.dir/qtinterface/tqaccessible.cpp.o In file included from /usr/qt/3/include/qaccessible.h:43,
from /var/tmp/portage/kde-base/tqtinterface-3.5.13_p1183278/work/tqtinterface/qtinterface/tqaccessible.h:32,
from /var/tmp/portage/kde-base/tqtinterface-3.5.13_p1183278/work/tqtinterface/qtinterface/tqaccessible.cpp:23: /usr/qt/3/include/qobject.h:105: error: 'const QObjectList QObject::children() const' cannot be overloaded /usr/qt/3/include/qobject.h:103: error: with 'const QObjectList* QObject::children() const'
-- Serghei
Yes, that would be a good idea for the time being. I will try to properly address the build failures with Qt3 soon.
Tim
Serghei,
Can you try a Qt3 build with the attached patch and a recent SVN checkout of tqtinterface? I think the build problem might be fixed.
Thanks!
Tim
On Saturday 08 January 2011 06:33:18 Timothy Pearson wrote: [...]
Can you try a Qt3 build with the attached patch and a recent SVN checkout of tqtinterface? I think the build problem might be fixed.
Seems fine with this patch, I built tqtinterface and kdelibs without problem.