Forum > macOS / Mac OS X

Unable to execute a simple application

(1/1)

roshrnair:
Lazarus 1.8.4
FPC 3.0.4
MacOS Mojave Version 10.14

I am new to Lazarus. Have used Delphi long back.
Getting error at the following code when trying to execute the application

begin
    OSError(ATSUFindFontFromName(@fn[1], Length(fn),
        lclFontName, lclFontPlatform, lclFontScript,
        lclFontLanguage, Result),
      'FindCarbonFontID', 'ATSUFindFontFromName');
  end;

Error:
carbonproc.pp(538,13) Error: Identifier not found "ATSUFindFontFromName"

LCL Widget type is set as carbon.

Blaazen:
I have no experience in Apple world but Google found this error described here: http://wiki.lazarus.freepascal.org/Cocoa_Interface#Compiling

Navigation

[0] Message Index

Go to full version