Re: KNotifications usage

2021-04-04 Thread Corentin BACQUÉ-CAZENAVE
I can't do that because I use QMake instead of CMake. I tried QT += 
KNotifications, but QT return an error unknown project.


Corentin (certifié Expert NVDA 2019) :

 * Sites Web
 o ProgAccess 
 o NVDA-FR 
 * Réseaux sociaux
 o Twitter : @Oreonan_ 
 o Discord : Oreonan#4463
 o Messenger : corentin.bacquecazenave
   
 o Snapchat : cbc33000 
 o Facebook : corentin.bacquecazenave
   
 o Instagram : @Oreonan 

Le 04/04/2021 à 11:34, David Faure a écrit :

On dimanche 4 avril 2021 10:28:37 CEST Corentin BACQUÉ-CAZENAVE wrote:

I tried to include knotification.h in my project, but I've an error
because knotification_export.h is not found.

Do you link to KF5::Notifications?

Linking to a target brings in the include dirs, that's the modern cmake way.

Of course before that you need
 find_package(KF5Notifications CONFIG REQUIRED)



KNotifications usage

2021-04-04 Thread Corentin BACQUÉ-CAZENAVE

Hi,

I'm currently trying to integrate KNotifications in my project, I readed 
the documentation but I, unfortunately, not really understand how this 
lib works.


I tried to include knotification.h in my project, but I've an error 
because knotification_export.h is not found.


I don't find knotification_export.h in source files, I tried to build 
using CMakeLists.txt in src files, but it's required ECM, and I don't 
understand how to use it with cmake.


I'm working on Windows.

Thanks for your help.

--

Corentin (certifié Expert NVDA 2019) :

 * Sites Web
 o ProgAccess 
 o NVDA-FR 
 * Réseaux sociaux
 o Twitter : @Oreonan_ 
 o Discord : Oreonan#4463
 o Messenger : corentin.bacquecazenave
   
 o Snapchat : cbc33000 
 o Facebook : corentin.bacquecazenave
   
 o Instagram : @Oreonan 



Re: KNotifications usage

2021-04-04 Thread David Faure
On dimanche 4 avril 2021 11:38:05 CEST Corentin BACQUÉ-CAZENAVE wrote:
> I can't do that because I use QMake instead of CMake. 

That is unfortunate, all my condoleances :)

> I tried QT +=
> KNotifications, but QT return an error unknown project.

You want to export the QMAKEPATH environment variable so it points to
the install prefix for KF5 (KNotifications specifically, if you installed it 
by hand).

In other words, you want to set QMAKEPATH so that
$QMAKEPATH/mkspecs/modules/qt_KNotifications.pri
exists.

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5





Re: KNotifications usage

2021-04-04 Thread David Faure
On dimanche 4 avril 2021 10:28:37 CEST Corentin BACQUÉ-CAZENAVE wrote:
> I tried to include knotification.h in my project, but I've an error
> because knotification_export.h is not found.

Do you link to KF5::Notifications?

Linking to a target brings in the include dirs, that's the modern cmake way.

Of course before that you need 
find_package(KF5Notifications CONFIG REQUIRED) 

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5