Forum > macOS / Mac OS X
Problem building runtime package on Lazarus 4.0 RC1 on macOS [SOLVED]
carl_caulkett:
--- Quote from: Martin_fr on October 28, 2024, 01:14:31 pm ---Yes, but what I meant here was more: In general, whenever you upgrade fpc from git (keeping its version number) then you should do that for all of your code. Not just this package.
And I would even do that always when switching fpc in any way at all, even if the IDE normally detects that at least if the version of fpc changed.
--- End quote ---
The only thing is that I copied the fpc, fpcbootstrap, ftppkgconfig and fpcsrc folders from my existing Lazarus 3.99 folder to my new Lazarus 4.0 folder, so fpc should be identical in both cases!
I was using an FpcUpDeluxe installed version of fpc 3.3.1 with Lazarus 3.99, in case I didn't mention it!
carl_caulkett:
I've just used FcpUpDeluxe to install a fresh fpc 3.3.1 in my Lazarus_4.0 folder. When I try to build the package in question, it still complains about the Forms unit, and presumably will also complain about the other units as well.
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---unit caEdit; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, StdCtrls, ExtCtrls;
caedit.pas(8,22) Error: Cannot find Forms used by caEdit, incompatible ppu=/Applications/Lazarus_4.0/lcl/units/aarch64-darwin/forms.ppu, package LCLBase
carl_caulkett:
I'm up and running!
I went into Configure "Build Lazarus" and set the option to Clean All along with Switch after building to automatically, and kicked off the rebuild.
I had a slight hiccup when the rebuild failed because...
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---"svn2revisioninc" can't be opened because Apple cannot check it for malicious software.This software needs to be updated. Contact the developer for more information.
but this was easily solved by opening the Svn2RevisionInc.lpi project in Lazarus 4.0 and building it.
The only slight problem is that the startlazarus loader doesn't seem to be working. It gives the error message...
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- File not foundCan't find the lazarus executable / Applications/Lazarus_4.0/ startlazarus.app/Contents/MacOS/ lazarus
In normal circumstances, it doesn't matter because I normally use the lazarus.app bundle to launch Lazarus and all is well. It's just that the Rebuild Lazarus option seems to insist on calling the startlazarus loader.
@TRon said recently that... "btw it is advisable to run startlazarus instead of lazarus (but I do not know if the mac build creates startlazarus)." but given that it doesn't work for me, I'll stick to the lazarus.app bundle ;)
Thanks to @Martin_fr, who provided me with enough clues to enable me to figure it out 🙏🏽
Navigation
[0] Message Index
[*] Previous page