Recent

Author Topic: Installing qt lazarus  (Read 1439 times)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 488
Installing qt lazarus
« on: December 17, 2022, 09:14:20 pm »
Hi folks

I described my experience of installing qt-lazarus for windows and linux. Perhaps my experience will be useful to someone.

https://github.com/zoltanleo/fpc_lazarus_notes/blob/main/README_ENG.md#installing_qt_lazarus
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

PierceNg

  • Sr. Member
  • ****
  • Posts: 373
    • SamadhiWeb
Re: Installing qt lazarus
« Reply #1 on: December 18, 2022, 01:24:29 am »
Good write-up, very helpful screenshots. Thanks for sharing.

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Installing qt lazarus
« Reply #2 on: December 18, 2022, 09:28:13 am »
Hi folks

I described my experience of installing qt-lazarus for windows and linux. Perhaps my experience will be useful to someone.

https://github.com/zoltanleo/fpc_lazarus_notes/blob/main/README_ENG.md#installing_qt_lazarus

Nice howto.  Only this:

"If we receive a message:

make: *** No targets specified and no makefile found.  Stop.

this means that the Makefile generation process failed. We will try to repeat the process until it completes successfully."

Such error can be seen when there's already built libQt5(6)Pas and there's nothing to do. Repeating make does not have sense.
So make clean && make is solution in this case.





zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Installing qt lazarus
« Reply #3 on: December 18, 2022, 09:33:41 am »
I've added link to your howto here https://wiki.freepascal.org/Qt5_Interface#Introduction if you don't mind :)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 488
Re: Installing qt lazarus
« Reply #4 on: December 18, 2022, 12:24:16 pm »
Hi folks

I described my experience of installing qt-lazarus for windows and linux. Perhaps my experience will be useful to someone.

https://github.com/zoltanleo/fpc_lazarus_notes/blob/main/README_ENG.md#installing_qt_lazarus

Nice howto.  Only this:

"If we receive a message:

make: *** No targets specified and no makefile found.  Stop.

this means that the Makefile generation process failed. We will try to repeat the process until it completes successfully."

Such error can be seen when there's already built libQt5(6)Pas and there's nothing to do. Repeating make does not have sense.
So make clean && make is solution in this case.

Thank you for your comment.  I will fix it a bit later
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

zoltanleo

  • Sr. Member
  • ****
  • Posts: 488
Re: Installing qt lazarus
« Reply #5 on: December 18, 2022, 12:25:04 pm »
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

dbannon

  • Hero Member
  • *****
  • Posts: 2796
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing qt lazarus
« Reply #6 on: December 18, 2022, 12:25:25 pm »
Nice work zoltanleo. But I have a question, not criticizing in any way, I would just like to understand.

Why would someone want to use a Qt version of Lazarus on Windows ? Lazarus (and Lazarus made apps) comes in a Win32 version and that would integrate nicely for a Windows user ? Maybe you should say why using Qt5 is an advantage ?

Is there some reason, for example, why I should make my app available as a Windows Qt5 app as well as the existing Windows Win32 one ?

One more thing, you have also nicely documented the process of making the libqt5pas library. But maybe you should mention that almost all Linux users can, at present, probably just use their distro provided libraries ?  Not as much fun to make but a lot quicker ....

Code: [Select]
sudo apt install libqt5pas-dev <enter>
it will install the libqt5pas libraries and all the necessary Qt5 libraries too.

And, another thing (sorry) you mention, once all the Linux libraries are sorted out, you run -
Code: [Select]
make bigide
I think you will find that the default is still to make a GTK2 version so it needs to be -
Code: [Select]
make bigide LCL_PLATFORM=qt5 <enter>
Anyway, good job, more documentation is always a good thing !

Davo

edit: missed syntax highlighting
« Last Edit: December 18, 2022, 12:27:00 pm by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

zoltanleo

  • Sr. Member
  • ****
  • Posts: 488
Re: Installing qt lazarus
« Reply #7 on: December 18, 2022, 01:53:50 pm »
Hi Davo

Thanks for the valuable comments. I don't know exactly yet why I am trying to install qt for windows. 

First, the UI is still slightly different from win32. 

Secondly, I wanted to explore the possibility of creating applications with a dark UI theme (you know that with a little magic, this can be done for Lazarus). 

Thirdly, there may not be ready-made libraries for Linux.  Therefore, it is better to control the situation at all stages.

In any case, I appreciate your opinion.  I will correct the original text a bit later.
« Last Edit: December 18, 2022, 01:58:26 pm by zoltanleo »
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

zeljko

  • Hero Member
  • *****
  • Posts: 1596
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Installing qt lazarus
« Reply #8 on: December 18, 2022, 03:31:25 pm »
Nice work zoltanleo. But I have a question, not criticizing in any way, I would just like to understand.

Why would someone want to use a Qt version of Lazarus on Windows ? Lazarus (and Lazarus made apps) comes in a Win32 version and that would integrate nicely for a Windows user ? Maybe you should say why using Qt5 is an advantage ?

I'm using it because in some of my apps I'm using pure Qt stuff inside QtLCL app eg. QPainterPath etc to get same results on all platforms (Linux, MSWin and Mac).

zoltanleo

  • Sr. Member
  • ****
  • Posts: 488
Re: Installing qt lazarus
« Reply #9 on: December 19, 2022, 07:41:17 am »
@zeljko
@dbannon

Thanks for the valuable comments. I corrected the inaccuracies in my notes.
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

dbannon

  • Hero Member
  • *****
  • Posts: 2796
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Installing qt lazarus
« Reply #10 on: December 19, 2022, 08:53:46 am »
Great, I thank you both !
Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018