Recent

Author Topic: jvcl eror install in Linux  (Read 616 times)

rdaguiar

  • Newbie
  • Posts: 6
jvcl eror install in Linux
« on: March 15, 2023, 01:21:05 pm »
I use Lazarus version 2.6 on Linux Xubuntu 22.04

I went to install using the "Online Package Manager", it even installs, but 2 packages do not install, both are exactly what I need, they are: jvcustomlazr.lpk and jvcustomlazd.lpk
Bypassing these two packages is installed.

I'm looking for an Outlook-like component and they're right there in these packages. Can anyone help?
Modify message

wp

  • Hero Member
  • *****
  • Posts: 13266
Re: jvcl eror install in Linux
« Reply #1 on: March 15, 2023, 01:54:13 pm »
I can confirm that the jvcustomlazr package cannot be compiled on Ubuntu 20.10 (I don't have a XUbuntu 22.04 available at the moment).

When you load this package via "Package" > "Open package file" and try to compile it, compilation will stop in unit JvThumbnails, procedure TJvThumbnail.GetFileInfo, line "FDFilesize := info.size". Obviously the "size" element is not found. CTRL-clicking on "info" brings me to the declaration "info: stat", and CTRL-clicking on "stat" again brings me to the declaration of the Stat record. In this record all elements have a prefix "st_". Therefore I tried to change the faulty line to "FDFileSize := info.st_size" - and now the package was compiling. The designtime package, jvcustomlazd, was compiling, too, and the Outlookbar sample project is running - problem solved.

I don't know how this issue crept in, maybe a left-over from the original Delphi/Kylix version? I'll do some more tests on other Linux compilations for which I have a VM, and if they show the same issue, I'll commit this change to the CCR repository.

rdaguiar

  • Newbie
  • Posts: 6
Re: jvcl eror install in Linux
« Reply #2 on: March 15, 2023, 02:47:57 pm »
It worked perfect here, thank you very much.

 

TinyPortal © 2005-2018