Recent

Author Topic: LazPaint on MacOS  (Read 25175 times)

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: LazPaint on MacOS
« Reply #30 on: September 28, 2014, 10:11:09 pm »
Rosetta is a translator of powerpc code for Intel-Macs. More details are here:

http://en.wikipedia.org/wiki/Rosetta_(software)

It is included in 10.4 - 10.6, but not later than 10.7. You are completely right. Hardly anyone uses 10.4 any longer. If there are still PowerPC-Macs, they are on 10.5. In my view, 10.6 is getting rare for Intel-Macs and even 10.7 is fading out.

MiSchi
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint on MacOS
« Reply #31 on: September 29, 2014, 09:57:32 am »
It is normal that 10.6 and 10.7 are getting rare, since on Intel macs a later OS can be installed, but on PCC 10.5 is the maximum. Anyway, once we succed to create and upload dmgs, we will see if 10.5 version is downloaded and if it is worth supporting it.
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: LazPaint on MacOS
« Reply #32 on: September 29, 2014, 02:04:20 pm »
Thanks for the binaries. Is it possible to test with the image browser (cf post about disabling compiler directive) and to test a bit each menu? I have personally no way of testing.
Conscience is the debugger of the mind

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: LazPaint on MacOS
« Reply #33 on: September 29, 2014, 04:15:21 pm »
Sorry. Not me at least for the next 4 weeks.
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: LazPaint on MacOS
« Reply #34 on: September 29, 2014, 04:20:01 pm »
Ok.
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint on MacOS
« Reply #35 on: September 29, 2014, 08:07:27 pm »
Is there something wrong in the attached image? LazPaint cannot open any of the GIFs which come with the macos, while the same file gets open in Ubuntu just fine.
Is it possible to test with the image browser (cf post about disabling compiler directive) and to test a bit each menu?
It does not work on the PPC. It shows nothing in the file window.
« Last Edit: September 29, 2014, 09:30:04 pm by paskal »
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: LazPaint on MacOS
« Reply #36 on: September 29, 2014, 11:13:39 pm »
Ah the problem may be with big endian / little endian. Values need to be swaped depending on the processor. I have updated bgraanimatedgif.pas. Does it fix the problem?
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint on MacOS
« Reply #37 on: September 30, 2014, 05:37:39 pm »
No, but before the fix the computer used to hang for minutes, now it shows an empty rectangle with the size of the image after a second or less.
I hope that someone with a later MACos will give some feedback.


Edit: I have no idea if this info is worth, but I tried to open the same GIF with TGifAnim from Wile64 and the computer hanged.
« Last Edit: September 30, 2014, 06:35:37 pm by paskal »
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: LazPaint on MacOS
« Reply #38 on: September 30, 2014, 08:30:31 pm »
i opened several image files in different formats (gif, tiff, png, jpg). All looked alright. So, endianess sounds like a plausible cause.

I forgot to mention that this was on 10.9 and Intel and not PowerPC.

MiSchi.
« Last Edit: September 30, 2014, 11:23:27 pm by kamischi »
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: LazPaint on MacOS
« Reply #39 on: September 30, 2014, 09:53:20 pm »
Ok so there is a bit of improvement, but still a problem in decoding.

EDIT:

Maybe it is the array that needs to be explicitly specified as packed:
Code: [Select]
    bytbuf:   packed array[0..255] of byte;(line 507 of bgraanimatedgif.pas)
« Last Edit: September 30, 2014, 11:37:57 pm by circular »
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint on MacOS
« Reply #40 on: October 01, 2014, 07:07:56 am »
So if the problem is caused by the processor, it means that it should exist in a Linux, run on the Mac.
EDIT: E changed the line- no change in the behaviour occurred.
« Last Edit: October 01, 2014, 06:15:08 pm by paskal »
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: LazPaint on MacOS
« Reply #41 on: October 09, 2014, 11:07:40 am »
I may have found the last problem. It can be fixed by changing line 123:
Code: [Select]
const
  {$IFDEF ENDIAN_LITTLE}
  AlphaMask = $FF000000;
  {$ELSE}
  AlphaMask = $000000FF;
  {$ENDIF}

Does it work now?
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint on MacOS
« Reply #42 on: October 13, 2014, 08:34:17 am »
So, maybe we could add something like
{$IFDEF PPC}
jpg, png,...
{$ELSE}
 jpg, png, gif...
{}
to remove gif from the supported extensions when PPC is used. As soon as I succeed to repartition Mac's HDD I will install a Linux on it and check if the problem will still exists.
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: LazPaint on MacOS
« Reply #43 on: October 13, 2014, 12:48:13 pm »
Agreed.
Conscience is the debugger of the mind

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: LazPaint on MacOS
« Reply #44 on: October 13, 2014, 02:07:04 pm »
i would make it bigendian/littleendian for 2 reasons:
1) the reason becomes more obvious
2) there may be other bigendian platforms besides ppc (armeb?)
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

 

TinyPortal © 2005-2018