Recent

Author Topic: Unable to execute a simple application  (Read 3473 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: 3237
  • 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.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
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/

 

TinyPortal © 2005-2018