Forum > General

"Configure Lazarus IDE"

<< < (2/4) > >>

MarkMLl:

--- Quote from: rvk on November 09, 2022, 11:23:29 am ---After that, the other options usually fall into place and you can press Start IDE.

--- End quote ---

I agree, at least on Linux. There /used/ to be problems- ten years or more ago- with the dialogue allowing insufficient delay before trying to auto-check a part-entered name, but apart from that the only problem I've had is that extremely frustrating one relating to fpc.cfg which appears to be the IDE demanding an older version of the file than FPC now thinks is standard.

MarkMLl

Martin_fr:
1) Are you compiling your own FPC ?

If you install it (depending on OS?) with the FPC installer then you may need 2 or 3 installations (compiler&rtl / packages (if not part of the first) / sources).
You can use Lazarus without FPC sources, but codetools will be limited.

If you compile it yourself, then "make install" should do the work. But you may want to check => there should be an fpc.cfg file
- on Linux this is can be in various places / including global /etc )
  on linux you also need ppc* in the PATH env. So *only* one fpc install (there are ways to get more than one, but ....)
- on Windows it should be next to the fpc.exe

In either case the fpc.cfg contains pathes (fully qualified) to the ppu directories.
(And if you have more than one fpc install, and the wrong fpc.cfg is found, then the compiler will not work  / On Windows, the correct file should be found as it is in the same dir as fpc.exe)

So then you should have:
- The fpc sources (downloaded, or git clone, or exported from git, ....)
- the installed fpc binaries (fpc /ppc* / ....)
- an fpc.cfg that contains unit paths to the correct ppu of the RTL and fpc-packages
 
Test that the compiler works outside the Lazarus IDE.


2) With the above you have all that you need to fill in, into the setup-dialog (ignore debugger and fppkg and silence them / and configure fpdebug if not done automatically)

If you have more than one Lazarus, then check the wiki for multiple lazarus (create a lazarus.cfg with a --pcp=...)


config files:

FPC: As above: fpc.cfg

Lazarus: ~/.lazarus   C:\Users\USERNAME\AppData\Local\lazarus
-various in primary config path:
  EnvironmentOptions.xml  contains paths to fpc, and various directories
  packagefiles.xml  CACHE of where your package .lpk files are (if you have one and the same package in several location, make sure it is correct)
  *.xml  like EditorOptions, but does not affect startup
 

FPPKG: One config file. Not sure of details
Can be ignored in most cases.

rvk:
Just did a clean trunk build with "make fpc_baseinfo all install" on FPC and "make bigide" on Lazarus.
It all seems to work fine.

I didn't get the fppkg anymore in the dialog.
Selected fpc.exe and the Compiler, Make and Debugger automatically filled in.
After that I only needed to set the fpc directory and was good to go.

BTW. Is there an option to set these automatically after compilation/build?
(I'll try to set an environment variable in my script the next time I build to see if the dialog picks it up)

It also bothers me I always need to select English (while my Windows is set to English and not Dutch).

MarkMLl:

--- Quote from: Martin_fr on November 09, 2022, 11:35:49 am ---FPPKG: One config file. Not sure of details
Can be ignored in most cases.

--- End quote ---

In that case please could we /urgently/ have an "ignore this" button on that initial configuration screen.

MarkMLl

Martin_fr:

--- Quote from: MarkMLl on November 09, 2022, 12:21:38 pm ---
--- Quote from: Martin_fr on November 09, 2022, 11:35:49 am ---FPPKG: One config file. Not sure of details
Can be ignored in most cases.

--- End quote ---

In that case please could we /urgently/ have an "ignore this" button on that initial configuration screen.

--- End quote ---

Feel free to add to the bugtracker.


Here are some details about the whole FPPKG (as far as I know / could be wrong).

1) There is a repository (like OPM) of packages that can be used with fpc, and don't need Lazarus.
I don't have the URL.

2) The config (on Windows) is in
   C:\Users\USERNAME\AppData\Local\FreePascal\fppkg\

If you had a config for longer, it can contain old URL (timeout), and they may only be updated if you delete the config by hand (at least I had that issue, and it took me a year to find out)

3) If you use packages from there (installed via fppkg, outside of Lazarus), and you have Lazarus correctly configured, then the benefit you get is, that Lazarus will show those packages in the dependencies of other packages. (Afaik, it is display only)

For that Lazarus must call fppkg (on startup), and this connects to the server, and adds time to the startup.

4) If you switch between different versions of fpc, there is only one fppkg config, and the folder has ppu pre-build by the fpc that was used at the time....

5) Some of the fppkg packages have an lpk file and can be downloaded and used "Lazarus style"... (downloading manually, means follow dependencies by manually / same for getting updates :( )

---
And that is all I gathered over the years.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version