Recent

Author Topic: bgrabitmap installation problem  (Read 11625 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
bgrabitmap installation problem
« on: July 29, 2016, 10:08:56 am »

Hello guys, I tried to install bgrabitmap on windows and mac and it works properly. When I try to install it on ubuntu he tells me:

Messaggi, avvertimenti: 1
Warning: other unit files search path (aka unit path) of "project1" contains "/home/francesco/Documenti/Lazarus_Componenti/bgrabitmap9.1", which belongs to package "BGRABitmapPack"
Compile package BGRABitmapPack 9.1: Codice di uscita 256, Errori: 1
bgrasvg.pas(346,8) Error: Internal error 2012090607


This when I compile it to install it in Lazarus 1.6

It goes into error on line

with ViewBox do

into this code

Code: Pascal  [Select][+][-]
  1.     function TBGRASVG.GetViewBox(AUnit: TCSSUnit): TSVGViewBox;
  2.     begin
  3.       with ViewBox do
  4.       begin
  5.         result.min := FUnits.ConvertCoord(min,cuCustom,AUnit);
  6.         result.size := FUnits.ConvertCoord(size,cuCustom,AUnit);
  7.       end;
  8.     end;
  9.  

Why?

Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: bgrabitmap installation problem
« Reply #1 on: July 29, 2016, 04:15:45 pm »
I guess it is that the path of BGRABitmap has been added to the project and at the same time the package BGRAbitmapPack has been added to the project. So I would suggest to remove the path in the project options.
Conscience is the debugger of the mind

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: bgrabitmap installation problem
« Reply #2 on: July 29, 2016, 05:36:24 pm »
Does not work. He keeps giving me the same problem.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: bgrabitmap installation problem
« Reply #3 on: July 29, 2016, 08:10:47 pm »
Are you sure?

If you go in the menu Project > Options, and then in Compiler Options > Paths, what do you have?
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: bgrabitmap installation problem
« Reply #4 on: July 29, 2016, 08:41:50 pm »
Better create a new project to test it.

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: bgrabitmap installation problem
« Reply #5 on: July 29, 2016, 08:55:04 pm »
Project option
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: bgrabitmap installation problem
« Reply #6 on: July 29, 2016, 08:59:13 pm »
error
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: bgrabitmap installation problem
« Reply #7 on: July 29, 2016, 09:03:08 pm »

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: bgrabitmap installation problem
« Reply #8 on: July 29, 2016, 09:54:06 pm »
I do not understand, my source is already:

{$PUSH}{$OPTIMIZATION OFF} //avoids Internal error 2012090607
procedure TBGRASVG.SetViewBox(AValue: TSVGViewBox);
begin
  FUnits.ViewBox := AValue;
end;
{$POP}
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: bgrabitmap installation problem
« Reply #9 on: July 30, 2016, 12:54:05 am »
Ok. Try adding the same around the GetViewBox function.
Conscience is the debugger of the mind

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: bgrabitmap installation problem
« Reply #10 on: July 30, 2016, 09:51:58 am »
Already tried. But it does not work. I am attaching image
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: bgrabitmap installation problem
« Reply #11 on: July 30, 2016, 10:41:10 am »
Thanks for the screenshot.

Hmmm... what about assigning the value of ViewBox to a variable like this?

Code: Pascal  [Select][+][-]
  1. function TBGRASVG.GetViewBox(AUnit: TCSSUnit): TSVGViewBox;
  2. var vb: TSVGViewBox;
  3. begin
  4.   vb := ViewBox;
  5.   result.min := FUnits.ConvertCoord(vb.min,cuCustom,AUnit);
  6.   result.size := FUnits.ConvertCoord(vb.size,cuCustom,AUnit);
  7. end;
« Last Edit: July 30, 2016, 03:44:02 pm by circular »
Conscience is the debugger of the mind

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: bgrabitmap installation problem
« Reply #12 on: July 30, 2016, 01:00:34 pm »
This is result
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: bgrabitmap installation problem
« Reply #13 on: July 30, 2016, 03:44:27 pm »
Oh sorry I mistyped. It is
Code: Pascal  [Select][+][-]
  1. vb := ViewBox;
Conscience is the debugger of the mind

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: bgrabitmap installation problem
« Reply #14 on: July 30, 2016, 03:57:46 pm »
Not solved
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018