Recent

Author Topic: BGRAGtkBitmap  (Read 4259 times)

abtaylr

  • Full Member
  • ***
  • Posts: 107
BGRAGtkBitmap
« on: October 16, 2015, 07:55:51 pm »
I have been unable to find the file BGRAGtkBitmap.pas in lazarus-code-1118 which I recently downloaded.  References to this file, as well as BGRAQtBitmap and BGRALCLBitmap, are made in BGRABitmap.pas.

CM630

  • Hero Member
  • *****
  • Posts: 1404
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: BGRAGtkBitmap
« Reply #1 on: May 13, 2025, 07:51:00 pm »
I have the same problem in Linux Mint Cinnamon, Lazarus 4.0 so I cannot install BGRABitmap.

It seems I need LazOpenGLContext, but where am I to find a working one? It is not available in the OnlinePackage Manager, I found an ancient version somewhere, but it won't install:
Quote
glgtkglxcontext.pas(86,12) Error: Can't find unit GLGtkGlxContext used by OpenGLContext
(GLGtkGlxContext is not missing, it is there).
« Last Edit: May 13, 2025, 08:17:00 pm by CM630 »
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

W126

  • Newbie
  • Posts: 2
Re: BGRAGtkBitmap
« Reply #2 on: May 13, 2025, 10:12:53 pm »
Same with Debian 12

Fred vS

  • Hero Member
  • *****
  • Posts: 3624
    • StrumPract is the musicians best friend
Re: BGRAGtkBitmap
« Reply #3 on: May 13, 2025, 10:44:48 pm »
Did you try to download from dev branch  (click on green button + download zip) ?
https://github.com/bgrabitmap/bgrabitmap/tree/dev-bgrabitmap

And install the package /bgrabitmap-dev-bgrabitmap/bgrabitmap/bgrabitmappack.lpk in Lazarus?
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

CM630

  • Hero Member
  • *****
  • Posts: 1404
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: BGRAGtkBitmap
« Reply #4 on: May 15, 2025, 06:15:05 am »
Thanks, I tried. It still showed the same error once or twice, but somehow I suceeded to install.
I added
/usr/share/lazarus/4.0.0/components/opengl/
 in
Main menu — Project — Project Options... — Compiler Options  Paths — Other unit files (-Fu):,
 which still does not seem to make sense to me, since I expected to install the component for the IDE, not for the project  :o
« Last Edit: May 15, 2025, 09:39:11 am by CM630 »
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

Fred vS

  • Hero Member
  • *****
  • Posts: 3624
    • StrumPract is the musicians best friend
Re: BGRAGtkBitmap
« Reply #5 on: May 15, 2025, 04:01:29 pm »
Thanks, I tried. It still showed the same error once or twice, but somehow I suceeded to install.
I added
/usr/share/lazarus/4.0.0/components/opengl/
 in
Main menu — Project — Project Options... — Compiler Options  Paths — Other unit files (-Fu):,
 which still does not seem to make sense to me, since I expected to install the component for the IDE, not for the project  :o

Hum, strange, you should install only bgrabitmappack.lpk, nothing more and all should be out-of-the-box.

By the way the window manager Cinnamon is buggy ("by default" they say ?¿!!), it does not follow the X11 atoms rules, but this is a other story.

I have installed a VM of Linux Mint 22.1 Cinnamon 64 bit, + Lazarus 4.1 + BGRABitmap package, all seems ok, could you give a demo (or link to) where you get problems?

Picture of demo /bgrabitmap/test/test4lcl
« Last Edit: May 15, 2025, 05:43:42 pm by Fred vS »
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

CM630

  • Hero Member
  • *****
  • Posts: 1404
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: BGRAGtkBitmap
« Reply #6 on: May 15, 2025, 09:26:32 pm »
If I am not wrong, what exactly I had problems installing is BGLControls 1.2, I think I do not need the other components of BGRABitmat (I tried to install the entire package first).
Could I supply some more info?
I am trying to uninstall BGLControls and lazopenglcontext, but the IDE does not recompile.

Maybe there is some general issue with Lazarus, I has some other issue, which might be related:
https://forum.lazarus.freepascal.org/index.php/topic,71093.msg554390.html#msg554390 (this case is observed in Windows, too and is actually quite old, as far as I was told).
« Last Edit: May 15, 2025, 09:32:13 pm by CM630 »
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

Fred vS

  • Hero Member
  • *****
  • Posts: 3624
    • StrumPract is the musicians best friend
Re: BGRAGtkBitmap
« Reply #7 on: May 15, 2025, 09:35:47 pm »
I always install Lazarus via fpcupdeluxe and all install+work out of the box.
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

CM630

  • Hero Member
  • *****
  • Posts: 1404
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: BGRAGtkBitmap
« Reply #8 on: May 15, 2025, 10:08:29 pm »
These instructions https://wiki.lazarus.freepascal.org/fpcupdeluxe seem to me like a couple of hours trying to install fpcupdeluxe with uncertain success.
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: BGRAGtkBitmap
« Reply #9 on: May 15, 2025, 10:25:32 pm »
These instructions https://wiki.lazarus.freepascal.org/fpcupdeluxe seem to me like a couple of hours trying to install fpcupdeluxe with uncertain success.
Too less information.

Do you run FPCUpDeluxe as a user with elevated access rights ? or does the user have any write access to usr/share ? (both should usually be answered with no and any deviation on that expresses different symptoms).

When installed in user-space you would have a hard time to let FPCUpDeluxe fail (unless there is a specific issue related to the platform).

What is your exact setup (I did not see it mentioned either in this or linked thread(s)) ?

PS: OP posted this 10 years ago. So as a estimated guess, this has nothing to do with the original issue as mentioned.
« Last Edit: May 15, 2025, 10:44:36 pm by TRon »
Today is tomorrow's yesterday.

Fred vS

  • Hero Member
  • *****
  • Posts: 3624
    • StrumPract is the musicians best friend
Re: BGRAGtkBitmap
« Reply #10 on: May 15, 2025, 10:49:13 pm »
These instructions https://wiki.lazarus.freepascal.org/fpcupdeluxe seem to me like a couple of hours trying to install fpcupdeluxe with uncertain success.

Do it the easy way.

First install the dependencies via terminal:

Code: Pascal  [Select][+][-]
  1. sudo apt-get update
  2.  
  3. sudo apt-get install libx11-dev
  4. sudo apt-get install git
  5. sudo apt-get install make
  6. sudo apt-get install binutils
  7. sudo apt-get install libgdk-pixbuf2.0-dev
  8. sudo apt-get install libpango1.0-dev
  9. sudo apt-get install libgtk2.0-dev
  10. sudo apt-get install gdb

1) Download the binary of fpcupdeluxe from there, choosing the one for your system:
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases

2) Unzip it and set it as executable (right-mouse-button, properties, permission).

3) Run it and select "fpc stable" and the Lazarus version you want ex: 4.0 + fixes.

4) Click on "Install fpc and Lazarus".

5) When done, start Lazarus fom the new fpcupdate/Lazarus icon on the desktop.

6) In lazarus install the BGRABitmap.pkg only package.

7) Enjoy.
« Last Edit: May 15, 2025, 11:03:42 pm by Fred vS »
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

Fred vS

  • Hero Member
  • *****
  • Posts: 3624
    • StrumPract is the musicians best friend
Re: BGRAGtkBitmap
« Reply #11 on: May 15, 2025, 10:59:23 pm »
And if your previous installation of fpcupdeluxe was not ok:

1) Delete the directory /home/you/fpcupdeluxe and fpcupdeluxe.ini, fpup.ini that are in the same directory as binary fpcupdeluxe downloaded.

2) Re-run fpcupdeluxe binary downloaded and re-install fpc + Lazarus.
« Last Edit: May 15, 2025, 11:20:47 pm by Fred vS »
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

Fred vS

  • Hero Member
  • *****
  • Posts: 3624
    • StrumPract is the musicians best friend
Re: BGRAGtkBitmap
« Reply #12 on: May 15, 2025, 11:30:05 pm »
It can be also that there is conflict between the fpc.cfg installed in /etc/fpc.cfg by fpc-install-deb prior than via fpcupdeluxe.
In that case, just delete /etc/fpc.cfg:

Code: Pascal  [Select][+][-]
  1. $ sudo rm /etc/fpc.cfg

The one from fpcupdeluxe will then be used.
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

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: BGRAGtkBitmap
« Reply #13 on: May 15, 2025, 11:42:27 pm »
It can be also that there is conflict between the fpc.cfg installed in /etc/fpc.cfg by fpc-install-deb prior than via fpcupdeluxe.
Should not be possible though Lazarus is able to pick up on /other/ compiler installations.

That is why you should make sure that Lazarus uses the fpc.sh script which forces FPC to use the correct fpc.cfg configuration file. Same goes for the make(-file) that is used for  rebuilding the IDE (which btw seem to cause more issues).
Today is tomorrow's yesterday.

circular

  • Hero Member
  • *****
  • Posts: 4441
    • Personal webpage
Re: BGRAGtkBitmap
« Reply #14 on: May 15, 2025, 11:43:34 pm »
I added
/usr/share/lazarus/4.0.0/components/opengl/
 in
Main menu — Project — Project Options... — Compiler Options  Paths — Other unit files (-Fu):,
 which still does not seem to make sense to me, since I expected to install the component for the IDE, not for the project  :o
Hi CM630,

While adding this search path could help compile the package, it also duplicates the binaries for the units as they are found in the package located in components/opengl. This explains the compilation errors you get later about "checksum changed".

What I suggest is to remove this path, and to open the OpenGL package without Lazarus and try to compile it. And then to clean and compile BGRABitmap and BGLControls package. The clean part is important to remove the compiled unit that was imported before.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018