Recent

Author Topic: [SOLVED] Linux 19.3 32 bit QT5  (Read 5153 times)

petevick

  • Sr. Member
  • ****
  • Posts: 337
[SOLVED] Linux 19.3 32 bit QT5
« on: January 29, 2022, 10:42:32 am »
I'm running a 32 bit Linux 19.3 in a VM, I have Lazarus 2.2 installed, I have installed libqt5pas1 and libqt5pas-dev using sudo apt install. I load a project into Lazarus and set LCLWidgetType to qt5 and F9 to compile. All seems fine until the following error messages...
Code: Pascal  [Select][+][-]
  1. Compile Project, Mode: QT5, Target: QcadUserTheme: Exit code 1, Errors: 3
  2. Error: /home/pete/.lazarus/lib/units/i386-linux/qt5/qtwidgets.o: In function `TQTABSTRACTSPINBOX__SETVALUE':
  3. Error: /usr/share/lazarus/2.2.0/lcl/interfaces/./qt5/qtwidgets.pas:(.text.n_qtwidgets$_$tqttextedit_$__$$_settexthint$ansistring+0x73): undefined reference to `QTextEdit_setPlaceholderText'
  4. QcadUserTheme.lpr(15,36) Error: Error while linking
  5.  
Has anyone any ideas as to what the problem is please ?
« Last Edit: January 29, 2022, 09:01:51 pm by petevick »
Pete Vickerstaff
Linux Mint 21.1 Cinnamon, Lazarus 3.2, FPC 3.2.2

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Linux 19.3 32 bit QT5
« Reply #1 on: January 29, 2022, 11:19:07 am »
19.3 ?  Is that a Linux Mint ?  I cannot remember which Ubuntu its based on but if its 18.04, the distro versions of libqt5pas will not work.

So, please tell us more about your Linux distribution.

Next suggestion, you have installed the official distribution repository packages ?  (Ie not the ones from here).

Its likely you are using Debian packages and Debian like to break Lazarus up into a set of smaller packages. Please make sure you have the Lazarus-QT5 package.

It might be Lazarus-LCL-Qt5 or something similar, you may need to do a bit of a search.  Or start again and get your packages from the Lazarus site and it will all work fine.

https://wiki.freepascal.org/Installing_Lazarus_on_Linux

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

zeljko

  • Hero Member
  • *****
  • Posts: 1591
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Linux 19.3 32 bit QT5
« Reply #2 on: January 29, 2022, 12:19:29 pm »
I'm running a 32 bit Linux 19.3 in a VM, I have Lazarus 2.2 installed, I have installed libqt5pas1 and libqt5pas-dev using sudo apt install. I load a project into Lazarus and set LCLWidgetType to qt5 and F9 to compile. All seems fine until the following error messages...
Code: Pascal  [Select][+][-]
  1. Compile Project, Mode: QT5, Target: QcadUserTheme: Exit code 1, Errors: 3
  2. Error: /home/pete/.lazarus/lib/units/i386-linux/qt5/qtwidgets.o: In function `TQTABSTRACTSPINBOX__SETVALUE':
  3. Error: /usr/share/lazarus/2.2.0/lcl/interfaces/./qt5/qtwidgets.pas:(.text.n_qtwidgets$_$tqttextedit_$__$$_settexthint$ansistring+0x73): undefined reference to `QTextEdit_setPlaceholderText'
  4. QcadUserTheme.lpr(15,36) Error: Error while linking
  5.  
Has anyone any ideas as to what the problem is please ?

Seem that qt5 libs version is < qt5-5.6

zeljko

  • Hero Member
  • *****
  • Posts: 1591
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Linux 19.3 32 bit QT5
« Reply #3 on: January 29, 2022, 01:38:03 pm »
Or you must rebuild libqt5pas by yourself, since distro one is old

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Linux 19.3 32 bit QT5
« Reply #4 on: January 29, 2022, 01:39:30 pm »
Yes, assuming it is Linux Mint 19.3, that just U18.04 under the skin, it has the old version of libq5pas that falls over with things like Tmemo.

You can build your own libqt5pas or use the deb from https://github.com/davidbannon/libqt5pas

But you would be far better updating your OS I am afraid.

And even with newer OS, consider using the official Lazarus install kits rather than the ones from your distro.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

petevick

  • Sr. Member
  • ****
  • Posts: 337
Re: Linux 19.3 32 bit QT5
« Reply #5 on: January 29, 2022, 01:56:31 pm »
Thanks for the replies, I appreciate it.

You can build your own libqt5pas or use the deb from https://github.com/davidbannon/libqt5pas
I'd like to do that but can't find much info on how to build, and all those debs are 64bit.

Quote
But you would be far better updating your OS I am afraid.
As I mentioned, 19.3 is 32 bit on a VM, I run Linux 20.3 as my main os, just using the 19.3 vm to compile a 32bit version of my projects.

Quote
And even with newer OS, consider using the official Lazarus install kits rather than the ones from your distro.
I did use the official Lazarus packages.
Pete Vickerstaff
Linux Mint 21.1 Cinnamon, Lazarus 3.2, FPC 3.2.2

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Linux 19.3 32 bit QT5
« Reply #6 on: January 29, 2022, 03:44:12 pm »
Hi

Last Linux kernel version is

Code: Text  [Select][+][-]
  1. 5.16.1-1

To get your version use

Code: Bash  [Select][+][-]
  1. uname -a

Winni

petevick

  • Sr. Member
  • ****
  • Posts: 337
Re: Linux 19.3 32 bit QT5
« Reply #7 on: January 29, 2022, 09:01:25 pm »
I've solved this by using QT4 with Lazarus 2.0.12, and using libqt4pas5_2.5-18_i386.deb from https://packages.debian.org/stretch/i386/libqt4pas5/download for the app support
Pete Vickerstaff
Linux Mint 21.1 Cinnamon, Lazarus 3.2, FPC 3.2.2

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: [SOLVED] Linux 19.3 32 bit QT5
« Reply #8 on: January 29, 2022, 11:35:13 pm »
Good, glad its under control.  An easier approach might have been to install Debian on your VM, the current stable, Bullseye is available in 32bit.  So is testing but may not be there when it becomes stable if you believe the rumors.

Cross compiling from your 64bit install to 32bit is also a practicable option.

EDIT: impracticable >> practicable

Davo
« Last Edit: February 01, 2022, 12:02:02 am by dbannon »
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

petevick

  • Sr. Member
  • ****
  • Posts: 337
Re: [SOLVED] Linux 19.3 32 bit QT5
« Reply #9 on: January 31, 2022, 11:28:44 am »
Cross compiling from your 64bit install to 32bit is also a impracticable option.
Oh I've been there and lost a lot of hair trying to make it work. It's why I've also got a Win 10 VM for compiling to Windows 32 bit, VM's makes life so much easier
Pete Vickerstaff
Linux Mint 21.1 Cinnamon, Lazarus 3.2, FPC 3.2.2

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: [SOLVED] Linux 19.3 32 bit QT5
« Reply #10 on: February 01, 2022, 12:09:05 am »
Hmm, I have one 64bit Linux VM that has everything needed to generate binaries for Linux and Windows in both 64bit and 32bit. And Armhf. And so, at testing and release time, one script to package all except the MacOS.

I have described it all on the cross compiling wiki page and, from time to time, rebuild it all using those instructions. So, if you have problems, I would be keen to work through them with you so to improve the documentation.

Once setup, its a delight to use.

Davo 
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

petevick

  • Sr. Member
  • ****
  • Posts: 337
Re: [SOLVED] Linux 19.3 32 bit QT5
« Reply #11 on: February 01, 2022, 10:47:53 am »
.....I have described it all on the cross compiling wiki page......
That could be interesting, could you post the link to your wiki page please  8)
Pete Vickerstaff
Linux Mint 21.1 Cinnamon, Lazarus 3.2, FPC 3.2.2

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: [SOLVED] Linux 19.3 32 bit QT5
« Reply #12 on: February 01, 2022, 12:11:21 pm »
Not MY page petevick, the FPC/Lazarus wiki page - https://wiki.freepascal.org/Cross_compiling

While I have put a bit in there in the last 12 months, a lot of people have gone before me !

My current "build VM" is an Ubuntu20.04 but I am considering replacing it with a Debian Bullseye one, Ubuntu is loosing its favourite status in my books.  IMHO, you should reserve about 30G of diskspace in a Virtual Box VM, even more maybe given you don't loose the space until its used in the VM.
 
Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

petevick

  • Sr. Member
  • ****
  • Posts: 337
Re: [SOLVED] Linux 19.3 32 bit QT5
« Reply #13 on: February 01, 2022, 12:45:54 pm »
Thanks for that Davo, I'll go give it a look.
Pete Vickerstaff
Linux Mint 21.1 Cinnamon, Lazarus 3.2, FPC 3.2.2

 

TinyPortal © 2005-2018