Recent

Author Topic: Unable to execute a simple application  (Read 2364 times)

roshrnair

  • Newbie
  • Posts: 1
Unable to execute a simple application
« on: October 30, 2018, 06:46:58 pm »
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

  • Hero Member
  • *****
  • Posts: 2782
  • POKE 54296,15
    • Eye-Candy Controls
Re: Unable to execute a simple application
« Reply #1 on: October 30, 2018, 11:25:37 pm »
I have no experience in Apple world but Google found this error described here: http://wiki.lazarus.freepascal.org/Cocoa_Interface#Compiling
Lazarus 2.1.0 r59757M FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/