Recent

Author Topic: [Solve] Unit project  (Read 17651 times)

ginoo

  • Jr. Member
  • **
  • Posts: 63
Re: Unit project
« Reply #15 on: April 03, 2024, 05:01:35 pm »
But in fact this package is designtime only. It's in the ide. I don't understand why it worked with Lazarus 1.6 up to 2.2.6 then what changed from the 3rd stop?

Project.pp is used in projtemplates.lpk

I went to look at the sources but didn't see it, then tell me where did you see it?


I did a quick text search on my Lazarus folder (screenshot in attachment).
And you didn't look further  ;)

The text in that component is idetemplateproject.pp. Not project.pp.

Project.pp is part of lazarus.lpi.

rvk

  • Hero Member
  • *****
  • Posts: 6192
Re: Unit project
« Reply #16 on: April 03, 2024, 05:04:48 pm »
But in fact this package is designtime only. It's in the ide. I don't understand why it worked with Lazarus 1.6 up to 2.2.6 then stop what has changed?
Probably because before lazarus 3 it was a sort of standalone source.
In the newer version it depends on a lot more source files and dependencies.
If you include all dependencies of the lazarus.lpi program and use the same search & include path, it will work again.
Maybe you don't need all dependencies but it would be some work to find out which you need exactly.

That's the downside from taking 1 source files from another project.
(if you don't include all the dependencies and depending source files, it will fail)

ginoo

  • Jr. Member
  • **
  • Posts: 63
Re: Unit project
« Reply #17 on: April 03, 2024, 05:14:19 pm »
Sorry, my bad. The search found all the *project.pp strings, inclusive demoproject.pp, idetemplateproject.pp etc.
It doesn't seem to be included in any component package.

@bobby100  Thank you for taking the time for me. It is a design time component for precompiling a project. I'll have to figure out what changed and probably rewrite it. Sign sign sign   :'( :'( :'( :'(
« Last Edit: April 03, 2024, 05:24:35 pm by ginoo »

ginoo

  • Jr. Member
  • **
  • Posts: 63
Re: Unit project
« Reply #18 on: April 03, 2024, 05:22:22 pm »
If you include all dependencies of the lazarus.lpi program and use the same search & include path, it will work again.
Maybe you don't need all dependencies but it would be some work to find out which you need exactly.
Excuse my ignorance, how do I open the lazarus.lpi file to find the dependencies?

Anyway I'm modifying my expascal implementation.

rvk

  • Hero Member
  • *****
  • Posts: 6192
Re: Unit project
« Reply #19 on: April 03, 2024, 05:39:40 pm »
If you include all dependencies of the lazarus.lpi program and use the same search & include path, it will work again.
Maybe you don't need all dependencies but it would be some work to find out which you need exactly.
Excuse my ignorance, how do I open the lazarus.lpi file to find the dependencies?
Choose Project > Open project.
Browse to Lazarus/ide and choose lazarus.lpi.
Now the project lazarus.lpi (the complete IDE) will open up in lazarus itself.
You can view the project inspector and project options just like you normally do.

ginoo

  • Jr. Member
  • **
  • Posts: 63
Re: Unit project
« Reply #20 on: April 03, 2024, 05:40:25 pm »
found.

Thanks @rvk. Now I'm groping


If you include all dependencies of the lazarus.lpi program and use the same search & include path, it will work again.
Maybe you don't need all dependencies but it would be some work to find out which you need exactly.
Excuse my ignorance, how do I open the lazarus.lpi file to find the dependencies?

Anyway I'm modifying my expascal implementation.

ginoo

  • Jr. Member
  • **
  • Posts: 63
Re: Unit project
« Reply #21 on: April 03, 2024, 07:13:16 pm »

The same goes for the ModeMatrixOpts which is part of a package (idedebugger? Or ideconfig?)

@rvk
It works like this. I deleted everything and put these dependencies and it works. Thank you

 

TinyPortal © 2005-2018