Recent

Author Topic: Attempting to install Lazarus and build project using Circle CI fails  (Read 1243 times)

mewpokemon

  • New Member
  • *
  • Posts: 43
Heyas!

I'm trying to automate building my project on MacOS using Circle CI.

I've never worked on a Mac before so I'm totally in the dark.  However, it seems to me that something is seriously wrong with the installation procedure.  I'm executing the following commands:

Code: Bash  [Select][+][-]
  1.              
  2.                pwd
  3.               curl -L -o ~/fpc-src-3.2.2-20210709-macosx.dmg 'https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.2.0/fpc-src-3.2.2-20210709-macosx.dmg'
  4.               ls -l ~
  5.               hdiutil attach ~/fpc-src-3.2.2-20210709-macosx.dmg
  6.               ls -l /Volumes/fpcsrc-3.2.2
  7.               sudo installer -pkg /Volumes/fpcsrc-3.2.2/fpcsrc-3.2.2-20210709.pkg -target /
  8.               curl -L -o ~/fpc-3.2.2.intelarm64-macosx.dmg 'https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.2.0/fpc-3.2.2.intelarm64-macosx.dmg'
  9.               hdiutil attach ~/fpc-3.2.2.intelarm64-macosx.dmg
  10.               ls -l /Volumes/fpc-3.2.2.intelarm64-macosx
  11.               sudo installer -pkg /Volumes/fpc-3.2.2.intelarm64-macosx/fpc-3.2.2-intelarm64-macosx.mpkg -target /
  12.               curl -L -o ~/Lazarus-2.2.0-0-x86_64-macosx.pkg 'https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.2.0/Lazarus-2.2.0-0-x86_64-macosx.pkg'
  13.               sudo installer -pkg ~/Lazarus-2.2.0-0-x86_64-macosx.pkg -target /
  14.               ls -l /usr/local/bin/laz*
  15.               ls -l /Library/Lazarus/
  16.               cd /usr/local/bin
  17.               ./lazbuild ~/Project/TildaDesigner.lpr
  18.  

It tells me that there is a symbolic link from /usr/local/bin to /Library/Lazarus/lazbuild but that there is no object /Library/Lazarus.  calling lazbuild fails with lazbuild file not found.

Can anyone help me at all?

TIA


Daniel.

mewpokemon

  • New Member
  • *
  • Posts: 43
Re: Attempting to install Lazarus and build project using Circle CI fails
« Reply #1 on: February 24, 2022, 10:19:51 am »
I have achieved some limited success finding that lazbuild has actually been installed into: /Applications/Lazarus/lazbuild

Still trying to get the whole process to complete, however.


mewpokemon

  • New Member
  • *
  • Posts: 43
Re: Attempting to install Lazarus and build project using Circle CI fails
« Reply #2 on: February 24, 2022, 10:50:24 am »
The build process now works.  I'll paste the script for those interested.

However, I don't know how to provide a MacOS binary distribution.  I'll see what I can come up with.

Code: Bash  [Select][+][-]
  1.               pwd
  2.               curl -L -o ~/fpc-src-3.2.2-20210709-macosx.dmg 'https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.2.0/fpc-src-3.2.2-20210709-macosx.dmg'
  3.               ls -l ~
  4.               hdiutil attach ~/fpc-src-3.2.2-20210709-macosx.dmg
  5.               ls -l /Volumes/fpcsrc-3.2.2
  6.               sudo installer -pkg /Volumes/fpcsrc-3.2.2/fpcsrc-3.2.2-20210709.pkg -target /
  7.               curl -L -o ~/fpc-3.2.2.intelarm64-macosx.dmg 'https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.2.0/fpc-3.2.2.intelarm64-macosx.dmg'
  8.               hdiutil attach ~/fpc-3.2.2.intelarm64-macosx.dmg
  9.               ls -l /Volumes/fpc-3.2.2.intelarm64-macosx
  10.               sudo installer -pkg /Volumes/fpc-3.2.2.intelarm64-macosx/fpc-3.2.2-intelarm64-macosx.mpkg -target /
  11.               curl -L -o ~/Lazarus-2.2.0-0-x86_64-macosx.pkg 'https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.2.0/Lazarus-2.2.0-0-x86_64-macosx.pkg'
  12.               sudo installer -pkg ~/Lazarus-2.2.0-0-x86_64-macosx.pkg -target /
  13.               curl -L -o ~/bgrabitmap.zip 'https://github.com/bgrabitmap/bgrabitmap/archive/refs/tags/v11.4.zip'
  14.               unzip ~/bgrabitmap.zip -d ~/.
  15.               export PATH=/Applications/Lazarus:$PATH
  16.               make -C ~/bgrabitmap-11.4 generate
  17.               make -C ~/bgrabitmap-11.4 BGRABitmapPack
  18.               ls -l ~/bgrabitmap-11.4/bgrabitmap/lib
  19.               curl -L -o ~/virtualtreeview.zip 'https://github.com/blikblum/VirtualTreeView-Lazarus/archive/refs/heads/lazarus-v5.zip'
  20.               unzip ~/virtualtreeview.zip -d ~/.
  21.               /Applications/Lazarus/lazbuild ~/VirtualTreeView-Lazarus-lazarus-v5/Source/virtualtreeview_package.lpk
  22.               /Applications/Lazarus/lazbuild --add-package ~/VirtualTreeView-Lazarus-lazarus-v5/Source/virtualtreeview_package.lpk
  23.               /Applications/Lazarus/lazbuild ./TildaDesigner.lpr
  24.               ls -l
  25.  

mischi

  • Full Member
  • ***
  • Posts: 168
Re: Attempting to install Lazarus and build project using Circle CI fails
« Reply #3 on: February 25, 2022, 10:43:18 pm »
What do you exactly mean by macOS binary distribution?

Software for macOS usually come as app, which is a folder, app with a particular structure with the binary code, libraries, resources and so on. Such an app is usually distributed as a disk image. Lazarus can create such an app folder through the project settings. But in many cases it needs some final tweaking.

MiSchi.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1983
  • Former Delphi 1-7, 10.2 user
Re: Attempting to install Lazarus and build project using Circle CI fails
« Reply #4 on: February 26, 2022, 01:16:20 am »
See our Wiki article: Deploying Your Application - macOS Deployment.

You may also profit from checking out the Wiki's Mac Portal.
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 x86_64 Xcode 13.4
Lazarus 2.3, FPC 3.3.1 macOS 12.3.1 aarch64 Xcode 13.4

 

TinyPortal © 2005-2018