Recent

Author Topic: Can't find unit Graphics used by BGRADefaultBitmap  (Read 14983 times)

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Can't find unit Graphics used by BGRADefaultBitmap
« on: April 05, 2011, 05:44:40 pm »
'...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)
« Last Edit: April 05, 2011, 06:00:33 pm by panoss »
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #1 on: April 08, 2011, 10:28:40 am »
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

  • Full Member
  • ***
  • Posts: 223
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #2 on: April 08, 2011, 10:59:00 am »
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.
1.0/2.6.0  XP SP3 & OS X 10.6.8

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #3 on: April 12, 2011, 12:04:17 pm »
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.
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!
« Last Edit: April 12, 2011, 12:06:08 pm by panoss »
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #4 on: April 12, 2011, 12:23:23 pm »
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.

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....
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #5 on: April 12, 2011, 04:11:30 pm »
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
"
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

Arbee

  • Full Member
  • ***
  • Posts: 223
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #6 on: April 14, 2011, 11:46:08 am »
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.

1.0/2.6.0  XP SP3 & OS X 10.6.8

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #7 on: April 14, 2011, 12:32:34 pm »
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.
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

DirkS

  • Sr. Member
  • ****
  • Posts: 251
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #8 on: April 14, 2011, 01:50:47 pm »
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.
Are you sure you also removed the old settings files?

Gr.
Dirk.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #9 on: April 14, 2011, 02:09:24 pm »
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.
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?
« Last Edit: April 14, 2011, 07:25:19 pm by panoss »
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

panoss

  • Full Member
  • ***
  • Posts: 162
  • You only live twice
Re: Can't find unit Graphics used by BGRADefaultBitmap
« Reply #10 on: April 19, 2011, 06:00:29 pm »
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.
Windows 10 64bit, Lazarus Version 2.2.0    FPC 3.2.2.

 

TinyPortal © 2005-2018