Recent

Author Topic: [SOLVED] Easy QT install ?  (Read 7749 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
[SOLVED] Easy QT install ?
« on: July 26, 2011, 10:07:01 pm »
Hello everybody.

I use Lazarus for Linux with GTK2.

How must i do to compile the application with QT ?

If i go in project option, i can choose for QT but when i try to compile, lots of error, QT is not installed, etc... :-\

Is it a easy way to compile with QT in a Lazarus GTK2 ?

What must i install ?

Many thanks
« Last Edit: July 26, 2011, 10:50:53 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Easy QT install ?
« Reply #1 on: July 26, 2011, 10:27:29 pm »
The best way is to have some Qt4 (KDE4) based linux distribution. Kubuntu is good choice. And you need Qt4 binding for freepascal. Download them here: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html
Unpack them to /usr/lib .
Install freepascal, lazarus and recompile it for Qt - as you tried. It should work.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Fred vS

  • Hero Member
  • *****
  • Posts: 3158
    • StrumPract is the musicians best friend
Re: Easy QT install ?
« Reply #2 on: July 26, 2011, 10:50:19 pm »
Oops, very simple ;)

http://wiki.lazarus.freepascal.org/Qt_Interface

Quote
For Lazarus 0.9.30 and below

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.

Done.

First feeling :

miXimum GTK2 : 5.1 megas
miXimum Qt : 4.2 megas.  :)

Splash form not shaped with Qt   :(

Now for the run, i gonna test it (see you later).
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018