I posted here (
https://forum.lazarus.freepascal.org/index.php/topic,67059.0.html) at first, but I'll past here the main info.
Context:
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 tried 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
- Error: Error while linking
I should point out that I've managed to compile and run simple hello world type programs without any problems.
I use:
- MacOS M1 Sonoma 14.4.1
- Lazarus 3.2
- FPC 3.2.2
I put in message.txt the output of the "Messages" window (since the "Debut Output" does not display anything?)