Recent

Author Topic: Installing packages  (Read 3039 times)

diegobincoletto

  • Newbie
  • Posts: 6
Installing packages
« on: May 02, 2016, 11:33:14 am »
Hi,
I am new to Lazarus, I have been using Delphi7 for some time and would like to try Lazarus.
The main problem I have now is installing add-ons (packages).
So far I have tried many and they all give me the same result.

Lazarus 1.6 on Win7 64 and trying to install Cportlib10.lpk
I placed it in the Componets folder as indicated and then I try to Compile, I get the eror message shown in the attached picture.

diegobincoletto

  • Newbie
  • Posts: 6
Re: Installing packages
« Reply #1 on: May 02, 2016, 11:42:58 am »
I have modified the uses statement to bypass the IFDEF statements in order to make it work with Windows only (i couldn't find where to define the OP elswhere), see the next picture.
Now I get a new error message, see the second picture.

diegobincoletto

  • Newbie
  • Posts: 6
Re: Installing packages
« Reply #2 on: May 02, 2016, 11:44:20 am »
For some reason the second picture went missing.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Installing packages
« Reply #3 on: May 02, 2016, 11:56:10 am »
hello,
what do you want to do with this package ? What component(s) do you want to use ? Maybe you can use another package or library ?

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

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11351
  • FPC developer.
Re: Installing packages
« Reply #4 on: May 02, 2016, 12:00:52 pm »
Well, win64 is not win32 and not linux, so there is a trailing comma followed by a semicolon.

Probably you will want to use win64, but most D7 components haven't been checked for 64-bit. Make sure you have a new version (Warren Postma had more recent versions of cportlib for a while, maybe sitll)

diegobincoletto

  • Newbie
  • Posts: 6
Re: Installing packages
« Reply #5 on: May 02, 2016, 12:39:49 pm »
Thank you for your prompt response.
I tried another package just now, LazSerial, and I managed to install it.

Thank you anyhow.

 

TinyPortal © 2005-2018