Giter Club home page Giter Club logo

Comments (20)

vicr123 avatar vicr123 commented on May 28, 2024

Ahh, thanks. I'll update that as soon as I can. What versions of Akonadi are there? :)

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

There are:

  • libakonadi-dev (doesn't work, have tried it)
  • libkf5akonadi-dev
  • libkf5akonadi-dev-bin
  • libkf5akonadicalendar-dev
  • llibkf5akonadicalendar-dev
  • libkf5akonadimime-dev
  • libkf5akonadinotes-dev
    ...
    more

from theshell.

vicr123 avatar vicr123 commented on May 28, 2024

I think libkf5akonadi-dev should work. I'll also put on the README that if there are KDE 4 and KDE 5 libraries in the repositories, they should get the KDE 5 versions. :)

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

just rerun make with libkf5akonadi-dev but it doesn't work yet.

from theshell.

vicr123 avatar vicr123 commented on May 28, 2024

What error are you getting?

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

thewaveworker.h:30:29: fatal error: akonadi/control.h: No such file or directory

from theshell.

vicr123 avatar vicr123 commented on May 28, 2024

Does /usr/include/KF5/AkonadiCore/control.h exist on your system?

Oh, and thanks for telling me about these depencencies. I'm horrible at tracking them. :)

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

Yes it is there.

from theshell.

vicr123 avatar vicr123 commented on May 28, 2024

OK, I worked it out. Turns out I was using KDE4 PIM libraries rather than KF5.

Could you try opening thewaveworker.h and up the top, near the bottom of the #includes, replace

#include <akonadi/control.h>
#include <akonadi/servermanager.h>
#include <akonadi/session.h>

with
#include <KF5/AkonadiCore/control.h>
#include <KF5/AkonadiCore/servermanager.h>
#include <KF5/AkonadiCore/session.h>

If this works for you, I'll do a commit to fix that up when my Git starts working again. :)

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

Fixed it by changing the include to include <KF5/AkonadiCore/control.h> but there should be a better solution like a soft-link or an option for make.

from theshell.

vicr123 avatar vicr123 commented on May 28, 2024

Cool. I'll commit that change as soon as I am able to. Thanks. :)

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

I figured out some more required libs/packages:

  • libxcb-utils-dev
  • libxcursor-dev
    but now I'm hanging at some different kind of error:
    mainwindow.cpp:607:51: error: no matching function for call to ‘QAction::QAction()’ QAction* action = new QAction();
    btw: can't aur tell you the required build-depencies?

from theshell.

vicr123 avatar vicr123 commented on May 28, 2024

Thanks, I'll take a look. Sorry about all the build issues.

Can you try adding #include <QAction> at the top of mainwindow.h? You are using Qt 5, correct? :)

No, namcap doesn't work for me. :(

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

The error suggested: QAction(QObject *parent) and some more. I tried QAction* action = new QAction(this); which made make work but it hung on start (I also have to install the dependencies made by you). And yes I use Qt 5.

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

Anyway I followed your suggestion and here's the full error message (same as before I did change the line):
mainwindow.cpp: In member function ‘void MainWindow::updateMpris()’:
mainwindow.cpp:607:51: error: no matching function for call to ‘QAction::QAction()’
QAction* action = new QAction();
^
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:40:0,
from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMenu:1,
from mainwindow.h:16,
from mainwindow.cpp:1:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:174:5: note: candidate: QAction::QAction(QActionPrivate&, QObject*)
QAction(QActionPrivate &dd, QObject parent);
^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:174:5: note: candidate expects 2 arguments, 0 provided
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:89:5: note: candidate: QAction::QAction(const QIcon&, const QString&, QObject
)
QAction(const QIcon &icon, const QString &text, QObject* parent);
^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:89:5: note: candidate expects 3 arguments, 0 provided
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:88:5: note: candidate: QAction::QAction(const QString&, QObject*)
QAction(const QString &text, QObject* parent);
^~~~~~~
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:88:5: note: candidate expects 2 arguments, 0 provided
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:87:14: note: candidate: QAction::QAction(QObject*)
explicit QAction(QObject* parent);

from theshell.

vicr123 avatar vicr123 commented on May 28, 2024

Can you try QAction* action = new QAction(NULL); please? parent should be an optional parameter, but for some reason your system doesn't like it.

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

I checked the Qt documentation which says it's not optional (might have changed during some versions, I have Qt5.6.1)

from theshell.

vicr123 avatar vicr123 commented on May 28, 2024

Hmm... In my QAction header, I have explicit QAction(QObject *parent = nullptr); Either way, I think I might initialize my QAction objects from now on. (Qt 5.7, but definitely had no problems when I was usinig Qt 5.6) Thanks :)

Does it build now? :)

from theshell.

Maaajaaa avatar Maaajaaa commented on May 28, 2024

Build runs with both the QAction(this) and QAction(NULL).

from theshell.

vicr123 avatar vicr123 commented on May 28, 2024

Thanks. I'll push commits with the changes as soon as I can. :)

from theshell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.