Hello
,
(beginner's question) I have a compiled Delphi project that works as expected on a Windows. I'd like to use the source code to compile it for the Mac as well, but I'm at a sticking point.
The project basically contains 6 .pas files and 1 .dpr file.
I have installed Lazarus (following the tutorial here
https://wiki.lazarus.freepascal.org/Installing_Lazarus_on_macOS), then FPC.
I then converted the Delphi project into a Lazarus project using the tool provided in Lazarus. It worked as expected (some modifications in the files and appearance of a .lpr as well as .lpi etc).
I then try to compile the project. I've tried both "Compile" and "Clean up and Build", but both lead to the same errors after about 10/15 seconds of compilation:
- Error: -macosx_version_min has been renamed to -macos_version_min
- Error: linker: Undefined symbols for architecture x86_64:
- Error: linker: "WSRegisterBevel", referenced from:
- Error: ld: symbol(s) not found for architecture x86_64
- and finally: Error: Error while linking
There is definitely something related to the linker, but I can't find what the problem actually is and/or what should I do.
I should point out that I've managed to compile and run simple hello world type programs without any problems.
I use:
- MacOS Sonoma 14.4.1
- Lazarus 3.2
- FPC 3.2.2
Any hint or help would be highly appreciated