Recent

Author Topic: ppu exists twice  (Read 1590 times)

lazer

  • Sr. Member
  • ****
  • Posts: 269
ppu exists twice
« on: October 16, 2022, 03:14:57 pm »
Hi

I have just done a new installation built from source.

On first use it complained about some ppu's existing in two locations, one in the compiler's output /usr/lib/fpc/3.3.1/units and again in lazarus-main/units.

I removed the lazerus one.

I an trying to build this project for win32 , win64 as well so I've configured the project options to test those two as well. Now it is complaining about dupes again .

Code: Pascal  [Select][+][-]
  1. HINT: using config file /etc/fpc.cfg
  2. WARNING: ppu exists twice: /usr/lib/fpc/3.3.1/units/x86_64-linux/fv/dialogs.ppu, ~/.lazarus/lib/LCLBase/units/x86_64-win32/dialogs.ppu
  3. WARNING: ppu exists twice: /usr/lib/fpc/3.3.1/units/x86_64-linux/fv/menus.ppu, ~/.lazarus/lib/LCLBase/units/x86_64-win32/menus.ppu
  4.  

Now I removed ~/.lazarus this morning because I had an old installation and I did not want any cruft interfering. So those new ppus were copied there today.

How can I get control of lazarus spamming ppus everywhere and then complaining about what it has done ?

TIA.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: ppu exists twice
« Reply #1 on: October 16, 2022, 03:36:36 pm »
Unless you are using freevision you can ignore those warnings.
The .ppus (unfortunately) have the same name, but are entirely distinct and the compiler and Lazarus IDE don't confuse them with each other. The warning is there to make you aware of a name clash, but it does not affect 99% of programs written using the FPC and Lazarus.

The freevision menus and dialogs units are kept only for legacy applications that need them.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6263
  • Compiler Developer
Re: ppu exists twice
« Reply #2 on: October 16, 2022, 04:13:56 pm »
How can I get control of lazarus spamming ppus everywhere and then complaining about what it has done ?

Do you intend to build GUI applications with the LCL or TUI applications with FreeVision? If the former then you should remove the ones in the fv directory, if the later you should not have the LCL as a dependency of your project.

The freevision menus and dialogs units are kept only for legacy applications that need them.

They are not only for “legacy” applications. You can still use them to write new applications and in main FreeVision even gained Unicode support.

lazer

  • Sr. Member
  • ****
  • Posts: 269
Re: ppu exists twice
« Reply #3 on: October 17, 2022, 12:08:54 am »
Quote
If the former then you should remove the ones in the fv directory,
Thanks, I never heard to FreeVision , so what is the "fv directory" ?

dbannon

  • Hero Member
  • *****
  • Posts: 3646
    • tomboy-ng, a rewrite of the classic Tomboy
Re: ppu exists twice
« Reply #4 on: October 17, 2022, 02:05:59 am »
First hit on a google search -

https://wiki.freepascal.org/Free_Vision
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

lazer

  • Sr. Member
  • ****
  • Posts: 269
Re: ppu exists twice
« Reply #5 on: October 17, 2022, 08:15:32 am »
Cool, I love sitting my grandchildren down in front of the fire and recounting fond stories of the days before Facebook when we use to program in TurboView !

I wasn't saying I could not find out what fv was today, I said I had never heard of it before.

I was asking PascalDragon what he meant by "the tv directory"  he suggested I clean out. I don't see anything carrying that name so it's not obvious which of these identically named files he suggests I remove.

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: ppu exists twice
« Reply #6 on: October 17, 2022, 09:38:04 am »
...

Code: Pascal  [Select][+][-]
  1. HINT: using config file /etc/fpc.cfg
  2. WARNING: ppu exists twice: /usr/lib/fpc/3.3.1/units/x86_64-linux/fv/dialogs.ppu, ~/.lazarus/lib/LCLBase/units/x86_64-win32/dialogs.ppu
  3. WARNING: ppu exists twice: /usr/lib/fpc/3.3.1/units/x86_64-linux/fv/menus.ppu, ~/.lazarus/lib/LCLBase/units/x86_64-win32/menus.ppu
  4.  
...

Do you see the fv directory on a second look?

lazer

  • Sr. Member
  • ****
  • Posts: 269
Re: ppu exists twice
« Reply #7 on: October 17, 2022, 10:50:25 am »
Thanks I should have spotted that !

 

TinyPortal © 2005-2018