[Qt] Link failure (undefined reference to `QFileDialog_selectFilter')

zeljko zeljko at holobit.net
Tue Dec 20 20:01:25 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?

hmm...that's pretty strange, can you try to create new empty project with 
simple form and 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/4d063235/attachment-0002.html>


More information about the Qt mailing list