Recent

Author Topic: .lfm file  (Read 3861 times)

VisualLab

  • Hero Member
  • *****
  • Posts: 614
Re: .lfm file
« Reply #15 on: June 17, 2023, 08:23:17 pm »
"Impossibile fare lo streaming Form1:TForm1"  (unable to stream Form1:TForm1)
"Abstract method called"

Never happened this.

I did a test on my computer. Hardware and software configuration of this computer:
  • hardware:
    • board: UPS-APLC2-A10-0432 (Up Squared, Aaeon)
    • CPU: Intel Celeron N3350 2,4 GHz (soldered on board)
    • RAM: 4GB (soldered on board)
    • eMMC: 32GB  (soldered on board)
    • SSD disk: Samsung 500 GB 860 EVO (mSATA)
    • WiFi module: Intel AC9260NGW (PCIe)
  • software:
    • system: Linux Kubuntu 23.04
    • kernel: 6.2.0-20-generic
    • graphics server: X11
    • desktop environment: KDE plazma 5.27.4 (Qt: 5.15.8 )
    • IDE: Lazarus 2.2.6 (3 packages DEB installed from Sourceforge)

Linux is installed in the eMMC module. Other OSes on SSD (Windows 10, Haiku). Lazarus basically runs fine on both Linux and Windows. In both OS it is version 2.2.6.

I noticed one problem - after about 15 minutes of inactivity, the screensaver was turned on. When I try to move the mouse or press a key on the keyboard (e.g. space bar), the KDE environment returns to its normal state with a delay. Initially, the Lazarus window appeared, the taskbar and the rest of the desktop were missing. Refreshing the desktop took about 3-4 minutes. After that everything was back to normal. This is probably due to the low performance of the CPU, small RAM and the fact that Linux is installed in the eMMC module.

First, I logged into Linux as root. I created a small project in Lazarus (GUI). The project files have been saved correctly. The project compiled without problems. It also debugs without problems.

After that, I logged in as a normal user. After running Lazarus under a normal user account, the CoolBar IDE was not visible in Lazarus. I set its visibility. I created a new project. It has been saved correctly. It compiled without problems. It also debugs without problems.

P.S. On Linux, I installed Lazarus under the root account.

dbannon

  • Hero Member
  • *****
  • Posts: 3189
    • tomboy-ng, a rewrite of the classic Tomboy
Re: .lfm file
« Reply #16 on: June 18, 2023, 01:58:16 am »
amedeo, did you do as I suggested ? Remove all trace of the Mint Repo install ?

Your problem is undoubtedly that you have two conflicting Lazarus installs.

  • Version: 2.0.6+dfsg-3 - is from the Mint Repo, the dfgs is a Debian thing.
  • lazarus-project_2.2.6-0_amd64.deb is from the official lazarus repo


They must not be used together. Don't waste your time and energy installing a previous version, its only going to complicate it more. Fix the underlying problem.

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

dbannon

  • Hero Member
  • *****
  • Posts: 3189
    • tomboy-ng, a rewrite of the classic Tomboy
Re: .lfm file
« Reply #17 on: June 18, 2023, 02:20:41 am »
...
If this was "implicit pointer to me :) " then I hereby hasten to reassure advanced but concerned Linux users that I am doing quite well for a beginner "in Linux" (since 1999 :)

Sorry if I offended there VL, its just you made some statements that sure indicated to me that you don't understand how the packaging models work. The Linux packaging models, deb, rpm, packman are not derived from Unix, indeed, they are part of the reason that the big corps are abandoning Unix in favour of linux. I don't fully understand Packman beyond being able to make packages for my app but deb and rpm are sophisticated and well functioning things. They manage dependencies and versions, avoid clashes and usually facilitate seamless updates. What they do is incredibly complicated but presents a simple solution to the end user. My app is in Debian, I can assure you their QA is extreme.

Personally, I prefer the deb model over the less mature rpm but both murder the Windows model of installing a full OS with every (significant) app. "Yes, I know you already have something.dll installed, possibly in several places, but our app requires our special version of something.dll. Oh, and a couple of reboots during the install please."

Quote from: VisualLab
First, I logged into Linux as root. I created a small project in Lazarus (GUI). The project files have been saved correctly. The project compiled without problems. It also debugs without problems.
That is somewhat unexpected behavior from an experienced linux user.

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

amedeo

  • New Member
  • *
  • Posts: 39
Re: .lfm file
« Reply #18 on: June 18, 2023, 10:18:11 am »
I am no happy but "lazarus-project_2.2.2-0_amd64" works fine. :(
I can't use new 2.2.6 options but I can work until now.
If somebody knows how to make a working upgrade please let me know. Thanks.
Amedeo 8)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4542
  • I like bugs.
Re: .lfm file
« Reply #19 on: June 18, 2023, 12:31:46 pm »
I am no happy but "lazarus-project_2.2.2-0_amd64" works fine. :(
I can't use new 2.2.6 options but I can work until now.
If somebody knows how to make a working upgrade please let me know. Thanks.
Build from sources!

The problem was that your distro does not provide the latest version. My experience is that a Debian package system works very well if you only use packages provided by the distro. When you install from outside providers, you ultimately will screw and corrupt the package system.
For that reason I switched to a rolling Manjaro which provides latest releases with a max. week or 2 delay. It has worked for years.

Building from sources is complicated for many applications but not so for Lazarus. It only needs FPC and the GUI lib dev packages installed as dependencies. You already have them if you installed the official distro version of Lazarus.
Yes, you can have the distro version and a version built from sources in your computer at the same time.
To run a development version, do :
Code: [Select]
$ git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus
$ cd lazarus
$ make
$ ./lazarus &

You can use the fixes branch :
Code: [Select]
$ git switch fixes_2_2but now I don't recommend it because a new version will be forked into a new fixes branch. Just test and use the development "main" branch now. Later you can switch to the new fixes branch whatever it will be called.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dbannon

  • Hero Member
  • *****
  • Posts: 3189
    • tomboy-ng, a rewrite of the classic Tomboy
Re: .lfm file
« Reply #20 on: June 18, 2023, 01:23:17 pm »
Yep, strongly agree with Juha, building from source is a much better approach on Linux. I always do exactly that. The wiki page has details https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source

Its particularly convenient if your OS has a current FPC but an old Lazarus.

But, a SourceForge install should also work. It has to depend on that "move it all to PCP on first rebuild" and is far more complicated than it should be. But, apart from the Examples (sigh...) it does all work remarkably well.

But an old, existing install, or part there off, from the distro repo (eg 2.0.6+dfsg-3) will still interfere, badly, no matter how the new install has been made.

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

VisualLab

  • Hero Member
  • *****
  • Posts: 614
Re: .lfm file
« Reply #21 on: June 18, 2023, 02:57:00 pm »
Sorry if I offended there VL, its just you made some statements that sure indicated to me that you don't understand how the packaging models work. The Linux packaging models, deb, rpm, packman are not derived from Unix, indeed, they are part of the reason that the big corps are abandoning Unix in favour of linux.

No need to apologize - you didn't offend me. Everything is OK. With this "pointer", it was such a joke on my part :)

I've been familiar with Linux package models for a long time, but I don't agree with this approach. The general idea of the packages was noble - do not duplicate files (libraries) in the system. But... Linux is developed by a huge number of people, some of whom don't want to get along with others (that's the nature of humans as a species). This causes some differences in the Linux architecture (distribution), which can be burdensome for users. There are different versions of libraries in different distributions, and they are not always backwards compatible. Upgrading Linux may cause a new version of a library to appear on your system, and then some programs may stop working or may malfunction. In addition, breaking the program into packages makes it difficult to install. The user is forced to keep track of package dependencies - what packages should be installed and in what order. In fact, the user should not be forced to learn the technical details of the program being installed. Usually these nuances are known (or at least should be known) best by its author.

Personally, I prefer the deb model over the less mature rpm but both murder the Windows model of installing a full OS with every (significant) app. "Yes, I know you already have something.dll installed, possibly in several places, but our app requires our special version of something.dll. Oh, and a couple of reboots during the install please."

In Windows, of course, there is the problem of duplicating some libraries in some applications. But it is not a common phenomenon. Interestingly, there has long been a common files directory in Windows (usually found in: "C:\Program Files\Common Files"), but not all software developers use it. But installing software on this system really is trivial (there are rare cases where it isn't).

Perhaps in Linux it is technically possible to avoid the problem of breaking up programs into packages, so that the average user can install them simply, while at the same time without duplicating files. Since the packages are downloaded from the server, and the maintainer of the program (of a given Linux distribution) prepares the installation files, maybe it would be enough to refine the whole thing so that everything is installed automatically, without the console and without harassing the user with messages that are not very understandable (for him). Unfortunately, the side effect will be to complicate the setup program much more than it is now. In addition, to implement such a model, a certain IT regime is needed (e.g. such as Torvalds implements for the Linux kernel) with a certain amount of reasonable approach to software ergonomics.

However, I believe that this cannot be implemented in the Linux community, because there is a lot of IT anarchy here. On the one hand, there is pressure and the desire to promote Linux "among the people" and on the other there is talk for "the laziness and dullness of this people". These are mutually exclusive approaches. For many years, the decision-makers of the major Linux distributions could not get the simple idea that a desktop computer used by an "ordinary user" is not a server. Regular user:

- will not admire Linux,
- will not be familiar with its architecture,
- will not sing hymns of praise to the wisdom of the creators of the system,
- will not beautify the system (icons, colors and other whistles and bells).

He will only want to do his job (at the company, at school, at home) or he will use this computer for entertainment (gaming, watching movies, listening to music, etc.) in the simplest way he knows. Without using "console spells". Because that's what normal users do with a Windows computer.

Therefore, there will never be widespread use of Linux on desktops. And Android is used because it isolates the common "common" user from the "guts of Linux".

In my experience, people know about Linux (that it exists, that you don't have to pay for it, etc.). Many have come into contact with him. And they have an opinion about it that it is a system for maniacs who: "like to mess with the computer and software". In other words, average computer users treat Linux enthusiasts in the same way they treat motorcycle or car enthusiasts, where the vehicle is mostly stationary and its owner "pokes around" for pleasure (such a hobby).

Quote from: VisualLab
First, I logged into Linux as root. I created a small project in Lazarus (GUI). The project files have been saved correctly. The project compiled without problems. It also debugs without problems.
That is somewhat unexpected behavior from an experienced linux user.

On the contrary. Pay attention to the board of this computer. It is not a server or a workstation. It's like an overgrown RaspberryPi, only with an Intel processor. It also has a GPIO connector (40 pins, layout quite compatible with the RPi). I use it for electronics and programming experiments. By logging in as root, I avoid unnecessary tapping on the keyboard and pointless waste of time (sudo, etc.).

amedeo

  • New Member
  • *
  • Posts: 39
Re: .lfm file
« Reply #22 on: June 19, 2023, 09:15:58 am »
I am not happy but I installed the 2.2.0 version and it works fine.

I can't use new functions (very nice ), but I can work.

Thanks for your attention.

Amedeo

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4542
  • I like bugs.
Re: .lfm file
« Reply #23 on: June 19, 2023, 10:28:10 am »
I am not happy but I installed the 2.2.0 version and it works fine.
I can't use new functions (very nice ), but I can work.
Did you try building from sources?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

wp

  • Hero Member
  • *****
  • Posts: 12523
Re: .lfm file
« Reply #24 on: June 19, 2023, 11:57:56 am »
Just installed Laz 2.2.6 from https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.2.6/lazarus-project_2.2.6-0_amd64.deb/download into a virtual machine with Linux Mint 20.2 Cinnamon, and it is working perfectly.

After the installation it was detected that I had a Laz 2.2.0RC1 on this VM before, maybe similar to your case because you say that v2.2.4 was fine. Maybe your issue originated in not correctly adjusting to the new version in this step?

 

TinyPortal © 2005-2018