Now compile your project - with any luck it will work OK.Ĭarbonproc.pp(563,13) Error: Identifier not found "ATSUFindFontFromName".Make sure under Tools->Options that "Compiler Executable" is set to "/usr/local/bin/fpc" to get 64 bit apps. In the past, for some reason Lazarus kept setting the compiler to "/usr/local/bin/ppc386" - which results in 32 bit apps.In the "Additions and Overrides" panel click on "Set LCLWidgetType" pulldown and set the value to "Cocoa".In the "Config and Target" panel set the "Target CPU family" to be "x86_64".Open your project with Lazarus and click Project/Project Options.You may need to set the Target to the 64bit processor and select the Cocoa Widget set: Prepare your Lazarus project for using Cocoa Do not forget to add OPT=" if you're on 10.7 or earlier: Run the command to install the package (to the default system location). This should compile A 64-bit version of the FPC packages.ĩ. The RTL is needed to compile packages in the next step. This should compile a 64-bit version of the RTL. Go back to the root directory of the sources. Edit CocoaAll.pas and comment out or remove The CoreImage linking line: Go to %sourcesdir%/packages/cocoaint/srcģ. Get the FPC sources (you might have them already installed with Lazarus, as it's a prerequisite for the IDE).Ģ. In order to fix that one might want to update headers and recompile them from the sources.ġ. They were all part of QuartzCore framework).Ĭompiling any unit using CocoaAll will likely cause the linking stage to fail on macOS 10.10 and earlier, as the framework doesn't exist. (The CoreImage APIs were available since 10.4, BUT there was a stand-alone CoreImage framework. The framework was introduced in macOS 10.11 and later. The precompiled CocoaAll header comes with an instruction to link the CoreImage framework. The Cocoa interface uses the native support in Free Pascal for direct communication with Objective-C which was added through the Objective Pascal dialect.įor macOS 10.14 Mojave and later you should be installing FPC 3.2.0 available from the official Lazarus IDE file area. 2.2 Prepare your Lazarus project for using Cocoa.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |