Writing Code for Mac Using Lazarus

I did a little work on the free lazarus pascal. Therefore, when a client asked me to write a Mac application, after the initial step "this cannot be done." (followed by asp.net, maybe the stage), I thought about writing it using lazarus.

Question. I only have a virtual machine with Mac OSX, which means that I really do not want to develop on a Mac. However, I just can't get the applications that I wrote in lazarus on windows to work on Mac. I tried deployment using the Lazarus Wiki and the MACOS folder is empty, and so when I put it on the mac, it does not start the application,

What is the best way to do this, or am I barking the wrong tree?

+5
source share
3 answers

Which linker and assembler do you use to create binaries? As far as I know, the linker for the latest versions of OS X is not available in the source.

Afaik, what you want (scrambling on Mac) is not possible for the latest versions (and I did this for PowerPC in the past).

The easiest way is to use the Unix “file” command in the binary to see what is being generated and make sure that it is reading something using “MachO”. The simplest thing is if you have Linux installed (where this command is pretty standard), but versions can also be found for windows (cygwin, mingw and 3rd party).

+3
source

, -, , , .

XCode, FreePascal Lazarus MacOX. Windows/Linux. , Mac .

, , ( ) MacOS, .

+4

, , - , Windows 10 , Mac.

My route was to install Xcode 4.3 on an old Mac Mini running a snow leopard, and then install Lazarus using the fink version, as described here . This took some time, but was done in the evening.

Then I just copied my folder on Mac, opened lpi on Mac, compiled it. This failed, so I deleted the windows links, recompiled them, and worked. I was really amazed.

+4
source

All Articles