Recent

Author Topic: Missing file LazSerial [solved]  (Read 1571 times)

marsheng

  • Jr. Member
  • **
  • Posts: 53
Missing file LazSerial [solved]
« on: March 19, 2022, 09:25:45 am »
I have Lazarus V2.0.6 on a Linux Mint platform.

I installed LazSerial and have the Package installed and the serial icon on my ribbon. I put the component on my form and complied

I'm getting

umain.pas(8,78) Fatal: Cannot find LazSerial used by uMain. Check if package LazSerialPort is in the dependencies.

As this was all installed with the package manager, I have no idea where the files are but my guess is that LazSerialport is in the wrong directory.

Any idea on how to fix this ?
« Last Edit: March 26, 2022, 10:32:00 am by marsheng »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Missing file LazSerial
« Reply #1 on: March 19, 2022, 11:30:46 am »
The first thing to check is what the error message tells you to do.
Open your project in Lazarus and in the Project Inspector treeview look at the Required Packages node (the lower node below Files, with a green jigsaw-piece icon).

If the LazSerialport package is missing, add it using the +Add button: "New Requirement" which opens a further dialog.

If the LazSerialport package is present in your project's package requirements then you have an installation problem. You will need to uninstall the package and try reinstalling it again.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Missing file LazSerial
« Reply #2 on: March 19, 2022, 02:23:11 pm »
Hello,
I have Lazarus V2.0.6 on a Linux Mint platform.
I installed LazSerial and have the Package installed and the serial icon on my ribbon. I put the component on my form and complied
how have you installed Lazserial ?  version ?  from where ?
To install Lazserial the best way is to use the OnLine Package Manager !
Friendly, J.P
« Last Edit: March 19, 2022, 02:35:52 pm by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

marsheng

  • Jr. Member
  • **
  • Posts: 53
Re: Missing file LazSerial
« Reply #3 on: March 20, 2022, 06:49:33 am »
Sorry but I cant remember how I installed it, but it was not manually and probably with the software manager.  Still learning Linux !!!

See attached screen shot.  I cant seem to find how to embed a picture.

I did find some stuff on this but it is a bit beyond me at the moment. Maybe this will help.

https://www.mail-archive.com/fpc-pascal@lists.freepascal.org/msg53314.html


Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Missing file LazSerial
« Reply #4 on: March 20, 2022, 08:03:50 am »
Hello,
try to see if you have LazSerialPort in the requirements (project inspector window) and if you have something when you move the cursor over LazSerial Unit in the uses of your code.
See Attachment
Friendly, JP
« Last Edit: March 20, 2022, 08:05:35 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

marsheng

  • Jr. Member
  • **
  • Posts: 53
Re: Missing file LazSerial
« Reply #5 on: March 20, 2022, 10:27:13 am »
Looks like it is not installed. Hovering over does nothing.

In Lazarus, I used the Install/Uninstall option. I tried to uninstall it and I got

lcomportp.pas(11,3) Fatal: Cannot find LComPort used by LComPortP. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=/home/aquilo3-mint/Downloads/Lazarus/LComPort.ppu. Clean up package "LComPortP"..

I don't know where the main Lazarus is installed on the machine or where Lcomportp.pas should be if I can find it? .


Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Missing file LazSerial
« Reply #6 on: March 20, 2022, 10:44:36 am »
lcomportp.pas(11,3) Fatal: Cannot find LComPort used by LComPortP. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=/home/aquilo3-mint/Downloads/Lazarus/LComPort.ppu. Clean up package "LComPortP"..
I don't know where the main Lazarus is installed on the machine or where Lcomportp.pas should be if I can find it? .
it seems that you have installed lcomport package --> try to uninstall it
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

marsheng

  • Jr. Member
  • **
  • Posts: 53
Re: Missing file LazSerial
« Reply #7 on: March 26, 2022, 02:24:26 am »
Back to the beginning, trying again. I'll try and do this step by step.

There are 3 options to install packages under Package.

Add file to package
Install/Uninstall
Online package manager.

Which one is correct for Lazserial ?

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Missing file LazSerial
« Reply #8 on: March 26, 2022, 09:52:41 am »
Hello,
Back to the beginning, trying again. I'll try and do this step by step.

There are 3 options to install packages under Package.

Add file to package
Install/Uninstall
Online package manager.

Which one is correct for Lazserial ?

The best option is the OPM with version 0.5 of LazSerial :
Works for me on Ubuntu 20.04, Windows 10,
for Mac OS-X you need the version 0.6 in  my github repository.

Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

marsheng

  • Jr. Member
  • **
  • Posts: 53
Re: Missing file LazSerial
« Reply #9 on: March 26, 2022, 10:31:29 am »
No idea what happened, but I did get a message to do a Lazarus update which I did and now it works! Somehow it found the missing files.

Maybe the update downloaded all the new packages and did the fix.

PS I originally used the OPM.

Now I'll see if i can get the PI version running.

 

TinyPortal © 2005-2018