[Lazarus] qt project compilation failure

patspiper patspiper at gmail.com
Mon Oct 14 14:36:39 CEST 2013


Hi,

I tried to compile an empty project in Lazarus (IDE built with gtk2) 
with qt widgetset, but got the following errors (note the duplication of 
linking):

Hint: Start of reading config file /home/me/.fpc.cfg
Hint: End of reading config file /home/me/.fpc.cfg
Free Pascal Compiler version 2.6.3 [2013/10/08] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling /tmp/project1.lpr
Compiling unit1.pas
Compiling resource lib/i386-linux/project1.or
Linking /tmp/project1
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
lazarus-svn/lcl/units/i386-linux/qt/qtint.o: In function 
`TQTWIDGETSET__APPINIT':
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:230: undefined reference to 
`QApplication_hook_hook_commitDataRequest'
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:232: undefined reference to 
`QApplication_hook_hook_saveStateRequest'
lazarus-svn/lcl/units/i386-linux/qt/qtint.o: In function 
`TQTWIDGETSET__SLOTCOMMITDATAREQUEST':
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:957: undefined reference to 
`QSessionManager_allowsInteraction'
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:965: undefined reference to 
`QSessionManager_cancel'
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:974: undefined reference to 
`QSessionManager_release'
project1.lpr(20,1) Error: Error while linking
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
lazarus-svn/lcl/units/i386-linux/qt/qtint.o: In function 
`TQTWIDGETSET__APPINIT':
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:230: undefined reference to 
`QApplication_hook_hook_commitDataRequest'
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:232: undefined reference to 
`QApplication_hook_hook_saveStateRequest'
lazarus-svn/lcl/units/i386-linux/qt/qtint.o: In function 
`TQTWIDGETSET__SLOTCOMMITDATAREQUEST':
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:957: undefined reference to 
`QSessionManager_allowsInteraction'
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:965: undefined reference to 
`QSessionManager_cancel'
lazarus-svn/lcl/interfaces/./qt/qtobject.inc:974: undefined reference to 
`QSessionManager_release'
project1.lpr(20,1) Error: Error while linking
project1.lpr(20,1) Fatal: There were 1 errors compiling module, stopping

What am I doing wrong?

Thanks,
Stephano




More information about the Lazarus mailing list