Forum > macOS / Mac OS X
Cannot install Lazarus 4.0 RC1 on macOS 14.6.1
PierceNg:
--- Quote from: carl_caulkett on October 28, 2024, 12:42:05 am ---I've now got Lazarus 4.0RC1 running. The next question is what is the easiest way of copying my color configs, key mappings and code templates from 3.99?
--- End quote ---
I use scripts like these to handle different versions on Linux and macOS.
--- 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";}};} ---% cat ~/bin/laz36#!/bin/sh(cd /home/pierce/pkg/lazarus36; exec ./startlazarus --pcp=$HOME/.lazarus36 --lazarusdir=$HOME/pkg/lazarus36 &)
--- 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";}};} ---% cat ~/bin/lazb36#!/bin/shLAZB=$HOME/pkg/lazarus36/lazbuildif [ $# -eq 0 ]; then $LAZB exit 1fiexec $LAZB --pcp=$HOME/.lazarus36 --lazarusdir=$HOME/pkg/lazarus36 "$@"
PATH is manipulated by shell functions. I use zsh.
--- 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";}};} ---function fpc322path() { export OLD_PS1=$PS1 export PS1="[fpc322 laz36] $OLD_PS1" export FPCPATH=~/pkg/fpc322/bin:~/pkg/fpc322/lib/fpc/3.2.2:~/pkg/lazarus36 export PATH=$PATH0CAR:$FPCPATH:$PATH0CDR hash -r} function path0() { export PS1="%n@%m:%~%# " unset VIRTUAL_ENVIRONMENT unset JAVA_HOME unset FPCPATH unset LLVMPATH export PATH=$PATH0CAR:$PATH0CDR hash -r}
carl_caulkett:
--- Quote from: dbannon on October 28, 2024, 12:50:24 am ---
--- Quote from: carl_caulkett on October 28, 2024, 12:42:05 am ---
I've now got Lazarus 4.0RC1 running. The next question is what is the easiest way of copying my color configs, key mappings and code templates from 3.99?
--- End quote ---
Copy the config dir from your existing Lazarus to a new dir, point your new Lazarus to it (using lazarus.cfg, --pcp=xxx) and then, in the new lazarus directory, run "make useride", that will build a newer still lazarus, one with all your settings if possible. Then, start Lazarus, it will prompt you to update that config, say "yes" (after checking i really is the new config).
Davo
--- End quote ---
I've just tried that. I got this error message...
--- Code: Bash [+][-]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";}};} ---[Mon Oct 28 2024 9:48am (GMT+0000)]/Applications/Lazarus_4.0 make useridemake: -iVSPTPSOTO: Command not foundMakefile:251: *** The Makefile doesn't support target -, please run fpcmake first. Stop. [2 - USAGE][Mon Oct 28 2024 9:49am (GMT+0000)]/Applications/Lazarus_4.0
UPDATE: Just needed to add the fpc/bin/aarch64 folder to my system path.
carl_caulkett:
--- Quote from: dbannon on October 28, 2024, 12:50:24 am ---
--- Quote from: carl_caulkett on October 28, 2024, 12:42:05 am ---
I've now got Lazarus 4.0RC1 running. The next question is what is the easiest way of copying my color configs, key mappings and code templates from 3.99?
--- End quote ---
Copy the config dir from your existing Lazarus to a new dir, point your new Lazarus to it (using lazarus.cfg, --pcp=xxx) and then, in the new lazarus directory, run "make useride", that will build a newer still lazarus, one with all your settings if possible. Then, start Lazarus, it will prompt you to update that config, say "yes" (after checking i really is the new config).
Davo
--- End quote ---
Okay, I've ran make useride but it falls over with this error message...
--- Code: Bash [+][-]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";}};} ---/Applications/Lazarus_4.0 make useride./lazbuild --lazarusdir=. --build-ide=SetPrimaryConfigPath NewValue="/Applications/Lazarus_4.0/config_lazarus"Hint: (lazbuild) Primary config path: "/Applications/Lazarus_4.0/config_lazarus"Hint: (lazarus) [TPackageLinks.UpdateUserLinks] using LastUsed date of old lcl 4.99 for lcl 4.0.0.1 in /Applications/Lazarus_4.0/lcl/interfaces/lcl.lpkHint: (lazarus) [TPackageLinks.UpdateUserLinks] using LastUsed date of old lclbase 4.99 for lclbase 4.0.0.1 in /Applications/Lazarus_4.0/lcl/lclbase.lpkHint: (lazarus) [TBuildManager.SetBuildTarget] Old=aarch64-darwin--cocoa New=aarch64-darwin--cocoa Changed: OS/CPU=True LCL=FalseHint: (lazbuild) Building Lazarus IDE with profile "macOS aarch64"Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=aarch64-darwin--cocoa New=aarch64-linux--cocoa Changed: OS/CPU=True LCL=False $00000001027D2058 $0000000102716804 $0000000102D5EF20 $00000001028DEC38 $00000001028E89BC $00000001028E8E10 $0000000102717D84 $000000010271C9B4 $000000010271F5A8Error: (lazbuild) ErrorThe project uses target OS=linux and CPU=aarch64.The system.ppu for this target was not found in the FPC binary directories.Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories.lazbuild is non interactive, aborting now.make: *** [useride] Error 2
I've checked and double checked in my 3.99 Lazarus installation to make sure that no Linux options are selected for either the last project worked on or the build Lazarus settings, but still, I get this error!
Martin_fr:
I don't know the build manager thing... Maybe some setting in some package?
If you have a working IDE of any kind, try rebuilding from inside the IDE. Normally in the "Tools" menu, but may be "preferences" on Mac. Not sure....
Copying colors.
Your primary config path is normally .lazarus in your home dir. But you can check in menu View > Ide Internals > About IDE
If you haven't specified anything then your new IDE should use the same, and should therefore have the colors (but would also modify your other IDEs config).
You can start the ide with the argument --pcp=....... to have separate config.
You can also put that into a file called lazarus.cfg in the lazarus dir (but I am not sure on exact details for Mac).
You can check in "About IDE" if it worked.
Colors are in the file EditorOptions.xml
And that file can normally be copied between different Lazarus configs.
Other config files have paths in them, and if you copy then you may get weird results.
dbannon:
The project uses target OS=linux and CPU=aarch64.
I understand you are using MacOS, not Linux ?
That does not make a lot of sense.
Are we looking at an error in the makefile relating to target useride ?
Can you please confirm you are using MacOS and "make bigide" worked OK ?
Davo
Navigation
[0] Message Index
[#] Next page
[*] Previous page