Compile errors in kdevelop4-extra-plugins

Álan Crístoffer philippe.hac at gmail.com
Mon Dec 21 16:02:35 GMT 2009


Hi again,
I'm having problems compiling kdevelop4-extra-plugins (all from svn)
I have problems with:


   1. C#: (I don't use, so no problem)
   2. Java: (I don't use, so no problem)
   3. Metrics:
   No idea of what it does, but this is the error:

   [ 17%] Building CXX object
>    metrics/src/CMakeFiles/McCabe.dir/metricengine.o
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/metrics/src/../include/rpp/pp-macro-expander.h:30,
>                     from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/metrics/src/../include/rpp/pp-engine.h:34,
>                     from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/metrics/src/metricengine.cpp:34:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/metrics/src/../include/rpp/pp-stream.h:
>    In member function ‘rpp::Stream& rpp::Stream::operator++()’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/metrics/src/../include/rpp/pp-stream.h:124:
>    error: call of overloaded ‘IndexedString(const unsigned int&)’ is ambiguous
>    /usr/include/kdevplatform/language/duchain/indexedstring.h:144: note:
>    candidates are: KDevelop::IndexedString::IndexedString(bool)
>    /usr/include/kdevplatform/language/duchain/indexedstring.h:61:
>    note:                 KDevelop::IndexedString::IndexedString(const
>    QByteArray&) <near match>
>    /usr/include/kdevplatform/language/duchain/indexedstring.h:58:
>    note:                 KDevelop::IndexedString::IndexedString(const QString&)
>    <near match>
>    /usr/include/kdevplatform/language/duchain/indexedstring.h:55:
>    note:                 KDevelop::IndexedString::IndexedString(char)
>    /usr/include/kdevplatform/language/duchain/indexedstring.h:53:
>    note:                 KDevelop::IndexedString::IndexedString(const char*)
>    <near match>
>    make[2]: *** [metrics/src/CMakeFiles/McCabe.dir/metricengine.o] Error 1
>    make[1]: *** [metrics/src/CMakeFiles/McCabe.dir/all] Error 2
>    make: *** [all] Error 2
>

   4. Preprocessor:
   (don't know what does too, but:)

>    [ 16%] Building CXX object
>    preprocessor/CMakeFiles/kdevpreprocessor.dir/preprocessorplugin.o
>    /home/alan/KDevelop/kdevelop4-extra-plugins/preprocessor/preprocessorplugin.cpp:70:34:
>    error: preprocessorplugin.moc: No such file or directory
>    make[2]: ***
>    [preprocessor/CMakeFiles/kdevpreprocessor.dir/preprocessorplugin.o] Error 1
>    make[1]: *** [preprocessor/CMakeFiles/kdevpreprocessor.dir/all] Error 2
>    make: *** [all] Error 2
>

   5. Python:

   [ 26%] Building CXX object
>    python/CMakeFiles/kdevpythonlanguagesupport.dir/pythonparsejob.o
>    /home/alan/KDevelop/kdevelop4-extra-plugins/python/pythonparsejob.cpp:
>    In constructor ‘Python::ParseJob::ParseJob(const KUrl&,
>    Python::LanguageSupport*)’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/python/pythonparsejob.cpp:62:
>    error: no matching function for call to ‘KDevelop::ParseJob::ParseJob(const
>    KUrl&, Python::LanguageSupport*&)’
>    /usr/include/kdevplatform/language/backgroundparser/parsejob.h:48:
>    note: candidates are: KDevelop::ParseJob::ParseJob(const KUrl&)
>    /usr/include/kdevplatform/language/backgroundparser/parsejob.h:45:
>    note:                 KDevelop::ParseJob::ParseJob(const
>    KDevelop::ParseJob&)
>    make[2]: ***
>    [python/CMakeFiles/kdevpythonlanguagesupport.dir/pythonparsejob.o] Error 1
>    make[1]: *** [python/CMakeFiles/kdevpythonlanguagesupport.dir/all]
>    Error 2
>    make: *** [all] Error 2
>

   6. Ruby:

   [ 21%] Building CXX object
>    ruby/CMakeFiles/kdevrubylanguagesupport.dir/parser/parsesession.o
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:7,
>
>                     from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.h:27,
>
>                     from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:22:
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_ast.h:7:26:
>    error: kdev-pg-list.h: No such file or
>    directory
>
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.h:27,
>
>                     from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:22:
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:8:33:
>    error: kdev-pg-memory-pool.h: No such file or
>    directory
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:9:31:
>    error: kdev-pg-allocator.h: No such file or
>    directory
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:10:34:
>    error: kdev-pg-token-stream.h: No such file or
>    directory
>
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:7,
>
>                     from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.h:27,
>
>                     from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:22:
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_ast.h:1543:
>    error: ISO C++ forbids declaration of ‘list_node’ with no
>    type
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_ast.h:1543:
>    error: expected ‘;’ before ‘<’
>    token
>
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.h:27,
>
>                     from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:22:
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:19:
>    error: ‘kdev_pg_token_stream’ does not name a
>    type
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:20:
>    error: ‘kdev_pg_token_stream’ has not been
>    declared
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:20:
>    error: ISO C++ forbids declaration of ‘token_type’ with no
>    type
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:20:
>    error: typedef name may not be a
>    nested-name-specifier
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:20:
>    error: expected ‘;’ before
>    ‘token_type’
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:21:
>    error: ISO C++ forbids declaration of ‘kdev_pg_token_stream’ with no
>    type
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:21:
>    error: expected ‘;’ before ‘*’
>    token
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:24:
>    error: ‘token_type’ does not name a
>    type
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:41:
>    error: ‘kdev_pg_token_stream’ has not been
>    declared
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:59:
>    error: ‘kdev_pg_memory_pool’ does not name a
>    type
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:61:
>    error: ISO C++ forbids declaration of ‘kdev_pg_memory_pool’ with no
>    type
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:61:
>    error: expected ‘;’ before ‘*’
>    token
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:62:
>    error: ‘kdev_pg_memory_pool’ has not been
>    declared
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:
>    In member function ‘int
>    ruby::parser::yylex()’:
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:31:
>    error: ‘token_stream’ was not declared in this
>    scope
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:
>    In member function ‘void
>    ruby::parser::rewind(size_t)’:
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:36:
>    error: ‘token_stream’ was not declared in this scope
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:
>    In member function ‘void ruby::parser::set_token_stream(int*)’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:43:
>    error: ‘token_stream’ was not declared in this scope
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:
>    In member function ‘void ruby::parser::set_memory_pool(int*)’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:64:
>    error: ‘memory_pool’ was not declared in this scope
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:
>    In member function ‘T* ruby::parser::create()’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:70:
>    error: ‘memory_pool’ was not declared in this scope
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:
>    In constructor ‘ruby::parser::parser()’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:282:
>    error: ‘memory_pool’ was not declared in this scope
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/generated/ruby_parser.h:283:
>    error: ‘token_stream’ was not declared in this scope
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:22:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.h:
>    At global scope:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.h:52:
>    error: type ‘ruby::parser’ is not derived from type ‘ruby::ParseSession’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.h:52:
>    error: expected ‘;’ before ‘*’ token
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.h:53:
>    error: type ‘ruby::parser’ is not derived from type ‘ruby::ParseSession’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.h:53:
>    error: expected ‘;’ before ‘*’ token
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:
>    In constructor ‘ruby::ParseSession::ParseSession()’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:32:
>    error: class ‘ruby::ParseSession’ does not have any field named
>    ‘memory_pool’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:32:
>    error: expected type-specifier
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:32:
>    error: expected ‘)’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:33:
>    error: class ‘ruby::ParseSession’ does not have any field named
>    ‘token_stream’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:33:
>    error: expected type-specifier
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:33:
>    error: expected ‘)’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:
>    In destructor ‘ruby::ParseSession::~ParseSession()’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:39:
>    error: ‘memory_pool’ was not declared in this scope
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:40:
>    error: ‘token_stream’ was not declared in this scope
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:
>    In member function ‘void ruby::ParseSession::positionAt(size_t, size_t*,
>    size_t*) const’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/ruby/parser/parsesession.cpp:45:
>    error: ‘token_stream’ was not declared in this scope
>    make[2]: ***
>    [ruby/CMakeFiles/kdevrubylanguagesupport.dir/parser/parsesession.o] Error 1
>    make[1]: *** [ruby/CMakeFiles/kdevrubylanguagesupport.dir/all] Error 2
>    make: *** [all] Error 2
>

   7. TeamWork:
   Does not compile with a very big log ( errors and warnings ), but I don't
   need it either.

   8. CppUnit:
   (don't know what it does, bu looks cool since I using C++...)

>    [ 41%] Building CXX object
>    cppunit/CMakeFiles/kdevcppunit.dir/testcommand.o
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:21:
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.h:24:26:
>    error: veritas/test.h: No such file or
>    directory
>
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:32:
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:12:2:
>    error: #error "The header file 'testcommand.h' doesn't include
>    <QObject>."
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:13:7:
>    warning: "Q_MOC_OUTPUT_REVISION" is not
>    defined
>
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:21:
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.h:35:
>    error: expected initializer before ‘:’
>    token
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:23:
>    error: ‘Veritas’ has not been
>    declared
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:25:
>    error: ‘TestCommand’ has not been
>    declared
>
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:25:
>    error: ‘Test’ has not been declared
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:25:
>    error: ISO C++ forbids declaration of ‘TestCommand’ with no type
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp: In
>    function ‘int TestCommand(const QString&, int*)’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:26:
>    error: only constructors take base initializers
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:27:
>    warning: no return statement in function returning non-void
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp: At
>    global scope:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:29:
>    error: expected constructor, destructor, or type conversion before ‘::’
>    token
>    In file included from
>    /home/alan/KDevelop/kdevelop4-extra-plugins/cppunit/testcommand.cpp:32:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:40:
>    error: ‘QMetaObject’ does not name a type
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:49:
>    error: expected initializer before ‘*’ token
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:54:
>    error: ‘TestCommand’ is not a class or namespace
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:
>    In function ‘void* qt_metacast(const char*)’:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:58:
>    error: expected type-specifier before ‘TestCommand’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:58:
>    error: expected ‘>’ before ‘TestCommand’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:58:
>    error: expected ‘(’ before ‘TestCommand’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:58:
>    error: expected primary-expression before ‘>’ token
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:58:
>    error: invalid use of ‘this’ in non-member function
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:58:
>    error: expected ‘)’ before ‘;’ token
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:59:
>    error: ‘Veritas’ has not been declared
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:59:
>    error: expected initializer before ‘QMocSuperClass’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:60:
>    error: ‘QMocSuperClass’ has not been declared
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:
>    At global scope:
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:63:
>    error: ‘TestCommand’ is not a class or namespace
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:63:
>    error: ‘QMetaObject’ has not been declared
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:63:
>    error: expected primary-expression before ‘int’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:63:
>    error: expected primary-expression before ‘void’
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:63:
>    error: initializer expression list treated as compound expression
>    /home/alan/KDevelop/kdevelop4-extra-plugins/build/cppunit/testcommand.moc:64:
>    error: expected ‘,’ or ‘;’ before ‘{’ token
>    make[2]: *** [cppunit/CMakeFiles/kdevcppunit.dir/testcommand.o] Error 1
>    make[1]: *** [cppunit/CMakeFiles/kdevcppunit.dir/all] Error 2
>    make: *** [all] Error 2
>

   9. ControlFlowGraph:
   (no idea of what it does either)

   Could not find module FindGraphViz.cmake or a configuration file for
     package GraphViz.

   but GraphViz is installed:

>    alan at Gaspar:~/KDevelop/kdevelop4-extra-plugins/build$ dpkg -l graphviz
>    graphviz-dev libgraphviz-dev
>    Desired=Unknown/Install/Remove/Purge/Hold
>    |
>    Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
>    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
>    ||/ Name
>    Version                                               Description
>
>    +++-=====================================================-=====================================================-==========================================================================================================================
>    ii  graphviz
>    2.20.2-3ubuntu5                                       rich set of graph
>    drawing tools
>    ii  graphviz-dev
>    2.20.2-3ubuntu5                                       transitional package
>    for graphviz-dev rename
>    ii  libgraphviz-dev
>    2.20.2-3ubuntu5                                       graphviz libs and
>    headers against which to build applications
>


I put all the error messages there but I only interested in Python and Ruby
support and the CppUnit thing that I don't know what does but looks useful.
The others are only for notice.

And since I using the svn version I missing GIT support (for projects) and
the blue window in Debug mode that shows the variables values. What do I
need to do get these back?

Thank you
-- 
Álan Crístoffer e Sousa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20091221/70ed9800/attachment.html>


More information about the KDevelop mailing list