Forum > Lazarus

Lazarus Release Candidate 1 of 3.0

<< < (36/36)

Tomki:
"open" means doubleclick in the finder... 
What is the unique " Lazarus configuration directory"? What needs to be in there or what do I have to look for? Do I have to create it - since there is no such directory created during build?!
The "make" process went normal as far as I can tell, so everything should be in place.
This might be a very minor problem, I'm just to stupid to solve it  :'(

TRon:

--- Quote from: Tomki on October 24, 2023, 04:02:20 pm ---"open" means doubleclick in the finder... 

--- End quote ---


--- Quote ---What is the unique " Lazarus configuration directory"?

--- End quote ---
Some directory, you decide wherever, that keeps track of all your Lazarus settings. Hence, specific for this particular version of Lazarus especially if/when you use multiple installations.


--- Quote ---What needs to be in there or what do I have to look for?

--- End quote ---
There does not have to be anything inside it. Even stronger, on/for a new fresh install of Lazarus make sure the directory itself is empty, completely empty and does not contain any files whatsoever. Did I already mention it needs to be empty because if not then I just mention that it must be empty. So whatever you do, make sure it is empty  :D

See also: https://wiki.lazarus.freepascal.org/pcp


--- Quote --- Do I have to create it - since there is no such directory created during build?!

--- End quote ---
On Linux Lazarus and startlazarus will create that directory for you in case it does not exist. On MacOS ? I have no idea.

The important part to realize there is whenever you omit the --pcp option that lazarus will search and store the configuration files into a default storage location. And it will do, using the same directory, for every Lazarus version that you install. Mixing configuration between different versions of Lazarus can become problematic, especially when your old(er) installation already had additional(3th party)  components installed in the IDE.


--- Quote ---This might be a very minor problem, I'm just to stupid to solve it  :'(

--- End quote ---
It probably is but my knowledge on how macos (desktop) solve things is not available so all I can rely on is your feedback.

I do know that using the finder dialog in Linux has similar issues with not providing the pcp option as by default that also tries to launch the executable from the path (that is why I prefer a shortcut) but at least there I can solve it by overriding the executable by a) removing any path to lazarus and b) adding a shortcut to the finder utility so that finder will always use my special crafted shortcut (which contains the --pcp option) and c) use the .lazarus.cfg file inside the lazarus directory (but according to dbannon that solution does not seem to work for macos and finder).

dbannon:

--- Quote from: Tomki on October 24, 2023, 01:02:53 pm ---What I cannot relate to are Davo's instructions
LAZARUS=lazarus-main
open "$HOME/bin/Lazarus/$LAZARUS"/lazarus.app --args "--pcp=$HOME/bin/Lazarus/Configs/$LAZARUS"

--- End quote ---

Sorry Tomki, those lines would go in a script normally, an executable script. If you don't mind a lot of typing, you could just type in -

--- 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";}};} ---$> open "$HOME/bin/Lazarus/lazarus-main/lazarus.app --args "--pcp=$HOME/bin/Lazarus/Configs/lazarus-main"Its a long command line and therefore prone to mistakes. So, unix people in particular like to make little scripts that remember all the hard stuff for us.

The important thing here is that you open lazarus.app (or startlazarus.app) not just lazarus (or startlazarus). This is a Mac thing, hard, from what little I know about Mac, to tell the difference between 'lazarus' and 'lazarus.app' in the Finder because Mac likes to hide the extension (much the same as Windows). I suspect that is your problem. Don't forget, that command line suits me, I have my Lazarus installs down in a $HOME/bin/Lazarus and I make a directory $HOME/bin/Lazarus/Configs - understanding that, you can see what you need to change in that command line to suit your locations.

When Lazarus opens up without its menus and you cannot use the mouse, its usually (always ?) because you have launched the binary (lazarus or startlazarus) and NOT the correct lazarus.app or startlazarus.app.

And, yes, as TRon suggests, I think that starting Lazarus from the Finder might not be a good idea because -
[x] Hard to tell the difference between lazarus and lazarus.app
[x] Hard to set the config directory, --pcp=

I like to use a the little scripts for that reason. But I do understand its not the way Mac users think.

Davo

Andrew1020:
I believe the Lazarus/FPC team have done a good job.  But this is what I wanted to say that you guys know already -

a.  Lazarus/FPC/Delphi has no garbage collector, and
b.  Embarcadero is aware that its CE is not competitive (with no updates unlike similar products from Microsoft and JetBrains), and
c.  Its Professional Edition is too expensive.

Well, I will probably use Delphi first until the license expires, and then continue with Lazarus/FPC for "hobbyist purpose".  And yes, I have been introduced to Turbo Pascal before.

AG

marcov:

--- Quote from: Andrew1020 on November 25, 2023, 01:34:22 pm ---a.  Lazarus/FPC/Delphi has no garbage collector, and

--- End quote ---

Well yes, that is why I use them :-)

The other Delphi bits are not on topic here. Lazarus is free, and used in professional settings. (including by me).

Navigation

[0] Message Index

[*] Previous page

Go to full version