[Qt] Link failure (undefined reference to `QFileDialog_selectFilter')
zeljko
zeljko at holobit.net
Tue Dec 20 20:05:56 CET 2011
On Tuesday 20 of December 2011 13:29:58 Laird wrote:
> Thanks for the help, zeljko.
>
> > in terminal
> >
> > make bigideclean LCL_PLATFORM=qt
> > make bigide LCL_PLATFORM=qt
> >
> > and it should work (DO NOT ADD USE_QT_45 DEFINE or similar those are not
> > needed), also lazarus trunk is much better then 0.9.30 (a lot of things
> > is fixed, and MDI support is added).
>
> I did that, and when I restarted Lazarus the IDE was Qt instead of GTK,
> however I still couldn't compile a new project with a Qt interface - I
> still got the same linker errors. Any other ideas?
hm, just tried an old fixes_0930 branch and it works.
1.Tools->Configure "Build lazarus". Is there qt widgetset ?
2.Project->Compiler options->Path->Widgetset type ? is it qt ?
Try to rebuild lazarus from ide with Clean+Build ...
>
> > qt4intf isn't used anymore, only libQt4Pas.
> > ln -s libQt4Pas.so.5.2.1 libQt4Pas.so.5.2
> > ln -s libQt4Pas.so.5.2.1 libQt4Pas.so.5
> > ln -s libQt4Pas.so.5.2.1 libQt4Pas.so
> >
> > and it should work.
>
> Unfortunately, it doesn't. I have those symlinks (except that I have
> 5.2.4 instead of 5.2.1) but it doesn't work when I delete the additional
>
> symlink that I created, libqt4intf.so. Then I get the following errors:
> > /usr/bin/ld: warning: link.res contains output sections; did you forget
> > -T? /usr/bin/ld: cannot find -lqt4intf
> > project1.lpr(19,1) Error: Error while linking
> > project1.lpr(19,1) Fatal: There were 1 errors compiling module, stopping
>
> Cheers,
> Laird
>
> _______________________________________________
> Qt mailing list
> Qt at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/qt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/qt/attachments/20111220/f607ccbd/attachment-0002.html>
More information about the Qt
mailing list