Tim,
I think I've found another constructor issue in kdevelop/parts/tools/tools_part.cpp:
[ 45%] Building CXX object parts/tools/CMakeFiles/libkdevtools-module.dir/tools_part.cpp.o cd /home/david/tbld/kdevelop/src/parts/tools && /usr/bin/c++ -Dlibkdevtools_module_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -march=x86-64 -mtune=generic -O2 -pipe -Wno-deprecated -include tqt.h -fPIC -I/home/david/tbld/kdevelop/src/parts/tools -I/home/david/tbld/kdevelop/lib/interfaces -I/home/david/tbld/kdevelop/lib/interfaces/extensions -I/home/david/tbld/kdevelop/lib/util -I/home/david/tbld/kdevelop/parts/tools -I/opt/trinity/include -I/opt/qt/include -I/opt/qt/include/tqt -o CMakeFiles/libkdevtools-module.dir/tools_part.cpp.o -c /home/david/tbld/kdevelop/parts/tools/tools_part.cpp /home/david/tbld/kdevelop/parts/tools/tools_part.cpp: In member function ‘void ToolsPart::startCommand(QString, bool, QString)’: /home/david/tbld/kdevelop/parts/tools/tools_part.cpp:157:61: error: cannot call constructor ‘QString::QString’ directly /home/david/tbld/kdevelop/parts/tools/tools_part.cpp:157:61: error: for a function-style cast, remove the redundant ‘::QString’ make[2]: *** [parts/tools/CMakeFiles/libkdevtools-module.dir/tools_part.cpp.o] Error 1 make[2]: Leaving directory `/home/david/tbld/kdevelop/src' make[1]: *** [parts/tools/CMakeFiles/libkdevtools-module.dir/all] Error 2 make[1]: Leaving directory `/home/david/tbld/kdevelop/src' make: *** [all] Error 2
Let me know if you need anything else.
On 02/16/2011 05:38 PM, David C. Rankin wrote:
Tim,
I think I've found another constructor issue in kdevelop/parts/tools/tools_part.cpp:
[ 45%] Building CXX object parts/tools/CMakeFiles/libkdevtools-module.dir/tools_part.cpp.o cd /home/david/tbld/kdevelop/src/parts/tools && /usr/bin/c++ -Dlibkdevtools_module_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -march=x86-64 -mtune=generic -O2 -pipe -Wno-deprecated -include tqt.h -fPIC -I/home/david/tbld/kdevelop/src/parts/tools -I/home/david/tbld/kdevelop/lib/interfaces -I/home/david/tbld/kdevelop/lib/interfaces/extensions -I/home/david/tbld/kdevelop/lib/util -I/home/david/tbld/kdevelop/parts/tools -I/opt/trinity/include -I/opt/qt/include -I/opt/qt/include/tqt -o CMakeFiles/libkdevtools-module.dir/tools_part.cpp.o -c /home/david/tbld/kdevelop/parts/tools/tools_part.cpp /home/david/tbld/kdevelop/parts/tools/tools_part.cpp: In member function ‘void ToolsPart::startCommand(QString, bool, QString)’: /home/david/tbld/kdevelop/parts/tools/tools_part.cpp:157:61: error: cannot call constructor ‘QString::QString’ directly /home/david/tbld/kdevelop/parts/tools/tools_part.cpp:157:61: error: for a function-style cast, remove the redundant ‘::QString’ make[2]: *** [parts/tools/CMakeFiles/libkdevtools-module.dir/tools_part.cpp.o] Error 1 make[2]: Leaving directory `/home/david/tbld/kdevelop/src' make[1]: *** [parts/tools/CMakeFiles/libkdevtools-module.dir/all] Error 2 make[1]: Leaving directory `/home/david/tbld/kdevelop/src' make: *** [all] Error 2
Let me know if you need anything else.
I think I fixed it:
157 appFrontend->startAppCommand(TQString(), cmdline, false);
But then I hit another bug:
[ 63%] Building CXX object parts/documentation/plugins/qt/CMakeFiles/libdocqtplugin-module.dir/docqtplugin.cpp.o cd /home/david/tbld/kdevelop/src/parts/documentation/plugins/qt && /usr/bin/c++ -Dlibdocqtplugin_module_EXPORTS -DHAVE_CONFIG_H -DUSE_QT3 -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -march=x86-64 -mtune=generic -O2 -pipe -Wno-deprecated -include tqt.h -fPIC -I/home/david/tbld/kdevelop/src/parts/documentation/plugins/qt -I/home/david/tbld/kdevelop/lib/interfaces -I/home/david/tbld/kdevelop/lib/util -I/home/david/tbld/kdevelop/parts/documentation/interfaces -I/opt/trinity/include -I/opt/qt/include -I/opt/qt/include/tqt -o CMakeFiles/libdocqtplugin-module.dir/docqtplugin.cpp.o -c /home/david/tbld/kdevelop/parts/documentation/plugins/qt/docqtplugin.cpp /home/david/tbld/kdevelop/parts/documentation/plugins/qt/docqtplugin.cpp: In member function ‘virtual void DocQtPlugin::autoSetupPlugin()’: /home/david/tbld/kdevelop/parts/documentation/plugins/qt/docqtplugin.cpp:140:23: error: ‘QT_DOCDIR’ was not declared in this scope make[2]: *** [parts/documentation/plugins/qt/CMakeFiles/libdocqtplugin-module.dir/docqtplugin.cpp.o] Error 1 make[2]: Leaving directory `/home/david/tbld/kdevelop/src' make[1]: *** [parts/documentation/plugins/qt/CMakeFiles/libdocqtplugin-module.dir/all] Error 2 make[1]: Leaving directory `/home/david/tbld/kdevelop/src' make: *** [all] Error 2
Scope issues are hopeless for me :(
On Thursday 17 February 2011 01:55:00 David C. Rankin wrote:
[...]
/home/david/tbld/kdevelop/parts/documentation/plugins/qt/docqtplugin.cpp: In member function ‘virtual void DocQtPlugin::autoSetupPlugin()’: /home/david/tbld/kdevelop/parts/documentation/plugins/qt/docqtplugin.cpp:14 0:23: error: ‘QT_DOCDIR’ was not declared in this scope
[...]
This must be fixed in cmake. For now you can pass QT_DOCDIR argument to cmake:
-DQT_DOCDIR="/path/to/qtdocs"
On 02/16/2011 06:01 PM, Serghei Amelian wrote:
On Thursday 17 February 2011 01:55:00 David C. Rankin wrote:
[...]
/home/david/tbld/kdevelop/parts/documentation/plugins/qt/docqtplugin.cpp: In member function ‘virtual void DocQtPlugin::autoSetupPlugin()’: /home/david/tbld/kdevelop/parts/documentation/plugins/qt/docqtplugin.cpp:14 0:23: error: ‘QT_DOCDIR’ was not declared in this scope
[...]
This must be fixed in cmake. For now you can pass QT_DOCDIR argument to cmake:
-DQT_DOCDIR="/path/to/qtdocs"
Ah hah! I knew there was a better way:
I hacked docqtplugin.cpp to get it to build -- but I know that isn't the right place to solve the problem.
void DocQtPlugin::autoSetupPlugin() { char* QT_DOCDIR="/opt/qt/man"; TQString qtDocDir(QT_DOCDIR);
Thank you Serghei! I'll revert my hack and pass the proper variable :)
On 02/16/2011 05:55 PM, David C. Rankin wrote:
I think I fixed it:
157 appFrontend->startAppCommand(TQString(), cmdline, false);
Serghei,
You know this was just a hack of my local copy and somebody will still need to commit it to the svn tree :)
On Thursday 17 February 2011 02:40:52 David C. Rankin wrote:
On 02/16/2011 05:55 PM, David C. Rankin wrote:
I think I fixed it:
157 appFrontend->startAppCommand(TQString(), cmdline, false);
Serghei,
You know this was just a hack of my local copy and somebody will still need to commit it to the svn tree :)
Tomorrow I will try to fix all gcc 4.5 incompatibilities.
On 02/16/2011 06:45 PM, Serghei Amelian wrote:
On Thursday 17 February 2011 02:40:52 David C. Rankin wrote:
On 02/16/2011 05:55 PM, David C. Rankin wrote:
I think I fixed it:
157 appFrontend->startAppCommand(TQString(), cmdline, false);
Serghei,
You know this was just a hack of my local copy and somebody will still need to commit it to the svn tree :)
Tomorrow I will try to fix all gcc 4.5 incompatibilities.
OK,
With the fix above and -DQT_DOCDIR=/opt/qt/man as a cmake argument, kdevelop builds fine:
trinity-kdevelop-1221141-1.0-x86_64.pkg.tar.xz trinity-kdevelop-1221146-1.0-i686.pkg.tar.xz
Great work!
On 02/16/2011 06:59 PM, David C. Rankin wrote:
On 02/16/2011 06:45 PM, Serghei Amelian wrote:
On Thursday 17 February 2011 02:40:52 David C. Rankin wrote:
On 02/16/2011 05:55 PM, David C. Rankin wrote:
I think I fixed it:
157 appFrontend->startAppCommand(TQString(), cmdline, false);
Serghei,
You know this was just a hack of my local copy and somebody will still need to commit it to the svn tree :)
Tomorrow I will try to fix all gcc 4.5 incompatibilities.
OK,
With the fix above and -DQT_DOCDIR=/opt/qt/man as a cmake argument, kdevelop builds fine:
trinity-kdevelop-1221141-1.0-x86_64.pkg.tar.xz trinity-kdevelop-1221146-1.0-i686.pkg.tar.xz
Great work!
kdewebdev builds fine too:
trinity-kdewebdev-1221146-1.0-i686.pkg.tar.xz