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 :(
--
David C. Rankin, J.D.,P.E.