Compile error at 80% due to KDeclarative?

Kevin Funk kfunk at kde.org
Mon May 14 10:16:47 UTC 2018


On Sunday, 13 May 2018 12:58:46 CEST gregor.mi.sw wrote:
> Hi,
> 
> I compiled KDevelop using kdesrc-build and get this error:
> 
> [ 80%] Building CXX object
> plugins/cmake/CMakeFiles/kdevcmakemanager.dir/duchain/cmakeparsejob.cpp.o [
> 80%] Building CXX object
> plugins/problemreporter/CMakeFiles/kdevproblemreporter.dir/debug.cpp.o [
> 80%] Building CXX object
> plugins/sourceformatter/CMakeFiles/kdevsourceformatter.dir/kdevsourceformatt
> er_autogen/mocs_compilation.cpp.o
> /home/gregor/kde/src/extragear/kdevelop/kdevelop/plugins/welcomepage/welcom
> epageview.cpp: In constructor ‘WelcomePageWidget::WelcomePageWidget(const
> QList<KDevelop::IProject*>&, QWidget*)’:
> /home/gregor/kde/src/extragear/kdevelop/kdevelop/plugins/welcomepage/welcom
> epageview.cpp:55:18: error: ‘class KDeclarative::KDeclarative’ has no member
> named ‘setupEngine’; did you mean ‘setupBindings’?
>       kdeclarative.setupEngine(engine());
>                    ^~~~~~~~~~~
>                    setupBindings
> /home/gregor/kde/src/extragear/kdevelop/kdevelop/plugins/welcomepage/welcome
> pageview.cpp:56:18: error: ‘class KDeclarative::KDeclarative’ has no member
> named ‘setupContext’ kdeclarative.setupContext();
>                    ^~~~~~~~~~~~
> [ 80%] Building CXX object
> plugins/problemreporter/CMakeFiles/kdevproblemreporter.dir/qrc_kdevproblemre
> porter.cpp.o [ 80%] Building CXX object
> plugins/problemreporter/CMakeFiles/kdevproblemreporter.dir/kdevproblemreport
> er_autogen/mocs_compilation.cpp.o gmake[2]: ***
> [plugins/welcomepage/CMakeFiles/kdevwelcomepage.dir/build.make:130:
> plugins/welcomepage/CMakeFiles/kdevwelcomepage.dir/welcomepageview.cpp.o]
> Error 1 gmake[1]: *** [CMakeFiles/Makefile2:24715:
> plugins/welcomepage/CMakeFiles/kdevwelcomepage.dir/all] Error 2
> gmake[1]: *** Waiting for unfinished jobs....
> 
> I rebuild the latest source of dependent modules like KDeclarative with
> kdesrc-build yesterday.

Are you sure KDeclarative is current?

These code paths are all guarded with version checks:
  https://cgit.kde.org/kdevelop.git/commit/?
id=a98b60b03d796e0f194148b503a3f8f1e415042e

E.g. from plugins/welcomepage/welcomepageview.cpp:

```
#if KDECLARATIVE_VERSION >= QT_VERSION_CHECK(5, 45, 0)
    kdeclarative.setupEngine(engine());
    kdeclarative.setupContext();
#else
    kdeclarative.setupBindings();
#endif
```

KDeclarative::setup{Context,Engine}(...) indeed were added in 5.45.0:
  https://phabricator.kde.org/R296:0ecea38b5998b48200748c8e9b9d722062f87719


Regards,
Kevin
 
> Gregor


-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180514/3bbf5442/attachment.sig>


More information about the KDevelop-devel mailing list