Recent

Author Topic: Warning: other sources path of ...contains "lcl", which belong to lclbase  (Read 777 times)

bd4kc

  • New Member
  • *
  • Posts: 46
Warning: other sources path of "tcptest" contains "C:\lazarus\lcl", which belongs to package "LCLBase"

I used a few packages and copied the .pas file directly, without lpk installed. I can't find anywhere to set these paths。


Bart

  • Hero Member
  • *****
  • Posts: 4189
    • Bart en Mariska's Webstek
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #1 on: December 12, 2020, 05:07:20 pm »
Don't do that.

Bart

bd4kc

  • New Member
  • *
  • Posts: 46
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #2 on: December 12, 2020, 05:51:13 pm »
Don't do that.

Bart

It's not all too complicated packages, epiktimer and sdpojoystick. I read the code from beginning to end and didn't find it necessary to install it. Because every upgrade IDE has to reinstall so many lpks, I try not to install them if possible.

Bart

  • Hero Member
  • *****
  • Posts: 4189
    • Bart en Mariska's Webstek
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #3 on: December 12, 2020, 05:56:44 pm »
You can use packages without installing them into the IDE.
Just add the path to the package source to you project.
No need to copy the entire package to somewhere else.
You'll have to create all components at runtime of course.

Bart

bd4kc

  • New Member
  • *
  • Posts: 46
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #4 on: December 12, 2020, 06:13:15 pm »
Thank you, I'll try to figure out what's causing the warning. google it but to no avail.

lucamar

  • Hero Member
  • *****
  • Posts: 3610
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #5 on: December 12, 2020, 06:56:51 pm »
You can use packages without installing them into the IDE.
Just add the path to the package source to you project.

You don't even need to do that: just open the package with the IDE and it will remember it. Then when you want to use it just add it to the requirements of the project, though I don't quite remember if one needs to at least compile the package once for that to work ...
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.10/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

winni

  • Hero Member
  • *****
  • Posts: 2219
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #6 on: December 12, 2020, 07:34:45 pm »
Hi!

If lucamars infos are too abstract:

Load the unit into the editor.
Click on it so that is is the active Tab
Main Menu --> Project --> Add Editor file to Project

Done.

Winni

lucamar

  • Hero Member
  • *****
  • Posts: 3610
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #7 on: December 12, 2020, 09:29:37 pm »
If lucamars infos are too abstract:

Load the unit into the editor.
Click on it so that is is the active Tab
Main Menu --> Project --> Add Editor file to Project

Done.

Not quite what I had in mind but yes, that should work too :)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.10/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

bd4kc

  • New Member
  • *
  • Posts: 46
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #8 on: December 17, 2020, 10:26:23 pm »
How can I eliminate this warning? Always see them. I using tpiktimer and synapse。

winni

  • Hero Member
  • *****
  • Posts: 2219
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #9 on: December 17, 2020, 10:31:03 pm »
We told you not to copy the units.

If you don't do that the warning will vanish.
Magic.

Winni

bd4kc

  • New Member
  • *
  • Posts: 46
Re: Warning: other sources path of ...contains "lcl", which belong to lclbase
« Reply #10 on: December 18, 2020, 01:35:13 pm »
 :-[ That is, can this warning be avoided by preserving the relative path of these components? I'm just trying to put all the units in the same directory and copy them to other computers without having to change the settings on the ide. This is also convenient for compressing and backing up.

 

TinyPortal © 2005-2018