[Kde-finance-apps] Re: Errors while running tests

Thomas Baumgart thb at net-bembel.de
Sat Jul 30 19:42:04 CEST 2011


Hi,

on Saturday 30 July 2011 19:04:01 puneet goyal wrote:

> but Alkinvoice is just the name of the library generated, does it have any
> connection with the alkInvoice class ?
> because i have added the library using ADD_LIBRARY(Alkinvoice alkinvoice)
> and linked it using TARGET_LINK_LIBRARIES( Alkinvoice ), keeping the same
> name in both cases " Alkinvoice ".
> and also i tried it changing the name to AlkInvoice , but still its giving
> the same error

You need to change

target_link_libraries( alkusertest alkimia ${QT_QTCORE_LIBRARY} 
${QT_QTTEST_LIBRARY} )

into

target_link_libraries( alkusertest Alkuser alkimia ${QT_QTCORE_LIBRARY} 
${QT_QTGUI_LIBRARY} ${QT_QTTEST_LIBRARY} )

but that leads to another problem about a missing vtable which I have not yet 
figured out.

> 
> On Sat, Jul 30, 2011 at 8:40 PM, Alvaro Soliverez <asoliverez at kde.org>wrote:
> > Hello Puneet,
> > check you CMakeLists.txt.
> > 
> > Your ADD_LIBRARY statements say Alkinvoice, Alkpayment, etc.
> > 
> > They should be AlkInvoice, etc.
> > 
> > If you see the output of the make statement, it builds all objects,
> > but with a lowercase name. So, then you call AlkInvoice  and it won't
> > find it.
> > 
> > It's the same with all the other classes.
> > 
> > On Sat, Jul 30, 2011 at 10:55 AM, puneet goyal <puneetgoyal08 at gmail.com>
> > 
> > wrote:
> > > Hello,
> > > I am getting the error
> > > /home/puneet/puneet/office/alkimia/payment/backend/alkinvoicetest.cpp:3
> > > 8: undefined reference to `AlkInvoice::AlkInvoice(QObject*)'
> > > where line 38 is
> > > AlkInvoice invoice;
> > > and a lot of other errors popped up bcause of it. I think there is some
> > > linking problem
> > > I have pasted the full output here  http://pastebin.com/mHxrZiDi
> > > or
> > 
> > http://summer-opensource.blogspot.com/2011/07/errors-while-running-tests.
> > html
> > 
> > > Please let me know what could be the possible solution to this.
> > > Thank you
> > > Regards,
> > > Puneet
> > > -----------------------------------------------------------------------
> > > Puneet Goyal
> > > Student of B. Tech. III Year (Software Engineering)
> > > Delhi Technological University, Delhi
> > > -----------------------------------------------------------------------

-- 

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
Having trouble with Windows? Reboot!
Having trouble with Linux? Be root!
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 225 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-finance-apps/attachments/20110730/1845e4e1/attachment.sig 


More information about the Kde-finance-apps mailing list