Couldn't find IntfGraphics.pas lazarus / 31-LCL ---------------------------------------------------------------------- ekd123 · 2013-07-09 19:11 This might seem strange... I just installed Lazarus and followed the "The First Program" in the wiki. Then I got the following errors: Code: [Select]Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.6.2 [2013/04/28] for x86_64 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling project1.lpr PPU Loading /usr/lib64/lazarus/lcl/units/x86_64-linux/intfgraphics.ppu PPU Source: intfgraphics.pas not found Recompiling IntfGraphics, checksum changed for FPReadPNG interfacebase.pp(37,34) Fatal: Can not find unit IntfGraphics used by InterfaceBase. Check if package LCLBase is in the dependencies of package LCLBase. any ideas about this? thanks! ---------------------------------------------------------------------- DtC17 · 2013-07-18 23:42 You did rebuild Lazarus after installing? May sound awkward and I'm not sure if it still applies to the latest distribution, but when I started out, a lot of "cannot find unit XXX" error would occur seemingly for no reason. After recompiling "Clean & Build All", the necessary PPU files for all packages would be generated and all "cannot find unit" troubles perished. There is a lot more to it than this (for example, Lazarus uses Packages and FPC uses Packages -- but Lazarus does NOT concern itself rebuilding FPC Packages when these source files are modified. After awhile, you'll get the hang of it). The basic rules, as I understand them, is that there should be only one Compiled Unit (PPU) file per unit per platform. While building, MAKE will discover the date of the PPU file does not match the date of the source file, and will attempt recompiling it. If, however, there are two different PPU files of the same unit in use, the compiler would first make intfgraphics.ppu (1st version), and later on discover this freshly compiled PPU does not match the source of the secundary intfgraphics. Thus, it has no other choice but to bail and leave it up to the user to correct the issue. This ofter occurs when LCL files are specifically marked as being "part of your package", instead of adding a DEPENDENCY to the unit's package to your package. When the file is marked as part of your package, there will be a PPU placed in the output directory of Your package and one in the output directory of the original Package. They may well be the same from an organic, human point of view; but as far as the compiler is concerned, it is facing two PPUs making it impossible to compile. On a side note, it is also possible the compiler WOULD LIKE to recompile your PPU but notes it lacks the necessary Pascal Source files to do so. In other words, make sure you have installed the SOURCE FILES as well. This would happen when you've installed a 32bit Lazarus and decide to crosscompile to 64bit: the compiler can handle it, but is has to generate new compiled units to do so. In short: please make sure that (a) you have the source files, (b) you are able to completely recompile the IDE (Cleanup & Build IDE, LCL, examples -- just check all boxes you can find). Even if this does not solve your problem, at least then we know the problem lies in the example you're trying to build and not in the installation itself. Go on. Give it a go. ---------------------------------------------------------------------- JuhaManninen · 2013-07-19 07:36 There are such problems with the release installation of Lazarus on some platforms. It does not work right away, but a clean build (Clean all) helps.