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

How to using KDE APIs in QT Creator ?

Tags: None
(comma "," separated)
User avatar
metalbrick
Registered Member
Posts
23
Karma
0
OS
I followed the instruction on the website:

http://techbase.kde.org/Development/Tut ... Qt_Creator

and gave a little with KNotification, but got some weird errors:

:-1: error: mainwindow.o: undefined reference to symbol '_Z5ki18nPKc'
/usr/lib/libkdecore.so.5:-1: error: error adding symbols: DSO missing from command line

I think it might be configuration going wrong.

anyone can help ?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Which build system are you using? CMake or QMake?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
metalbrick
Registered Member
Posts
23
Karma
0
OS
bcooksley wrote:Which build system are you using? CMake or QMake?


Thanks for reply, I've already find out the way to solve it,

The tutorial only mentioned adding

LIBS += -lkdeui

but not

LIBS += -lkdecore

to *.pro,

Or might be just I didn't read the manual thoroughly.

Anyway, Thank you.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Okay, I suspected it was something such as that. You're using QMake in this case, which is generally not as well supported (at least in the Qt 4 series).


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

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