Recent

Author Topic: BGRABitmap 2018-06-17 attempted update in package Manager  (Read 4037 times)

PaulANormanNZ

  • Full Member
  • ***
  • Posts: 117
BGRABitmap 2018-06-17 attempted update in package Manager
« on: July 01, 2018, 01:44:23 pm »
HI,

I just tried to Update

BGRABitmap
BGRACOntrols
and BGRAControlsFX

Marked with NEW in the Online Package Manager.

Said it down loaded and installed ok

Then when it went to rebuild the Lazarus IDE
I get surprisingly...

bgracanvas.pas(1436,33) Error: Incompatible type for arg no. 3: Got "TBitmap", expected "TBGRACustomBitmap"

Which is an overloaded prodcedure...

Code: Pascal  [Select][+][-]
  1. procedure TBGRACanvas.Draw(X, Y: Integer; SrcBitmap: TBitmap);
  2. begin
  3.   FBitmap.PutImage(X,Y,SrcBitmap,dmDrawWithTransparency);
  4. end;  
  5.  

I now seem to have a corrupted IDE and obviously can not rebuild standard projects using TBGRABitmap - what to do now please?

TIA
Paul

EDIT: Lazarus 1.8.0 r56594 FPC 3.0.4 x86_64-win64-win32/win64
« Last Edit: July 02, 2018, 01:19:29 am by PaulANormanNZ »

lainz

  • Hero Member
  • *****
  • Posts: 4738
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #1 on: July 01, 2018, 04:29:23 pm »
Lazarus and FPC version?

lainz

  • Hero Member
  • *****
  • Posts: 4738
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #2 on: July 02, 2018, 02:36:29 am »
Hi,

I've downloaded and installed Lazarus 1.8.0 64-bit in a secondary installation, a fresh install.

Then I installed OPM from the Lazarus 1.8.0 components folder. Rebuilt Lazarus.

And finally I installed BGRABitmap, BGRAControls and BGRAControlsFX with OPM. Rebuilt Lazarus, and it starts normally.

lainz

  • Hero Member
  • *****
  • Posts: 4738
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #3 on: July 02, 2018, 02:39:54 am »
I'm not saying that the problem is not real, I had similar problems in the past. And is usually due to old built files (.o and .ppu, inside the lib folder) that are not rebuilt when upgrading to a newer version.

Try deleting the BGRABitmap folder (or just the lib folder) from your Lazarus settings (OPM folder) and reinstall it.

PaulANormanNZ

  • Full Member
  • ***
  • Posts: 117
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #4 on: July 02, 2018, 04:46:41 am »
Thanks very much,

Will do.

Paul

PaulANormanNZ

  • Full Member
  • ***
  • Posts: 117
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #5 on: July 02, 2018, 05:16:50 am »
Opps!

Will try and get back to base level using the OLD copy of the Lazarus.exe

Thanks,
Paul

lainz

  • Hero Member
  • *****
  • Posts: 4738
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #6 on: July 02, 2018, 02:38:12 pm »
Ouch. It never happened to me before

Try reinstall Lazarus but keep your settings. Then the next rebuild you must have everything as it was.

PaulANormanNZ

  • Full Member
  • ***
  • Posts: 117
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #7 on: July 02, 2018, 03:21:03 pm »
Thanks Lainz,

Yes was thinking I should look at that, or even seeing if there was an upgrade available now.

Just what things should I do to keep my settings please?

TIA
PAul

lainz

  • Hero Member
  • *****
  • Posts: 4738
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #8 on: July 02, 2018, 03:32:59 pm »
If I remember it well the setup prompt if you want to keep your settings. And yes there is a new version.

PaulANormanNZ

  • Full Member
  • ***
  • Posts: 117
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #9 on: July 04, 2018, 12:41:34 am »
Thanks for your help Lainz,

Well this ended up being a very strange one.

I had to just scrap the whole previous installation.

I had not placed any new components for ages, and things seemed to have been running well right up to the time the BGRA components seemed to give trouble - but I don't think it was them as such.

Updating them in the Online Package Manager (OPM) then led to this problem (previous messages).

Ended up wiping the very directories, OPM directories - all settings - just everything.

Utterly clean install of everything appeared to be required, and  then relocating and installing the few previous components not covered by the OPM (like CEF3).

IDE is fine now (as expected from a clean install).

Lazarus 1.8.4 r57972 FPC 3.0.4 x86_64-win64-win32/win64

Current project now reopens, compiles and runs successfully - now back to original reason for these BGRA posts :-)

Is there a way during install to go for a BigIDE full component set, just like Code Typhon (which I completely migrated away from quite a while ago)?

Paul

lainz

  • Hero Member
  • *****
  • Posts: 4738
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: BGRABitmap 2018-06-17 attempted update in package Manager
« Reply #10 on: July 04, 2018, 02:17:20 am »
No but now is more easy with OPM. Just install all you need or everything.

 

TinyPortal © 2005-2018