Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-10

qt project compilation failure

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

patspiper

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

Reply by email

zeljko
to patspiper
patspiper wrote
What am I doing wrong?

Trunk and 1.0.99 branch uses latest Qt bindings v.2.5, you're using v.2.1, so update your qt bindings and everything will be ok (libQt4Pas). Also, if you use win32, new libQt4Pas.dll is in binaries (svn).

z.

Reply by email

patspiper
to zeljko
zeljko wrote 6 lines
On 10/14/2013 02:36 PM, patspiper wrote: > What am I doing wrong? Trunk and 1.0.99 branch uses latest Qt bindings v.2.5, you're using v.2.1, so update your qt bindings and everything will be ok (libQt4Pas). Also, if you use win32, new libQt4Pas.dll is in binaries (svn).

That did it. Thanks!

Maybe http://wiki.freepascal.org/Qt_Interface needs updating?

Stephano

Reply by email