This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Build kdevplatform 1.6.0

Tags: None
(comma "," separated)
simonesneault
Registered Member
Posts
2
Karma
0

Build kdevplatform 1.6.0

Mon Feb 24, 2014 10:20 am
Hi all, i have trouble building kdevplatform from source, against qt4 on kubuntu 13.04, with kde 4.12.2

Here is the output :
Code: Select all
simon@th-dev-2 ~/P/k/build> make
[  0%] Built target sublime_automoc
[  0%] Built target sublime
[  0%] Built target example1_automoc
[  0%] Built target example1
[  0%] Built target example2_automoc
[  1%] Built target example2
[  1%] Built target sublime-aggregatemodeltest_automoc
[  1%] Built target kdevplatforminterfaces_automoc
[  2%] Built target kdevplatforminterfaces
[  2%] Built target kdevplatformproject_automoc
[  2%] Built target kdevplatformutil_automoc
[  2%] Built target kdevplatformutil
[  2%] Built target kdevplatformlanguage_automoc
[  2%] Building CXX object language/CMakeFiles/kdevplatformlanguage.dir/kdevplatformlanguage_final_cpp.cpp.o
In file included from /home/simon/Playground/kdevplatform-1.6.0/util/google/sparsehash/densehashtable.h:100:0,
                 from /home/simon/Playground/kdevplatform-1.6.0/util/google/dense_hash_map:104,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/duchain/duchain.cpp:45,
                 from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:15:
/home/simon/Playground/kdevplatform-1.6.0/util/google/sparsehash/hashtable-common.h: In function ‘bool google::sparsehash_internal::read_bigendian_number(INPUT*, IntType*, size_t)’:
/home/simon/Playground/kdevplatform-1.6.0/util/google/sparsehash/hashtable-common.h:167:29: warning: typedef ‘serializing_int_requires_an_unsigned_type’ locally defined but not used [-Wunused-local-typedefs]
                             serializing_int_requires_an_unsigned_type);
                             ^
/home/simon/Playground/kdevplatform-1.6.0/util/google/sparsehash/hashtable-common.h:54:49: note: in definition of macro ‘SPARSEHASH_COMPILE_ASSERT’
   typedef SparsehashCompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
                                                 ^
/home/simon/Playground/kdevplatform-1.6.0/util/google/sparsehash/hashtable-common.h: In function ‘bool google::sparsehash_internal::write_bigendian_number(OUTPUT*, IntType, size_t)’:
/home/simon/Playground/kdevplatform-1.6.0/util/google/sparsehash/hashtable-common.h:180:29: warning: typedef ‘serializing_int_requires_an_unsigned_type’ locally defined but not used [-Wunused-local-typedefs]
                             serializing_int_requires_an_unsigned_type);
                             ^
/home/simon/Playground/kdevplatform-1.6.0/util/google/sparsehash/hashtable-common.h:54:49: note: in definition of macro ‘SPARSEHASH_COMPILE_ASSERT’
   typedef SparsehashCompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
                                                 ^
In file included from /usr/include/qt4/QtCore/QObject:1:0,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/editor/persistentmovingrangeprivate.h:24,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/editor/persistentmovingrangeprivate.cpp:21,
                 from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:2:
/usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h: At global scope:
/usr/include/qt4/QtCore/qobject.h:398:64: warning: ‘CodeCompletionModelControllerInterface’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:70) [-Wdeprecated-declarations]
     template <> inline const char *qobject_interface_iid<IFace *>() \
                                                                ^
/usr/include/qt4/QtCore/qobject.h:400:50: warning: ‘CodeCompletionModelControllerInterface’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:70) [-Wdeprecated-declarations]
     template <> inline IFace *qobject_cast<IFace *>(QObject *object) \
                                                  ^
/usr/include/qt4/QtCore/qobject.h:400:68: warning: ‘CodeCompletionModelControllerInterface’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:70) [-Wdeprecated-declarations]
     template <> inline IFace *qobject_cast<IFace *>(QObject *object) \
                                                                    ^
/usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h: In function ‘T qobject_cast(QObject*) [with T = KTextEditor::CodeCompletionModelControllerInterface*]’:
/usr/include/qt4/QtCore/qobject.h:401:37: warning: ‘CodeCompletionModelControllerInterface’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:70) [-Wdeprecated-declarations]
     { return reinterpret_cast<IFace *>((object ? object->qt_metacast(IId) : 0)); } \
                                     ^
/usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h: At global scope:
/usr/include/qt4/QtCore/qobject.h:402:50: warning: ‘CodeCompletionModelControllerInterface’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:70) [-Wdeprecated-declarations]
     template <> inline IFace *qobject_cast<IFace *>(const QObject *object) \
                                                  ^
/usr/include/qt4/QtCore/qobject.h:402:74: warning: ‘CodeCompletionModelControllerInterface’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:70) [-Wdeprecated-declarations]
     template <> inline IFace *qobject_cast<IFace *>(const QObject *object) \
                                                                          ^
/usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h: In function ‘T qobject_cast(const QObject*) [with T = KTextEditor::CodeCompletionModelControllerInterface*]’:
/usr/include/qt4/QtCore/qobject.h:403:37: warning: ‘CodeCompletionModelControllerInterface’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:70) [-Wdeprecated-declarations]
     { return reinterpret_cast<IFace *>((object ? const_cast<QObject *>(object)->qt_metacast(IId) : 0)); }
                                     ^
/usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h: At global scope:
/usr/include/qt4/QtCore/qobject.h:398:64: warning: ‘CodeCompletionModelControllerInterface2’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:170) [-Wdeprecated-declarations]
     template <> inline const char *qobject_interface_iid<IFace *>() \
                                                                ^
/usr/include/qt4/QtCore/qobject.h:400:50: warning: ‘CodeCompletionModelControllerInterface2’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:170) [-Wdeprecated-declarations]
     template <> inline IFace *qobject_cast<IFace *>(QObject *object) \
                                                  ^
/usr/include/qt4/QtCore/qobject.h:400:68: warning: ‘CodeCompletionModelControllerInterface2’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:170) [-Wdeprecated-declarations]
     template <> inline IFace *qobject_cast<IFace *>(QObject *object) \
                                                                    ^
/usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h: In function ‘T qobject_cast(QObject*) [with T = KTextEditor::CodeCompletionModelControllerInterface2*]’:
/usr/include/qt4/QtCore/qobject.h:401:37: warning: ‘CodeCompletionModelControllerInterface2’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:170) [-Wdeprecated-declarations]
     { return reinterpret_cast<IFace *>((object ? object->qt_metacast(IId) : 0)); } \
                                     ^
/usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h: At global scope:
/usr/include/qt4/QtCore/qobject.h:402:50: warning: ‘CodeCompletionModelControllerInterface2’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:170) [-Wdeprecated-declarations]
     template <> inline IFace *qobject_cast<IFace *>(const QObject *object) \
                                                  ^
/usr/include/qt4/QtCore/qobject.h:402:74: warning: ‘CodeCompletionModelControllerInterface2’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:170) [-Wdeprecated-declarations]
     template <> inline IFace *qobject_cast<IFace *>(const QObject *object) \
                                                                          ^
/usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h: In function ‘T qobject_cast(const QObject*) [with T = KTextEditor::CodeCompletionModelControllerInterface2*]’:
/usr/include/qt4/QtCore/qobject.h:403:37: warning: ‘CodeCompletionModelControllerInterface2’ is deprecated (declared at /usr/include/ktexteditor/codecompletionmodelcontrollerinterface.h:170) [-Wdeprecated-declarations]
     { return reinterpret_cast<IFace *>((object ? const_cast<QObject *>(object)->qt_metacast(IId) : 0)); }
                                     ^
In file included from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:110:0:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp: At global scope:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:82:13: error: cannot declare field ‘KDevelop::TemplateRendererPrivate::context’ to be of abstract type ‘KDevelop::Context’
     Context context;
             ^
In file included from /home/simon/Playground/kdevplatform-1.6.0/language/interfaces/codecontext.h:34:0,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/interfaces/editorcontext.h:25,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/interfaces/editorcontext.cpp:22,
                 from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:88:
/home/simon/Playground/kdevplatform-1.6.0/interfaces/context.h:90:37: note:   because the following virtual functions are pure within ‘KDevelop::Context’:
 class KDEVPLATFORMINTERFACES_EXPORT Context
                                     ^
/home/simon/Playground/kdevplatform-1.6.0/interfaces/context.h:106:17: note:    virtual int KDevelop::Context::type() const
     virtual int type() const = 0;
                 ^
/home/simon/Playground/kdevplatform-1.6.0/interfaces/context.h: In constructor ‘KDevelop::TemplateRendererPrivate::TemplateRendererPrivate()’:
/home/simon/Playground/kdevplatform-1.6.0/interfaces/context.h:114:5: error: ‘KDevelop::Context::Context()’ is protected
     Context();
     ^
In file included from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:110:0:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:78:7: error: within this context
 class TemplateRendererPrivate
       ^
In file included from /home/simon/Playground/kdevplatform-1.6.0/language/interfaces/codecontext.h:34:0,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/interfaces/editorcontext.h:25,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/interfaces/editorcontext.cpp:22,
                 from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:88:
/home/simon/Playground/kdevplatform-1.6.0/interfaces/context.h:117:13: error: ‘virtual KDevelop::Context::~Context()’ is protected
     virtual ~Context();
             ^
In file included from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:110:0:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:78:7: error: within this context
 class TemplateRendererPrivate
       ^
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp: In constructor ‘KDevelop::TemplateRenderer::TemplateRenderer()’:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:90:13: note: synthesized method ‘KDevelop::TemplateRendererPrivate::TemplateRendererPrivate()’ first required here
     : d(new TemplateRendererPrivate)
             ^
In file included from /home/simon/Playground/kdevplatform-1.6.0/language/interfaces/codecontext.h:34:0,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/interfaces/editorcontext.h:25,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/interfaces/editorcontext.cpp:22,
                 from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:88:
/home/simon/Playground/kdevplatform-1.6.0/interfaces/context.h: In destructor ‘KDevelop::TemplateRendererPrivate::~TemplateRendererPrivate()’:
/home/simon/Playground/kdevplatform-1.6.0/interfaces/context.h:117:13: error: ‘virtual KDevelop::Context::~Context()’ is protected
     virtual ~Context();
             ^
In file included from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:110:0:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:78:7: error: within this context
 class TemplateRendererPrivate
       ^
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp: In destructor ‘virtual KDevelop::TemplateRenderer::~TemplateRenderer()’:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:98:12: note: synthesized method ‘KDevelop::TemplateRendererPrivate::~TemplateRendererPrivate()’ first required here
     delete d;
            ^
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp: In member function ‘void KDevelop::TemplateRenderer::addVariables(const QVariantHash&)’:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:107:20: error: ‘class KDevelop::Context’ has no member named ‘insert’
         d->context.insert(it.key(), it.value());
                    ^
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp: In member function ‘void KDevelop::TemplateRenderer::addVariable(const QString&, const QVariant&)’:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:113:16: error: ‘class KDevelop::Context’ has no member named ‘insert’
     d->context.insert(name, value);
                ^
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp: In member function ‘QVariantHash KDevelop::TemplateRenderer::variables() const’:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:118:23: error: ‘class KDevelop::Context’ has no member named ‘stackHash’
     return d->context.stackHash(0);
                       ^
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp: In member function ‘QString KDevelop::TemplateRenderer::render(const QString&, const QString&) const’:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:162:35: error: no matching function for call to ‘Grantlee::TemplateImpl::render(NoEscapeStream*, KDevelop::Context*)’
     t->render(&stream, &d->context);
                                   ^
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:162:35: note: candidates are:
In file included from /usr/include/grantlee/templateloader.h:24:0,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/codegen/archivetemplateloader.h:23,
                 from /home/simon/Playground/kdevplatform-1.6.0/language/codegen/templateclassgenerator.cpp:21,
                 from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:107:
/usr/include/grantlee/template.h:98:19: note: virtual QString Grantlee::TemplateImpl::render(Grantlee::Context*)
   virtual QString render( Context *c );
                   ^
/usr/include/grantlee/template.h:98:19: note:   candidate expects 1 argument, 2 provided
/usr/include/grantlee/template.h:104:25: note: virtual Grantlee::OutputStream* Grantlee::TemplateImpl::render(Grantlee::OutputStream*, Grantlee::Context*)
   virtual OutputStream* render( OutputStream *stream, Context *c );
                         ^
/usr/include/grantlee/template.h:104:25: note:   no known conversion for argument 2 from ‘KDevelop::Context*’ to ‘Grantlee::Context*’
In file included from /home/simon/Playground/kdevplatform-1.6.0/build/language/kdevplatformlanguage_final_cpp.cpp:110:0:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp: In member function ‘QStringList KDevelop::TemplateRenderer::render(const QStringList&) const’:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:275:28: error: ‘class KDevelop::Context’ has no member named ‘stackHash’
     kDebug() << d->context.stackHash(0);
                            ^
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp: In member function ‘QVariantHash KDevelop::TemplateRenderer::variables() const’:
/home/simon/Playground/kdevplatform-1.6.0/language/codegen/templaterenderer.cpp:119:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
cc1plus: some warnings being treated as errors
make[2]: *** [language/CMakeFiles/kdevplatformlanguage.dir/kdevplatformlanguage_final_cpp.cpp.o] Erreur 1
make[1]: *** [language/CMakeFiles/kdevplatformlanguage.dir/all] Erreur 2
make: *** [all] Erreur 2


Anyone has a clue ?

Just want to build kdevplatform to get svn integration running again.

Thanks in advance
Simon
User avatar
kfunk
KDE Developer
Posts
53
Karma
0
OS

Re: Build kdevplatform 1.6.0

Mon Feb 24, 2014 10:56 am
I've just pushed a fix to the 1.6 branch: http://commits.kde.org/kdevplatform/ec8 ... 440086f4cf

It's odd that this breaks for you while we don't have any reports about compilation errors in this file so far. Anyway, this patch makes it more explicit.

Can you check if that fixes it for you?
simonesneault
Registered Member
Posts
2
Karma
0

Re: Build kdevplatform 1.6.0

Mon Feb 24, 2014 11:28 am
Yep the patch is working for me, and does fix the build ! Thanks !
Don't know why it breaks only here, I'm using gcc 4.8.1, on Kubuntu 13.10 (was mistaken), with kde libs 4.12.2, Qt 4.8.6
Thanks Anyway
Simon


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]