[Kommander-devel] Kommander plugins
Eric Laffoon
eric at kdewebdev.org
Mon Apr 14 12:50:20 EDT 2008
On Monday 14 April 2008 8:50:06 am Andras Mantia wrote:
> 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.
Thanks, I got that on kde-devel too and it now compiles and links.
Unfortunately I have to port some of my recent additions now.
>
[..]
>
> Andras
Now it's building and I wanted to use the same registration. I realized I need
to add a plugin=/path/to/lib to the kommanderrc file. Of course it still
doesn't work, but this is what I observed. In KDE3 I had a libkmdrdatabase.la
and in KDE4 I have libkmdrdatabase.so. While I know the fundamental
difference between these two files I'm not sure of system requirements and
not nearly as sure as I used to be why to choose one. I'm thinking I need to
change something in CMakeLists.txt?
Currently running a file with a database plugin gives me a dialog error "Line
7: expected variable" and of course that is the connect line. Oddly I cannot
seem to echo the file contents for connect so I can't confirm if other things
are working. I can also note the following:
1) & shows up in tabs on tabwidget
2) Two DatePickers top and bottom in a layout seem to squish the bottom one
3) I'm getting errors in signals and slots... (I guess I could take a look,
where is that code again?)
eric at localhost:~$ kommander khmaster/resources.kmdr
kommander(21497)/kdecore (KLocale) KLocalePrivate::initEncoding: Defaulting
to ISO 8859-1 encoding.
kommander(21497)/kdecore (KLibLoader) findLibraryInternal: plugins should not
have a 'lib' prefix: "libkommanderwidgets.so"
kommander(21497)/kdecore (KLibLoader) findLibraryInternal:
library "libkommanderwidgets.so" not found under 'module' but under 'lib'
kommander(21497) KommanderFactory::loadConnections: CONNECTION FAILED: Signal:
Table . "valueChanged(int,int)" Slot: ScriptObject . "execute(int,int)"
kommander(21497) KommanderFactory::loadConnections: No
signal: "valueChanged(int,int)" in object Table(0x73f540, name
= "TablePurchase")
kommander(21497) KommanderFactory::loadConnections: CONNECTION FAILED: Signal:
ListBox . "doubleClicked(QListBoxItem*)" Slot: ScriptObject . "execute()"
kommander(21497) KommanderFactory::loadConnections: No
signal: "doubleClicked(QListBoxItem*)" in object ListBox(0x722ac0, name
= "ListBoxSuppliers")
knotify(21457) KNotify::event: 2 ref= 0
kommander(21497)/kdeui (KNotification) KNotification::slotReceivedId: 0
kommander(21497)/kdeui (KNotification) KNotification::~KNotification: 0
eric at localhost:~$ kommander khmaster/resources.kmdr
kommander(21516)/kdecore (KLocale) KLocalePrivate::initEncoding: Defaulting
to ISO 8859-1 encoding.
kommander(21516)/kdecore (KLibLoader) findLibraryInternal: plugins should not
have a 'lib' prefix: "libkommanderwidgets.so"
kommander(21516)/kdecore (KLibLoader) findLibraryInternal:
library "libkommanderwidgets.so" not found under 'module' but under 'lib'
kommander(21516) KommanderFactory::loadConnections: CONNECTION FAILED: Signal:
Table . "valueChanged(int,int)" Slot: ScriptObject . "execute(int,int)"
kommander(21516) KommanderFactory::loadConnections: No
signal: "valueChanged(int,int)" in object Table(0x73f540, name
= "TablePurchase")
kommander(21516) KommanderFactory::loadConnections: CONNECTION FAILED: Signal:
ListBox . "doubleClicked(QListBoxItem*)" Slot: ScriptObject . "execute()"
kommander(21516) KommanderFactory::loadConnections: No
signal: "doubleClicked(QListBoxItem*)" in object ListBox(0x722ac0, name
= "ListBoxSuppliers")
knotify(21457) KNotify::event: 3 ref= 0
kommander(21516)/kdeui (KNotification) KNotification::slotReceivedId: 0
kommander(21516)/kdeui (KNotification) KNotification::~KNotification: 0
eric at localhost:~$ kommander khmaster/resources.kmdr
kommander(21521)/kdecore (KLocale) KLocalePrivate::initEncoding: Defaulting
to ISO 8859-1 encoding.
kommander(21521)/kdecore (KLibLoader) findLibraryInternal: plugins should not
have a 'lib' prefix: "libkommanderwidgets.so"
kommander(21521)/kdecore (KLibLoader) findLibraryInternal:
library "libkommanderwidgets.so" not found under 'module' but under 'lib'
kommander(21521) KommanderFactory::loadConnections: CONNECTION FAILED: Signal:
Table . "valueChanged(int,int)" Slot: ScriptObject . "execute(int,int)"
kommander(21521) KommanderFactory::loadConnections: No
signal: "valueChanged(int,int)" in object Table(0x73f540, name
= "TablePurchase")
kommander(21521) KommanderFactory::loadConnections: CONNECTION FAILED: Signal:
ListBox . "doubleClicked(QListBoxItem*)" Slot: ScriptObject . "execute()"
kommander(21521) KommanderFactory::loadConnections: No
signal: "doubleClicked(QListBoxItem*)" in object ListBox(0x722ac0, name
= "ListBoxSuppliers")
knotify(21457) KNotify::event: 4 ref= 0
kommander(21521)/kdeui (KNotification) KNotification::slotReceivedId: 0
kommander(21521)/kdeui (KNotification) KNotification::~KNotification: 0
eric at localhost:~$ kommander khmaster/resources.kmdr
kommander(21604)/kdecore (KLocale) KLocalePrivate::initEncoding: Defaulting
to ISO 8859-1 encoding.
kommander(21604)/kdecore (KLibLoader) findLibraryInternal: plugins should not
have a 'lib' prefix: "libkommanderwidgets.so"
kommander(21604)/kdecore (KLibLoader) findLibraryInternal:
library "libkommanderwidgets.so" not found under 'module' but under 'lib'
kommander(21604) KommanderFactory::loadConnections: CONNECTION FAILED: Signal:
Table . "valueChanged(int,int)" Slot: ScriptObject . "execute(int,int)"
kommander(21604) KommanderFactory::loadConnections: No
signal: "valueChanged(int,int)" in object Table(0x73f540, name
= "TablePurchase")
kommander(21604) KommanderFactory::loadConnections: CONNECTION FAILED: Signal:
ListBox . "doubleClicked(QListBoxItem*)" Slot: ScriptObject . "execute()"
kommander(21604) KommanderFactory::loadConnections: No
signal: "doubleClicked(QListBoxItem*)" in object ListBox(0x722ac0, name
= "ListBoxSuppliers")
knotify(21457) KNotify::event: 5 ref= 0
kommander(21604)/kdeui (KNotification) KNotification::slotReceivedId: 0
kommander(21604)/kdeui (KNotification) KNotification::~KNotification: 0
--
Eric Laffoon
Project Lead - kdewebdev module
More information about the Kommander-devel
mailing list