Recent

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

Fred vS

  • Hero Member
  • *****
  • Posts: 1675
    • miXimum is the DJ's 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 1.8.0 32/64 and FPC 3.0.3 32/64 on Linux Mint Mate 17 32/64, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs

Blaazen

  • Hero Member
  • *****
  • Posts: 2782
  • 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.1.0 r61214:62238 FPC 3.3.1 r40507 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: 1675
    • miXimum is the DJ's 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 1.8.0 32/64 and FPC 3.0.3 32/64 on Linux Mint Mate 17 32/64, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs