[Qt] Link failure (undefined reference to `QFileDialog_selectFilter')
Laird
lairdshaw77 at gmail.com
Wed Dec 21 02:43:38 CET 2011
On 21/12/11 06:05, zeljko wrote:
> 1.Tools->Configure "Build lazarus". Is there qt widgetset ?
Yes.
> 2.Project->Compiler options->Path->Widgetset type ? is it qt ?
Yes.
> Try to rebuild lazarus from ide with Clean+Build ...
I tried and it errored out with the same error whilst trying to build
the examples:
> /usr/share/lazarus/lcl/interfaces/qt/qt43.pas(797,25) Note: Values in enumeration types have to be ascending
> /usr/share/lazarus/lcl/interfaces/qt/qt43.pas(9850,37) Note: Values in enumeration types have to be ascending
> /usr/share/lazarus/lcl/interfaces/qt/qt43.pas(10738,32) Note: Values in enumeration types have to be ascending
> /usr/share/lazarus/lcl/interfaces/qt/qtobjects.pas(700,4) Note: User defined: TODO: make TQTImage a TQtResource
> /usr/share/lazarus/lcl/interfaces/qt/qtobjects.pas(2650,6) Note: User defined: workaround - possible qt4 bug with QPainter & RGB32 images.
> /usr/share/lazarus/lcl/interfaces/qt/qtcaret.pas(384,4) Note: User defined: TEmulatedCaret.Lock() remove this routine later, after testing on all platforms
> /usr/share/lazarus/lcl/interfaces/qt/qtcaret.pas(392,4) Note: User defined: TEmulatedCaret.UnLock() remove this routine later, after testing on all platforms
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(2133,4) Note: User defined: this is workaround for Qt bug which reports wrong keys with Shift+Ctrl pressed. Fixes #13450. LAST REVISION: Qt-4.5.2 git snapshot 20090607. zeljko
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(2831,4) Note: User defined: Check this with next qt version (>4.3.4)
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(4090,6) Note: User defined: there's a bug with QFontMetrics_width() & QFontMetrics_height() on MacOSX (qt-4.3,qt-4.4) so we must increase PrefW & PrefH for some reasonable value.
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(5518,4) Note: User defined: implement
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(5564,4) Note: User defined: implement
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(5574,4) Note: User defined: implement
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(5806,6) Note: User defined: we can remove QLCLTabWidget, and get it like StackWidget, objectName is qt_tabwidget_tabbar.
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(7484,4) Note: User defined: QSizeH implementation missing for this
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(7490,4) Note: User defined: QSizeH implementation missing for this
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(7511,4) Note: User defined: QSizeH implementation missing for this
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(7517,4) Note: User defined: QSizeH implementation missing for this
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas(9369,6) Note: User defined: this call avoid sporadic AVs with QLCLItemDelegate_destroy(FNewDelegate).
> /usr/share/lazarus/lcl/interfaces/qt/qtwscomctrls.pp(781,4) Note: User defined: review - must add item into header before adding image ...
> /usr/share/lazarus/lcl/interfaces/qt/qtwscomctrls.pp(851,4) Note: User defined: FIXME workaround issue #9746
> /usr/share/lazarus/lcl/interfaces/qt/qtwscomctrls.pp(1238,6) Note: User defined: for proper implementation of all TSortType we have to implement item sorting roles. if QtTreeWidget.Header.sortIndicatorOrder = QtDescendingOrder then QtTreeWidget.sortItems(AColumn, QtAscendingOrder) else QtTreeWidget.sortItems(AColum
> /usr/share/lazarus/lcl/interfaces/qt/qtwsdialogs.pp(341,3) Note: Local variable "selectedFilter" not used
> /usr/share/lazarus/lcl/interfaces/qt/qtwsdialogs.pp(342,3) Note: Local variable "saveFileName" is assigned but never used
> /usr/share/lazarus/lcl/interfaces/qt/qtwsdialogs.pp(342,17) Note: Local variable "saveTitle" is assigned but never used
> /usr/share/lazarus/lcl/interfaces/qt/qtwsdialogs.pp(342,28) Note: Local variable "saveFilter" not used
> /usr/share/lazarus/lcl/interfaces/qt/qtwsdialogs.pp(347,3) Note: Local variable "Flags" not used
> /usr/share/lazarus/lcl/interfaces/qt/qtwsdialogs.pp(532,15) Note: Local variable "saveFileName" is assigned but never used
> /usr/share/lazarus/lcl/interfaces/qt/qtwsdialogs.pp(532,29) Note: Local variable "saveTitle" is assigned but never used
> /usr/share/lazarus/lcl/interfaces/qt/qtwsstdctrls.pp(504,4) Note: User defined: implement
> /usr/share/lazarus/lcl/interfaces/qt/qtwsstdctrls.pp(1242,4) Note: User defined: implement
> /usr/share/lazarus/lcl/interfaces/qt/qtwinapi.inc(1447,5) Note: User defined: implement
> /usr/share/lazarus/lcl/interfaces/qt/qtwinapi.inc(4161,3) Note: Local variable "EmptyRegion" not used
> "LCL" completed
> "Package Registration" completed
> "IDE Interface" completed
> "SynEdit" completed
> /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T?
> /usr/share/lazarus/lcl/units/i386-linux/qt/qtwidgets.o: In function `TQTFILEDIALOG__SETSELECTEDFILTER':
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas:9702: undefined reference to `QFileDialog_selectFilter'
> /usr/share/lazarus/lcl/units/i386-linux/qt/qtwidgets.o: In function `TQTFILEDIALOG__GETFILTERS':
> /usr/share/lazarus/lcl/interfaces/qt/qtwidgets.pas:9747: undefined reference to `QFileDialog_filters'
> /usr/share/lazarus/examples/hello.pp(31,1) Error: Error while linking
> /usr/share/lazarus/examples/hello.pp(31,1) Fatal: There were 1 errors compiling module, stopping
Laird
More information about the Qt
mailing list