Recent

Author Topic: Lazarus package BGRABitmap (please help)  (Read 692 times)

velle

  • New member
  • *
  • Posts: 7
Lazarus package BGRABitmap (please help)
« on: October 07, 2024, 03:25:12 am »

Hi, I installed packages needed for my project. The others went smooth but when I Installed BGRABitmapPack4fpGUI there's an error popped out saying

There are two units with the same name:

1. "C:\Lazarus_CommonComponents\BGRABitmap\bgrabitmap-master\bgrabitmap\bgraanimatedgif.pas" from BGRABitmapPack4fpGUI 9.9
2. "C:\Lazarus_CommonComponents\BGRABitmap\bgrabitmap-master\bgrabitmap\bgraanimatedgif.pas" from BGRABitmapPack 11.3.1
Both packages are connected. This means, either one package uses the other, or they are both used by a third package.

I don't know how to fix it, and I dont want to try modifying the files that may lead to other problems since I don't know it.

If anyone that is familiar with this. Can you help me? thank you in advance!

Fred vS

  • Hero Member
  • *****
  • Posts: 3459
    • StrumPract is the musicians best friend
Re: Lazarus package BGRABitmap (please help)
« Reply #1 on: October 07, 2024, 03:34:18 am »
Are you using fpGUI widgetset?

If so, you need to install only BGRABitmapPack4fpGUI.

If you are using LCL/Lazarus widgetset you should not install BGRABitmapPack4fpGUI but only BGRABitmapPack.
And in that case, uninstall BGRABitmapPack4fpGUI if installed,
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

velle

  • New member
  • *
  • Posts: 7
Re: Lazarus package BGRABitmap (please help)
« Reply #2 on: October 07, 2024, 03:43:33 am »
I tried to install the BGRABitmapPack4fpGUI first but it also requires the BGRABitmapPack..

here's the error:

The project requires the package "BGRABitmapPack".
But it was not found. See Project -> Project Inspector.

Fred vS

  • Hero Member
  • *****
  • Posts: 3459
    • StrumPract is the musicians best friend
Re: Lazarus package BGRABitmap (please help)
« Reply #3 on: October 07, 2024, 04:20:48 am »
Hello Velle.
You did not answer to the question if you are using fpGUI widgetset.
So I guess you are using fpGUI if you want to install BGRABitmapPack4fpGUI.
And I guess you have already installed fpgui_toolkit.lpk needed for BGRABitmapPack4fpGUI.

In that case you should only install BGRABitmapPack4fpGUI.
Go to menu Project/Project inspector and delete all the BGRABitmap packages other than BGRABitmapPack4fpGUI.

If you are using the widgetset LCL from Lazarus, go in menu Project/Project Inspector and delete all the BGRABitmap packages other than BGRABitmapPack.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

velle

  • New member
  • *
  • Posts: 7
Re: Lazarus package BGRABitmap (please help)
« Reply #4 on: October 07, 2024, 04:52:30 am »
Hi, I'm sorry if I'm not answering whether I'm using fpGUI widgetset because I don't know the difference between FGUI's..

By the way, I tried doing what you said, I removed the BGRABitmapPack4fpGUI 9.9 in the project inspector and it works! Thank you!

I only got confused because I only followed the notepad ( which was given to me by the last person who handled this project) and BGRABitmapPack4fpGUI is also included on it..




Fred vS

  • Hero Member
  • *****
  • Posts: 3459
    • StrumPract is the musicians best friend
Re: Lazarus package BGRABitmap (please help)
« Reply #5 on: October 07, 2024, 05:07:52 am »
Hi, I'm sorry if I'm not answering whether I'm using fpGUI widgetset because I don't know the difference between FGUI's..

When your project is a graphic application you may use a widgetset that will give you components ready to use like, forms, buttons, grid, images,...
Lazarus IDE has his own widgetset called LCL who use other third party widgetset like Gtk, Qt, Carbon, Win32, ...
There is the components palette with the different component that LCL offer.
But there are also other widgetset compatible with FPC, like fpGUI or MSEgui that are "pure" pascal widgetset that dont use other third party widgetset.
And the great deal of BGRABitmap is that it is compatible also with those widgetset.
 
Quote
By the way, I tried doing what you said, I removed the BGRABitmapPack4fpGUI 9.9 in the project inspector and it works! Thank you!

You are welcome.  ;)
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

 

TinyPortal © 2005-2018