Jump to content
acaland

Lazarus/FPC support

Recommended Posts

Hello,

 

I am trying to install Python4Delphi on Lazarus 2.2.2 with FPC 3.2.2 on MacOS Monterey but I have got the following errore while compiling the package:

 

image.thumb.png.f6e7a2e1256562d563b292702c4c53e7.png

 

I have just opened the LPK package that I download from the github account of Python4delphi and compile it.

 

One more question: I see there is also a Python4Lazarus fork. What is the difference between the twos? Which one is the more updated?

 

Thanks a lot in advance

 

Best

Antonio

 

Share this post


Link to post

thank you. From the link you provided I read:

 

"MacOSX and Linux compatibility has not been fully tested. Please test and if required submit a patch."

 

So I am just testing it it is working and maybe patch it

 

Is "GetLastError()" method available only on Windows?

Share this post


Link to post
1 hour ago, shineworld said:

GetLastError() is a typical Win32 API function to get the latest error in an API call from OS.

I replaced GetLastError() with GetLastOSError() and it compiled successfully!

 

Is this supposed to achieve the same purpose but working cross platform?

thanks

 

Share this post


Link to post

thank you. I just build it and installed fine. Next I will try to run some example to check if it actually works (I have a Apple Silicon Mac) and report it later

 

By the way, what is the difference between P4D and Python4Lazarus?

 

thx

 

Share this post


Link to post
On 9/28/2022 at 10:28 PM, acaland said:

what is the difference between P4D and Python4Lazarus?

Python4Lazarus is a fork focusing on fpc support.  It does not include the based on WrapDelphi, delphifmx, delphivcl stuff. 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×