Recent

Author Topic: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems  (Read 16516 times)

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #15 on: May 29, 2013, 12:02:51 am »
Compilation bgrabitmap package now OK on Ubuntu 12.04 64 bits (x86_64) :

for error on  function IntersectLine(line1, line2: TLineDef): TPointF; ( BGRABitmapTypes.pas ) :

do :
=======================================================
Code: [Select]
{$OPTIMIZATION OFF}
function IntersectLine(line1, line2: TLineDef): TPointF;
var parallel: boolean;
begin
  result := IntersectLine(line1,line2,parallel);
end;
{$OPTIMIZATION ON}
============================================================

for all errors ex: bgrasse.pas(322,3) Error: Invalid register used in memory reference expression: "xmm0"
do : replace const by constref
ex :
Code: [Select]
function DotProduct3D_128_SSE3(const v1,v2: TPoint3D_128): single; assembler;
asm
  movups xmm0, [v1]
  movups xmm1, [v2]
  mulps xmm0, xmm1

replaced by :
 
Code: [Select]
  function DotProduct3D_128_SSE3(constref v1,v2: TPoint3D_128): single; assembler;
why ?
because : The parameter passing mode "constref" ensures that something is passed
as reference and never as value.

Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #16 on: May 29, 2013, 12:45:29 am »
Thanks. I will try to update that.
Conscience is the debugger of the mind

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #17 on: May 29, 2013, 03:34:48 am »
i don't find a svn repository updated for bgrabitmap. I have created a local repository in my computer from bgrabitmap 7.2. Patch in attachment ( i don't know if it is usable but inside we can see the delta).
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #18 on: May 29, 2013, 06:55:37 pm »
Thanks, it's updated on subversion
Conscience is the debugger of the mind

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #19 on: May 30, 2013, 01:37:09 pm »
i have tested your new subversion on windows and linux. It seems to be OK for me.
 However  there is an issue with the bgrabitmap package ( it was before the patch) see here : http://www.lazarus.freepascal.org/index.php/topic,21036.msg122684.html#msg122684
a bug has been added for this  in the free pascal mantis bug tracker
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

freeman35

  • Jr. Member
  • **
  • Posts: 92
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #20 on: May 30, 2013, 05:21:05 pm »
Is this links is wrong or old for subversion address?

http://wiki.freepascal.org/BGRAControls#SVN

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #21 on: May 30, 2013, 05:34:29 pm »
no wrong version

the last version (r618 for bgrabitmap)  is here :
http://sourceforge.net/p/lazpaint/code/HEAD/tree/

Friendly, J.P
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

freeman35

  • Jr. Member
  • **
  • Posts: 92
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #22 on: May 31, 2013, 09:15:16 am »
thank you, I got it

neodarkman

  • New Member
  • *
  • Posts: 35
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #23 on: June 03, 2013, 08:20:07 pm »
Now, compile or not compile on 64bit ubuntu?

freeman35

  • Jr. Member
  • **
  • Posts: 92
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #24 on: June 04, 2013, 07:46:14 pm »
I compiled in Kubuntu 13.04 x64 and fpc and lazarus svn. NO any error

xsid

  • Newbie
  • Posts: 6
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #25 on: July 15, 2013, 09:25:49 pm »
Compilation bgrabitmap package now OK on Ubuntu 12.04 64 bits (x86_64) :

for error on  function IntersectLine(line1, line2: TLineDef): TPointF; ( BGRABitmapTypes.pas ) :

do :
=======================================================
Code: [Select]
{$OPTIMIZATION OFF}
function IntersectLine(line1, line2: TLineDef): TPointF;
var parallel: boolean;
begin
  result := IntersectLine(line1,line2,parallel);
end;
{$OPTIMIZATION ON}
============================================================

for all errors ex: bgrasse.pas(322,3) Error: Invalid register used in memory reference expression: "xmm0"
do : replace const by constref
ex :
Code: [Select]
function DotProduct3D_128_SSE3(const v1,v2: TPoint3D_128): single; assembler;
asm
  movups xmm0, [v1]
  movups xmm1, [v2]
  mulps xmm0, xmm1

replaced by :
 
Code: [Select]
  function DotProduct3D_128_SSE3(constref v1,v2: TPoint3D_128): single; assembler;
why ?
because : The parameter passing mode "constref" ensures that something is passed
as reference and never as value.

Friendly, J.P

Thank you very much! This realy works!

 

TinyPortal © 2005-2018