[Lazarus] How to build Lazarus in Qt?
silvioprog
silvioprog at gmail.com
Sun Oct 16 05:44:16 CEST 2011
Finally, I managed to compile Lazarus to Qt.
All steps:
01. $ cd ~
02. $ wget -c http://users.telenet.be/Jan.Van.hijfte/qtforfpc/bin-qt4pas-V2.1_Qt4.5.3.tar.gz
03. $ tar -zxvf bin-qt4pas-V2.1_Qt4.5.3.tar.gz
04. $ cd bin-qt4pas-V2.1_Qt4.5.3/
05. $ su <your password>
06. # mv libQt4Pas* /usr/local/lib/
07. # ldconfig
08. # ldconfig -p | grep libQt4Pas* (show if .so is installed)
09. # exit
09. $ mv qt4.pas /usr/lib/lazarus/lcl/interfaces/qt/
12. $ cd ~
13. $ rm -rf .lazarus
14. Now compile the LCL for Qt.
First open your normal gtk2 compiled Lazarus.
Then go on the menu "Tools" --> "Configure Build Lazarus".
Set LCL to "clean+build" and everything else to "None".
Now select "Qt" and click on the "Ok" button.
Next go to the menu "Tools" --> "Build Lazarus".
Now the LCL is compiled for Qt.
To compile a project for Qt just select it as the target
widgetset on the Compiler Options dialog.
And start your Lazarus.
See: http://wiki.lazarus.freepascal.org/index.php/Qt_Interface
--
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