Sign in Join

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

Mailing lists / lazarus / 2002-05

Control not found

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Matthew Bradford: Hello all. I just downloaded Lazarus and it looks great. However, I think I may have…
Show quoted text 9 lines
Hello, Yes, that is the issue I have been having: "Fatal: Can't find unit CONTROLS". Sorry I didn't put that in the original message it was late and I thought I had. The issue here is that even if I put the units in the same directory as my project it still fails. I've not put in the source, but should I really need to do that for a "hello world" app? Does the zip file on the website work? Actually it seems more like an issue with the fpc.cfg file (or fpc's inability to look for something in any new directories.)

The sources are needed for many IDE features like events or find declaration. There are not needed to simply compile a program. Plz remove the /usr/local/lib/{lcl,codetools,synedit}. This is currently not supported. I assume that you have the sources in a readable directory. You can either use the cvs or take the zip: ftp://ftp.freepascal.org/pub/fpc/source/lazarus.zip The sources should compile without any error with 'make clean all'. If lazarus compiles you have valid sources and ppu/o files. A simple program should be compilable with
ppc386 -B -Fu<LazDir>/lcl/units -Fu<LazDir>/lcl/units/gtk test.pas

If you now get the fatal error unit not found, check the steps in the FAQ. If you still got the error then you have either found a compiler bug or there is some forgotten garbage from your experiments. You can find out with the -va switch:

ppc386 -B -Fu<LazDir>/lcl/units -Fu<LazDir>/lcl/units/gtk test.pas

This will result in a lot of output, but you can find out, where the compiler searches.

Mattias

Reply by email

Matthew Bradford
to Matthew Bradford: Hello all. I just downloaded Lazarus and it looks great. However, I think I may have…

Hello,
Yes, that is the issue I have been having: "Fatal: Can't find unit CONTROLS". Sorry I didn't put that in the original message it was late and I thought I had. The issue here is that even if I put the units in the same directory as my project it still fails. I've not put in the source, but should I really need to do that for a "hello world" app? Does the zip file on the website work? Actually it seems more like an issue with the fpc.cfg file (or fpc's inability to look for something in any new directories.)

Actually.. now I think about it. I even tried putting the things into another directory I KNEW was working properly. (where CRT is at) and it STILL gave me the same error.

Any ideas?
- Matt

Mattias Gaertner wrote 15 lines
I'm not quite sure what you mean with "Control not found". Perhaps you mean "Fatal: Can't find unit CONTROLS" ? Anyway, I suggest, to use the installation in /usr/local only for dry running LCL applications. To use the IDE you should take a cvs snapshot and use 'make clean all'. Leave the sources and the lazarus binary where they are. You can do that as any user. If you want a multiuser installation, install the cvs to a directory, where everyone has read perms and link the lazarus binary to /usr/local/bin/lazarus. Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Mattias Gaertner
to Matthew Bradford: Hello all. I just downloaded Lazarus and it looks great. However, I think I may have…
Show quoted text 7 lines
Hello all. I just downloaded Lazarus and it looks great. However, I think I may have some issues with linking everything properly. I am using FPC 1.0.6 and the latest Lazarus build. It complied perfectly fine and installed to /usr/local/bin and /usr/local/lib/lcl. I have added the lcl directory to the /etc/fpc.cfg file. (and no there is no ppc386.cfg left over since I just rebuilt this machine and have not installed any other version of FPC on here.)

I'm not quite sure what you mean with "Control not found". Perhaps you mean "Fatal: Can't find unit CONTROLS" ?

Anyway, I suggest, to use the installation in /usr/local only for dry running LCL applications. To use the IDE you should take a cvs snapshot and use 'make clean all'. Leave the sources and the lazarus binary where they are. You can do that as any user. If you want a multiuser installation, install the cvs to a directory, where everyone has read perms and link the lazarus binary to /usr/local/bin/lazarus.

Mattias

Reply by email

Matthew Bradford

Hello all. I just downloaded Lazarus and it looks great. However, I think I may have some issues with linking everything properly. I am using FPC 1.0.6 and the latest Lazarus build. It complied perfectly fine and installed to /usr/local/bin and /usr/local/lib/lcl. I have added the lcl directory to the /etc/fpc.cfg file. (and no there is no ppc386.cfg left over since I just rebuilt this machine and have not installed any other version of FPC on here.)

I am sure it is just a very simple issue and you all will think I am an idiot for not knowing... but I am just drawing a blank as to any other causes.

Thanks in advance,
Matt

Reply by email