[Lazarus] How to build Lazarus in Qt?

silvioprog silvioprog at gmail.com
Sun Oct 16 03:18:53 CEST 2011


2011/10/15 silvioprog <silvioprog at gmail.com>:
> Em 15 de outubro de 2011 21:48, silvioprog <silvioprog at gmail.com> escreveu:
>> Hi,
>>
>> What the steps to build my Lazarus to use Qt?
>>
>> My environment:
>>
>> OpenSUSE 11.4 with KDE.
>>
>> Thx.
>
> Sorry, the error is:
>
> # cd /usr/lib/lazarus
> # make PREFIX=/usr clean all LCL_PLATFORM=qt OPT="-dUSE_QT_45"
>
> ...
>
> Compiling projectwizarddlg.pas
> Compiling idecmdline.pas
> Compiling resource ../units/i386-linux/lazarus.or
> Linking ../lazarus
> /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
> /usr/bin/ld: cannot find -lQt4Pas
> lazarus.pp(130,1) Error: Error while linking
> lazarus.pp(130,1) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> make[2]: *** [lazarus] Error 1
> make[2]: Leaving directory `/usr/lib/lazarus/ide'
> make[1]: *** [ide] Error 2
> make[1]: Leaving directory `/usr/lib/lazarus/ide'
> make: *** [ide] Error 2

I solved my problem.

Steps to install:

1. Download http://users.telenet.be/Jan.Van.hijfte/qtforfpc/V2.4/bin-qt4pas-V2.4_Qt4.5.3.tar.gz
2. Unzipp and move all .so to /usr/lib
3. make PREFIX=/usr clean all LCL_PLATFORM=qt OPT="-dUSE_QT_45"

Done!

Thx.

-- 
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
Facebook - <facebook.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
LazWebSolutions - <code.google.com/p/lazwebsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================




More information about the Lazarus mailing list