Forum > macOS / Mac OS X
(Newbie) error in compiling my first macOS sample program
dng8888g:
I check on the example project hello world with a memo. Strange if you run it on the ~/.lazarus it will display the form. But if you run it outside even if I gave lazarus full disk access, nothing happen. Just a plain form without the button.
I think might be Mac is not a good idea to run this. Something is not really right.
dbannon:
Did you make and use an "Application Bundle" ?
When launching a GUI app on Mac it must be started using the Application Bundle or much of the interactive parts are disabled.
Davo
dng8888g:
Wow. That meant the demo in the YouTube would not work as such for macOS.
I read a bit about the application bundle. Whilst useful for macOS application, but as my objective currently is to see how to deal with Turbo Pascal Gamework, I would concentrate on that first. Would come back if I can migrate at least the turbo Bridge (as then I would need to run it on macOS as an application). Not promising as it use register set ... Let us see.
My new thread is here: https://forum.lazarus.freepascal.org/index.php/topic,68923.0.html
And thanks all for your help.
rich2014:
hi, dng8888g
if the version of Xcode is >=15.0, you need the latest FPC (fpc Main Trunk).
FPC was just updated three months ago to improve compatibility with XCode 15+.
https://gitlab.com/freepascal.org/fpc/source/-/commit/fd83bb10d4b3c1bc30cf3a72cd419882b63b561a
Navigation
[0] Message Index
[*] Previous page