Am 08.07.2011 23:44, schrieb Mattias Gaertner:
On Fri, 08 Jul 2011 23:30:47 +0200
John Landmesser<[email protected]>  wrote:

Am 08.07.2011 22:30, schrieb Mattias Gaertner:
On Fri, 08 Jul 2011 22:11:37 +0200
John Landmesser<[email protected]>   wrote:

[...]
I can add findfile1 to the uses clause of a project and then i can
TFileFind.Create ...use it ... no probs.

But if i put findfile1.pas to a new or existing package i can compile
the package but i cannot install it to lazarus IDE.
[...]

"use unit" and "register unit" is checked in package settings and i can
compile the package!
And then you click 'Install'. And what happens?

Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

i get this german error message:

Kann die Datei "findfile1.pas" nicht finden.
Falls sie zum Projekt gehört, prüfen Sie den Suchpfad in der Startseite von
Projekt->Compilereinstellungen ... unter Andere Unit-Dateien. Wenn die
Datei zu einem Package gehört, müssen dessen Einstellungen geprüft
werden. Falls die Datei zu Lazarus gehört, muß sichergestellt sein, daß
die IDE sauber kompiliert ist. Gehört die Datei zu FPC muß die fpc.cfg
überprüft werden. Bei Unklarheiten hilft der Button Test unter Projekt
->  Compilereinstellungen ... ->  Test

In Package settings, other units:
$(PkgOutDir);findfile
The dependent packages/projects only need the $(PkgOutDir). Change the
compiler paths of the package instead.



New in Package settings, other units:
$(PkgOutDir)

but no success, same error message

I'll try to write a clean new lazarus unit findfile1 an try again.

p.s.
The button Test in package settings gives the following hint:
ANMERKUNG: using config file /etc/fpc.cfg
WARNUNG: ppu ist zweimal vorhanden: 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd20/httpd.ppu, 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd13/httpd.ppu
WARNUNG: ppu ist zweimal vorhanden: 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd22/apriconv.ppu, 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd20/apriconv.ppu
WARNUNG: ppu ist zweimal vorhanden: 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd22/apr.ppu, 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd20/apr.ppu
WARNUNG: ppu ist zweimal vorhanden: 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd22/aprutil.ppu, 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd20/aprutil.ppu
WARNUNG: ppu ist zweimal vorhanden: 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd22/httpd.ppu, 
/usr/lib/fpc/2.4.2/units/i386-linux/httpd20/httpd.ppu
WARNUNG: Das Ausgabeverzeichnis von mycomps 0.0 ist im Unit-Suchpfad von 
mycomps 0.0 aufgeführt.Das Ausgabeverzeichnis sollte ein eigenes Verzeichnis 
sein und keine Quelldateien enthalten.

That's my first package in lazarus so i have to think about last WARNUNG

But even if i insert findfile1 to an existing, working package ( not from me! ) 
i get this  error message, strange !

Uh, its saturday and i have to get something to eat for next week :-))

Do we have another object TFileFind in a standard lazarus IDE ?






--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to