Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-08

ImagesforLazarus problem

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Chavoux Luyt

Hi Everybody

When I want to compile (and install) the ImagesforLazarus package, I get an error: Error: Duplicate identifier "IMAGESFORLAZARUS" I am trying to install the glScene package and need this package to be installed first. Any ideas why?

In the source code I see this:
"
{ This file was automatically created by Lazarus. Do not edit! This source is only used to compile and install the package. }

unit ImagesforLazarus;
interface

uses
IS THIS CORRECT?->ImagesforLazarus, LazBMP, LazJPG, LazPNG, LazPNM, LazTGA, LazXPM,
LazarusPackageIntf;
....
"
Is it correct for the unit to "use" itself? If I comment out the "ImagesforLazarus" part, and then recompile the unit, it asks to reload file from disk and then simply ignore the file I just saved, reverting back to the original file somehow. (If I say to ignore the files from disk, it still gives me this same error message).

Thanks
Chavoux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120807/77fface0/attachment.html>

Reply by email

Mattias Gaertner
to Chavoux Luyt

Chavoux Luyt hat am 7. August 2012 um 02:22 geschrieben:

Show quoted text 22 lines
Hi Everybody When I want to compile (and install) the ImagesforLazarus package, I get an error: Error: Duplicate identifier "IMAGESFORLAZARUS" I am trying to install the glScene package and need this package to be installed first. Any ideas why? In the source code I see this: " { This file was automatically created by Lazarus. Do not edit! This source is only used to compile and install the package. } unit ImagesforLazarus; interface uses IS THIS CORRECT?->ImagesforLazarus, LazBMP, LazJPG, LazPNG, LazPNM, LazTGA, LazXPM, LazarusPackageIntf;

What Lazarus version do you use?

It does not add this unit name here.

Show quoted text 8 lines
.... " Is it correct for the unit to "use" itself? If I comment out the "ImagesforLazarus" part, and then recompile the unit, it asks to reload file from disk and then simply ignore the file I just saved, reverting back to the original file somehow. (If I say to ignore the files from disk, it still gives me this same error message).

The unit is automatically created by the IDE before compiling.

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120807/43aed9a3/attachment.html>

Reply by email

Chavoux Luyt
to Mattias Gaertner

Hi Mattias

Mattias Gaertner wrote 7 lines
What Lazarus version do you use? It does not add this unit name here.

I am using version 0.9.30.4-0 (i386-linux-gtk 2)
(FPC 2.6.0)
on Mepis (Debian stable)

Show quoted text 12 lines
.... " Is it correct for the unit to "use" itself? If I comment out the "ImagesforLazarus" part, and then recompile the unit, it asks to reload file from disk and then simply ignore the file I just saved, reverting back to the original file somehow. (If I say to ignore the files from disk, it still gives me this same error message). The unit is automatically created by the IDE before compiling.

?? From where? Is there a way to override this?

Thanks
Chavoux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120807/989bfdee/attachment.html>

Reply by email

Mattias Gaertner
to Chavoux Luyt
Show quoted text 14 lines
Hi Mattias On 7 August 2012 09:27, Mattias Gaertner wrote: > > > > What Lazarus version do you use? > > It does not add this unit name here. > I am using version 0.9.30.4-0 (i386-linux-gtk 2) (FPC 2.6.0) on Mepis (Debian stable)

Can you test with Lazarus 1.0 RC1?

Show quoted text 11 lines
> .... > " > Is it correct for the unit to "use" itself? If I comment out the > "ImagesforLazarus" part, and then recompile the unit, it asks to reload > file from disk and then simply ignore the file I just saved, reverting back > to the original file somehow. (If I say to ignore the files from disk, it > still gives me this same error message). > > The unit is automatically created by the IDE before compiling. > ?? From where? Is there a way to override this?

Open the lpk and check if the unit imagesforlazarus is listed under files. If yes, remove it.

Mattias

Reply by email