【求助】编译dde-control-center出错

神末SuperEnde... 2人参与 0 次点击

/home/deepin/Downloads/dde-control-center-master/src/frame/modules/accounts/accountsworker.cpp: In member function ‘void dcc::accounts::AccountsWorker::addUser(const QString&)’:

/home/deepin/Downloads/dde-control-center-master/src/frame/modules/accounts/accountsworker.cpp:248:25: error: ‘PasswordStatusChanged’ is not a member of ‘AccountsUser {aka __User}’

    connect(userInter, &AccountsUser::PasswordStatusChanged, user, &User::setPasswordStatus);

                ^~~~~~~~~~~~

/home/deepin/Downloads/dde-control-center-master/src/frame/modules/accounts/accountsworker.cpp:256:40: error: ‘using AccountsUser = com::deepin::daemon::accounts::User {aka class __User}’ has no member named ‘passwordStatus’

    user->setPasswordStatus(userInter->passwordStatus());

                          ^~~~~~~~~~~~~~

src/frame/CMakeFiles/dde-control-center.dir/build.make:1718: recipe for target ‘src/frame/CMakeFiles/dde-control-center.dir/modules/accounts/accountsworker.cpp.o’ failed

make[2]: *** [src/frame/CMakeFiles/dde-control-center.dir/modules/accounts/accountsworker.cpp.o] Error 1

CMakeFiles/Makefile2:86: recipe for target ‘src/frame/CMakeFiles/dde-control-center.dir/all’ failed

make[1]: *** [src/frame/CMakeFiles/dde-control-center.dir/all] Error 2

Makefile:129: recipe for target ‘all’ failed

make: *** [all] Error 2

    2 讨论 | 直到 2019-07-08 5:06:20
    • 神末SuperEnde...
      1

      顶 来人啊

    • 笑者
      2

      user->setPasswordStatus(userInter->passwordStatus()); 这一句中 user这个对象没有一个setPasswordStatus方法

      检查 user类 中关于setPasswordStatus 的声明和实现