Recent

Author Topic: LazPaint on MacOS  (Read 25145 times)

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: LazPaint on MacOS
« Reply #15 on: August 14, 2014, 05:36:42 am »
Finally, if u want, i can make a build like u wish, only changes made ​​in search of the benefit of the compiled macos.
Yeah, the languages files are not all finished yet, so it is preferable to have the ability to use the downloaded languages if there are some. If you don't mind, I would be happy to have new binaries. I can replace them on sourceforge after that.

Thanks for the screenshots.
Conscience is the debugger of the mind

esvignolo

  • Full Member
  • ***
  • Posts: 159
  • Using FPC in Windows, Linux, Macos
Re: LazPaint on MacOS
« Reply #16 on: August 15, 2014, 12:21:37 am »
Then for macos perhaps the best (in my humble opinion), is to look initially in user directories (where the download of the updated language is) if not to you to use the directory within the app where compilation is done. This way if he had nothing, uses an incomplete version, but it's better than nothing.
In this case, you can change the code to make it so.

Regards

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: LazPaint on MacOS
« Reply #17 on: August 15, 2014, 10:11:30 am »
That is what the code already does.

Code: [Select]
if UpdatedLanguages.IndexOf(Language)<>-1 then
    POFile:=ActualConfigDirUTF8+LazPaintLanguageFile(Language) //updated file
  else
    POFile:='';
  if (POFile='') or not FileExistsUTF8(POFile) then
    POFile:=LanguagePathUTF8+LazPaintLanguageFile(Language); //default file
Conscience is the debugger of the mind

esvignolo

  • Full Member
  • ***
  • Posts: 159
  • Using FPC in Windows, Linux, Macos
Re: LazPaint on MacOS
« Reply #18 on: August 15, 2014, 03:35:37 pm »
In Macos what value have LanguagePathUTF8, and ActualConfigDirUTF8?

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: LazPaint on MacOS
« Reply #19 on: August 15, 2014, 06:39:34 pm »
ActualConfigDirUTF8 is where the configuration files are stored. It is OS dependent. You can use Ctrl-Click to get to the definition of functions, and at some point you will get to the implementation of MacOS.

LanguagePathUTF8 is where the languages files are stored initially. I had set it to a relative path '../../Resources' or something like that and now it uses the function you provided to get the path from the root of the package.
Conscience is the debugger of the mind

esvignolo

  • Full Member
  • ***
  • Posts: 159
  • Using FPC in Windows, Linux, Macos
Re: LazPaint on MacOS
« Reply #20 on: August 19, 2014, 04:55:33 pm »
Hi Circular (again :)) if u want a new build, please tell me which of the sources with.
I do it, and upload it again.

Regards

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: LazPaint on MacOS
« Reply #21 on: August 21, 2014, 12:46:58 am »
Ok. Well, in fact there seem to be a problem with language updates, so I will not use this feature for version 6.2. Languages will be updated with next release. So the current binaries are good enough.

I will tell you when there is the next release.  :)
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: LazPaint on MacOS
« Reply #22 on: September 22, 2014, 01:23:38 pm »
Hello,

There is a new release candidate 6.3. Can you check if it is working alright on MacOS?

The image browser may work too. You can activate it by changing the directives. In lazpaintmainform.pas there is
Code: [Select]
{$IFNDEF DARWIN}
  {$DEFINE USE_IMAGE_BROWSER}
{$ENDIF}
So by removing IFNDEF and ENDIF lines, it enables it. Same thing apply to uimagelist.pas.

Regards
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint on MacOS
« Reply #23 on: September 27, 2014, 08:27:09 am »
I will try on ot Monday or Tuesday.
I rescued a PPC macbook from being thrown again (again), so if no one else is doing it, I could start providing mac builds for this retarded OS.
Well, still I have no idea how to make dmg files, it seems to be explained here.
« Last Edit: September 27, 2014, 08:31:16 am 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 #24 on: September 27, 2014, 12:52:27 pm »
Well, still I have no idea how to make dmg files, it seems to be explained here: http://forum.lazarus.freepascal.org/index.php/topic,23956.0.html.
Check my post somewhat down in that post with the commands to build a .dmg disk image. You may have to adjust the size of the initial disk image. I actually use the commands in a Makefile for my comfort. With that "make dmg" is all I need then. If you prefer tools with a GUI, take Disk Utilities from the /Applications/Utilities folder.
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

circular

  • Hero Member
  • *****
  • Posts: 4220
    • Personal webpage
Re: LazPaint on MacOS
« Reply #25 on: September 27, 2014, 02:28:33 pm »
Hi Paskal, I would really appreciate your help with MacOS. I am kind of frustrated about this because I would like LazPaint to have a chance to be run and be ok there too.
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint on MacOS
« Reply #26 on: September 28, 2014, 08:46:18 am »
Once I finish LazPaint's translation, I will try *kamischi advice.
I just wonder if builds made on PPC will work on Intel Macs?
Лазар 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 #27 on: September 28, 2014, 11:36:16 am »
I just wonder if builds made on PPC will work on Intel Macs?
As long as the system contains Rosetta which means including 10.6. My 10.7 machine is down at the moment, but it should be fixed and running in about a month's time. So, one option is to offer two versions, a powerpc version for 10.4-10.6 and an Intel-Version for 10.7 and up.

MiSchi
« Last Edit: September 28, 2014, 01:25:49 pm by kamischi »
fpc 2.6.4, lazarus 1.4.0, Mac OS X, fink

kamischi

  • Full Member
  • ***
  • Posts: 177
Re: LazPaint on MacOS
« Reply #28 on: September 28, 2014, 01:20:46 pm »
Here comes a disk image of LazPaint 6.3. It is build on 10.9. It might also run on 10.7 and 10.8, but this is untested. It may still have a problem with code signing and will bug users, whether to really execute this program.

Link: http://michael-ep3.physik.uni-halle.de/LazPaint6.3.dmg

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 #29 on: September 28, 2014, 08:06:44 pm »
I just wonder if builds made on PPC will work on Intel Macs?
As long as the system contains Rosetta which means including 10.6. My 10.7 machine is down at the moment, but it should be fixed and running in about a month's time. So, one option is to offer two versions, a powerpc version for 10.4-10.6 and an Intel-Version for 10.7 and up.

MiSchi
A week ago I thought that macs had two buttons on the touchpads (these things are extremely rare here). So I have no idea what Roseta is , but I am sure that latest MacOs working on PPC is 1.5.8. And I cannot provide a 10.4 version, since practicaly nothing works on MacOs 10.4. I suppose everyone (in case someone still uses a PPC mac) has migrated to 10.5.8.
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

 

TinyPortal © 2005-2018