[Kommander-devel] Kommander plugins
Andras Mantia
amantia at kde.org
Mon Apr 14 11:50:06 EDT 2008
On Monday 14 April 2008, Eric Laffoon wrote:
> The problem is just misleading. I link to kommandercore and
> everything builds, but then I get an error for every reference to an
> sql class, but in linking.
Does it compile references about the QSql* classes when you link your
plugin using them? This does not ANYTHING to do with kommandercore.
You have to link your code against libQtSql.
Add ${QT_QTSQL_LIBRARY} to target_link_libraries.
This isn't different as in KDE3, just that there you added the library
to Makefile.am, now you add to CMakeList.txt.
What is different that in KDE3/Kommander 1.x you had to use:
libkmdrdatabase_la_LIBADD = -lkommanderwidget -lkommanderplugin
While now you need to add only one library:
TARGET_LINK_LIBRARIES(
your_lib_name
kommandercore
other dependency libs
)
What has changes is Qt itself. Instead of one big Qt library (libqt-mt),
you have many libraries for different classes (modules), like core,
gui, sql, etc.
Andras
--
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail01.fortunecookiestudios.com/pipermail/kommander-devel/attachments/20080414/b094add4/attachment.pgp
More information about the Kommander-devel
mailing list