Can't find unit Graphics used by BGRADefaultBitmap lazarus / 1-Linux ---------------------------------------------------------------------- panoss · 2011-04-05 15:44 '...bgradefaultbitmap.pas(1,1) Fatal: Can't find unit Graphics used by BGRADefaultBitmap'. I m trying to install a package containing BGRA files, and shows me the above mentioned error. (lazarus drives me crazy  ) How can I fix it? (appeared after upgrading lazarus from 0.9.28.2-0 beta to 0.9.30. Ubuntu 9.10) (I think Graphics is part of LCL which is shown properly in Project Inspector->Required packages) ---------------------------------------------------------------------- felipemdc · 2011-04-08 08:28 Try building with the option -va and copy the last messages here. You may need to right click the messages and select "Copy all and hidden messages" to really see all messages. ---------------------------------------------------------------------- Arbee · 2011-04-08 08:59 Is it the first time you rebuild Lazarus? I had the same problem on OS X and what did the trick for me was to set the rebuild parameters to do a clean rebuild. Sometimes the message "can't find unit" is not so much that there is no such unit, but that the unit found somehow is not correct (corrupt or wrong version  or whatever). After having dome the clean rebuild I could reset it to a "normal" build. ---------------------------------------------------------------------- panoss · 2011-04-12 10:04 Quote from: felipemdc on April 08, 2011, 10:28:40 amTry building with the option -va and copy the last messages here. You may need to right click the messages and select "Copy all and hidden messages" to really see all messages. I entered In Tools->Configure 'build Lazarus'->Options: '-va'. It started compiling, reporting, in the messages window, files found, files NOT found, and other messages. But, it was compiling...and compiling...and never ended! After two hours(!!!) I had to kill it (with System monitor), or it would never stop! ---------------------------------------------------------------------- panoss · 2011-04-12 10:23 Quote from: Arbee on April 08, 2011, 10:59:00 amIs it the first time you rebuild Lazarus? I had the same problem on OS X and what did the trick for me was to set the rebuild parameters to do a clean rebuild. Sometimes the message "can't find unit" is not so much that there is no such unit, but that the unit found somehow is not correct (corrupt or wrong version  or whatever). After having dome the clean rebuild I could reset it to a "normal" build. I tried clean rebuild and gave me error: "/usr/lib/lazarus/0.9.30/ide/lazconf.pp(1,1) Fatal: Can't find unit DefineTemplates used by LazConf". There's no cure.... ---------------------------------------------------------------------- panoss · 2011-04-12 14:11 I managed todo a clean rebuild (after about a 1000 trials  ) but again errors when i try to install my package: "colordialog.pas(9,20) Fatal: Can't find unit LResources used by ColorDialog " ---------------------------------------------------------------------- Arbee · 2011-04-14 09:46 This sounds like you still have some stuff hanging around from the old 0.9.28 installation. You should try to remove Lazarus completely, including all configuration files and then do a fresh install. I don't know by heart what and where Lazarus stores all kinds of things but I do remember getting it from the Wiki when I had similar problems on a Mac. ---------------------------------------------------------------------- panoss · 2011-04-14 10:32 I removed everything (I mean EVERYTHING, even manuallly, files of Lazarus and FPC tha automatically were not removed) and reinstalled, but nothing. I 'm desperate. ---------------------------------------------------------------------- DirkS · 2011-04-14 11:50 Quote from: panoss on April 14, 2011, 12:32:34 pmI removed everything (I mean EVERYTHING, even manuallly, files of Lazarus and FPC tha automatically were not removed) and reinstalled, but nothing. I 'm desperate. Are you sure you also removed the old settings files? Gr. Dirk. ---------------------------------------------------------------------- panoss · 2011-04-14 12:09 Quote from: DirkS on April 14, 2011, 01:50:47 pmQuote from: panoss on April 14, 2011, 12:32:34 pmI removed everything (I mean EVERYTHING, even manuallly, files of Lazarus and FPC tha automatically were not removed) and reinstalled, but nothing. I 'm desperate. Are you sure you also removed the old settings files? Gr. Dirk. 1.I uninstalled lazarus and fpc and anything related, using Synaptic. 2.Deleted, manually, folders n files that remained: /etc/lazarus /etc/fpc.cfg /home/panoss/.lazarus What else should I remove? ---------------------------------------------------------------------- panoss · 2011-04-19 16:00 I haven't find any solution yet (yes, believe it) and I'm trying to downgrade to previous version of Lazarus, 0.9.28.2. But, Synaptic has this option disabled for Lazarus. I guess I have to downgrade some related files, how can I find these files? I downgraded libgtk2, but it was not the problem.