Version: (using Devel) Compiler: gcc-Version 4.4.2 (GCC) OS: Linux Installed from: Compiled sources Hi there, on beta1 the "snippets_tng" plugin fails when building. Here is the output: [ 71%] Building CXX object kate/plugins/snippets_tng/editor/CMakeFiles/katesnippetstng_editor.dir/__/lib/dbus_helpers.o /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.cpp:351:4: warning: #warning add handling of conflicts with global names In file included from /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.cpp:20: /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.h:78: warning: unused parameter 'index' In file included from /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.cpp:21: /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:40: error: 'KTextEditor::CodesnippetsCore::SnippetCompletionModel' has not been declared In file included from /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.cpp:21: /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:49: error: 'KTextEditor::CodesnippetsCore::SnippetCompletionModel' has not been declared /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:49: error: non-member function 'const QMetaObject* metaObject()' cannot have cv-qualifier /usr/include/QtCore/qobject.h: In function 'const QMetaObject* metaObject()': /usr/include/QtCore/qobject.h:292: error: 'QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > QObject::d_ptr' is protected /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:51: error: within this context /usr/include/QtCore/qobject.h:292: error: invalid use of non-static data member 'QObject::d_ptr' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:51: error: from this location /usr/include/QtCore/qobject.h:292: error: 'QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > QObject::d_ptr' is protected /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:51: error: within this context /usr/include/QtCore/qobject.h:292: error: invalid use of non-static data member 'QObject::d_ptr' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:51: error: from this location /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: At global scope: /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:54: error: 'KTextEditor::CodesnippetsCore::SnippetCompletionModel' has not been declared /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: In function 'void* qt_metacast(const char*)': /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:58: error: expected type-specifier before 'SnippetCompletionModel' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:58: error: expected '>' before 'SnippetCompletionModel' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:58: error: expected '(' before 'SnippetCompletionModel' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:58: error: 'SnippetCompletionModel' was not declared in this scope /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:58: error: expected primary-expression before '>' token /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:58: error: invalid use of 'this' in non-member function /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:58: error: expected ')' before ';' token /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:60: error: cannot call member function 'virtual void* KTextEditor::CodeCompletionModel2::qt_metacast(const char*)' without object /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: At global scope: /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:63: error: 'KTextEditor::CodesnippetsCore::SnippetCompletionModel' has not been declared /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: In function 'int qt_metacall(QMetaObject::Call, int, void**)': /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:66: error: cannot call member function 'virtual int KTextEditor::CodeCompletionModel2::qt_metacall(QMetaObject::Call, int, void**)' without object /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: At global scope: /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:91: error: 'KTextEditor::CodesnippetsCore::SnippetSelectorModel' has not been declared /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:91: error: redefinition of 'const QMetaObject staticMetaObject' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:40: error: 'const QMetaObject staticMetaObject' previously defined here /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:100: error: 'KTextEditor::CodesnippetsCore::SnippetSelectorModel' has not been declared /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:100: error: non-member function 'const QMetaObject* metaObject()' cannot have cv-qualifier /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: In function 'const QMetaObject* metaObject()': /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:100: error: redefinition of 'const QMetaObject* metaObject()' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:49: error: 'const QMetaObject* metaObject()' previously defined here /usr/include/QtCore/qobject.h:292: error: 'QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > QObject::d_ptr' is protected /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:102: error: within this context /usr/include/QtCore/qobject.h:292: error: invalid use of non-static data member 'QObject::d_ptr' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:102: error: from this location /usr/include/QtCore/qobject.h:292: error: 'QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > QObject::d_ptr' is protected /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:102: error: within this context /usr/include/QtCore/qobject.h:292: error: invalid use of non-static data member 'QObject::d_ptr' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:102: error: from this location /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: At global scope: /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:105: error: 'KTextEditor::CodesnippetsCore::SnippetSelectorModel' has not been declared /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: In function 'void* qt_metacast(const char*)': /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:105: error: redefinition of 'void* qt_metacast(const char*)' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:54: error: 'void* qt_metacast(const char*)' previously defined here /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:109: error: expected type-specifier before 'SnippetSelectorModel' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:109: error: expected '>' before 'SnippetSelectorModel' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:109: error: expected '(' before 'SnippetSelectorModel' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:109: error: 'SnippetSelectorModel' was not declared in this scope /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:109: error: expected primary-expression before '>' token /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:109: error: invalid use of 'this' in non-member function /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:109: error: expected ')' before ';' token /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:110: error: cannot call member function 'virtual void* QAbstractItemModel::qt_metacast(const char*)' without object /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: At global scope: /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:113: error: 'KTextEditor::CodesnippetsCore::SnippetSelectorModel' has not been declared /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc: In function 'int qt_metacall(QMetaObject::Call, int, void**)': /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:113: error: redefinition of 'int qt_metacall(QMetaObject::Call, int, void**)' /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:63: error: 'int qt_metacall(QMetaObject::Call, int, void**)' previously defined here /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.moc:115: error: cannot call member function 'virtual int QAbstractItemModel::qt_metacall(QMetaObject::Call, int, void**)' without object /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.cpp: At global scope: /home/jan/testing/kdesdk/src/kdesdk-4.3.80/kate/plugins/snippets_tng/lib/completionmodel.cpp:168: warning: unused parameter 'view' make[2]: *** [kate/plugins/snippets_tng/editor/CMakeFiles/katesnippetstng_editor.dir/__/lib/completionmodel.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Arch Linux i686, Qt 4.6.0, GCC 4.4.2 and of course everything else thats needed to build KDE :) HTH Jan
Works for me now, could have been some local problem.
I get the same error trying to build kdesdk-4.4.1 using GCC 4.4.3. I get this error on 2 different machines.
I've been having this problem for all of the 4.4.x series, and I just figured out how to get it to build properly. It fails if you do something like: cd kdesdk-4.4.4 cmake . make However, it builds just fine if built from outside of the source tree like: mkdir build cd build cmake ../kdesdk-4.4.4 make
Still happens in 4.6.90 when doing an in-source build - easiest fix is probably to just disallow in-source builds the way kdelibs does.
Yeah not supported, beside, kate now is in own module.
Git commit 9e661c0b261f51980225eade4a7e3f98b2543e9d by Christoph Cullmann. Committed on 11/08/2011 at 15:30. Pushed by cullmann into branch 'master'. forbid in place builds BUG: 217769 M +3 -0 CMakeLists.txt http://commits.kde.org/kate/9e661c0b261f51980225eade4a7e3f98b2543e9d