Recent

Author Topic: Installing on older MAC laptop  (Read 5401 times)

jcdammeyer

  • Full Member
  • ***
  • Posts: 205
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #15 on: December 22, 2020, 10:47:22 am »
Tried building the simple form.
Agreeing to Xcode/iOS license requires admin privileges, please rerun as root via sudo

I don't see how to do that.

After that it can't execute ppcx64

Why is this so hard?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
Re: Installing on older MAC laptop
« Reply #16 on: December 22, 2020, 10:52:33 am »
Did you install the Xcode command line tools using "sudo xcode-select --install" command? That should have taken care of that.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Installing on older MAC laptop
« Reply #17 on: December 22, 2020, 11:49:53 am »
Did you follow the instructions? There was one to approve the licence after installing the command line tools. As the Wiki is down at the moment, the instruction was to run:

sudo xcodebuild -license accept

jcdammeyer

  • Full Member
  • ***
  • Posts: 205
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #18 on: December 22, 2020, 06:28:39 pm »
I ran the sudo xcode-select ...
Odd thing. Even before xcode was installed that command told me command line tools were already installed.  I think because of that I might not have done the license accept.
Doing it this time let me get much further.

Building simple menu for the first time compiles all sorts of stuff like the component libraries.  Including carbonbars.pp which has this at the front of the code and creates this error:

{$IFNDEF cpui386}
{$ERROR only cpu i386 is supported}
{$ENDIF}

The source code for the Windows install has the same #ifndef but running in a pc doesn't fail.  Since this laptop has an Intel Core Duo there must be a define that is set automatically on windows installs? 

Or the maybe path to certain subfolders.  I just checked and the Rasperry Pi install of Lazarus doesn't build this when asked to do a cleanup and build since it definitely doesn't have an cpui386 processor core.

This is the first file where it failed.  How many others?  Or should the cpui386 be defined in this ide?
Or because "xcode-select --install" (without the quotes) ran and told me it was already installed was it maybe not installed properly for fpc?

Getting closer on this 'Mac' ;)

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
Re: Installing on older MAC laptop
« Reply #19 on: December 22, 2020, 07:28:19 pm »
Either change the widgetset from Carbon to Cocoa (Project Options -> Compiler Options -> Additions and Overrides -> Set "LCLWidgetSetType", or change the target cpu from default/x86-64 to i386 (Project Options -> Compiler Options -> Config and Target).

jcdammeyer

  • Full Member
  • ***
  • Posts: 205
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #20 on: December 22, 2020, 07:52:36 pm »
I went the i386 route in order to be able to compile and run projects I write for windows and Pi/Beagle.  Don't want to start changing the graphical stuff for simple projects.

Also it won't run with the debugger.  Missing ilent error. Click on OK and then it tells me debugger has crashed,


jcdammeyer

  • Full Member
  • ***
  • Posts: 205
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #21 on: December 22, 2020, 09:07:09 pm »
One other thing.   I've tried to install the LazSerial package so I can have access to a USB FTDI serial dongle.  The ifdefs are for Windows and Linux.    Given that this OS under the covers is essentially Linux...

Is it easy to modify packages like this:  I have a CANopen Lite program that runs on Windows, Pi and Beagle all using the Lawicel CANUSB dongle.

Code: Pascal  [Select][+][-]
  1. uses
  2. {$IFDEF LINUX}
  3.   Classes,
  4. {$IFDEF UseCThreads}
  5.   cthreads,
  6. {$ENDIF}
  7. {$ELSE}
  8.   Windows, Classes, //registry,
  9. {$ENDIF}
  10.   SysUtils, lazsynaser,  LResources, Forms, Controls, Graphics, Dialogs,
  11.   PropEdits;
  12.  

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Installing on older MAC laptop
« Reply #22 on: December 22, 2020, 10:10:45 pm »
Also it won't run with the debugger.  Missing ilent error. Click on OK and then it tells me debugger has crashed,

Did you setup the debugger as per the instructions in Step 5?

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
Re: Installing on older MAC laptop
« Reply #23 on: December 22, 2020, 10:22:27 pm »
Given that this OS under the covers is essentially Linux...
That's a misunderstanding.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Installing on older MAC laptop
« Reply #24 on: December 22, 2020, 10:24:19 pm »
Given that this OS under the covers is essentially Linux...

Nope; macOS is a certified UNIX and not a UNIX-like derivative like Linux, and Linux is just a kernel, not an operating system (eg there's a Linux distribution with a FreeBSD userland).

jcdammeyer

  • Full Member
  • ***
  • Posts: 205
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #25 on: December 22, 2020, 10:26:41 pm »
Yes.  Unless I missed something. 
For the command line it does tell me that command line tools are already installed.  Use "Software and Update" to install updates.

I take it this isn't as easy as sudo apt-get update
Clicking on the XCode icon under Programs launches a Verifying Xcode dialog with a progress bar.

I really appreciate your patience. 
Thanks
John
P.S.  Ah.  And here I thought everyone went Linux kernel under the covers.

jcdammeyer

  • Full Member
  • ***
  • Posts: 205
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #26 on: December 22, 2020, 10:45:55 pm »
When running xcode the about says 7.2.1 and I can create and build projects with it from what I can see.


jcdammeyer

  • Full Member
  • ***
  • Posts: 205
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #27 on: December 22, 2020, 10:47:53 pm »
BTW, under Applications the Lazarus ICON has a white No Entry symbol on top of it.  I can still click and run and the task bar shows the normal ICON.  But is this a clue?
« Last Edit: December 22, 2020, 10:51:17 pm by jcdammeyer »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Installing on older MAC laptop
« Reply #28 on: December 23, 2020, 07:01:01 am »
Sometimes Finder's icon caching hiccups.

As you've managed to install Lazarus successfully and can compile and run applications, I've moved your application issues to the Operating Systems > macOS / Mac OS X forum.

jcdammeyer

  • Full Member
  • ***
  • Posts: 205
  • Embedded System Developer
    • Automation Artisans Inc.
Re: Installing on older MAC laptop
« Reply #29 on: December 23, 2020, 07:05:54 am »
Can't debug without it crashing so installation is still lame.

 

TinyPortal © 2005-2018