Recent

Author Topic: Lazarus configuration  (Read 3147 times)

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1315
Lazarus configuration
« on: July 14, 2019, 07:08:55 pm »
I now have a custom embedded Lazarus on Windows 10 (which gives an FPC config error on startup), but my official Lazarus doesn't work anymore. It gives the default configuration error and doesn't understand my project files anymore. If I do clean up and build, it gives this error:

Code: [Select]
Cannot compile project

The project has no main source file.

Can I fix this? I looked in the project file, but that looks fine.

If I reinstall the official one, does the embedded one still work? Or is fpcupdeluxe my safest bet?

I don't understand how to run multiple versions next to one another.

Edit: I tried the embedded one first, with a win64 target, but the tools required are missing in that version.
« Last Edit: July 14, 2019, 07:12:41 pm by SymbolicFrank »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12019
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus configuration
« Reply #1 on: July 14, 2019, 07:56:23 pm »
I can't answer your specific error, but about several installations:

On Windows a lazarus installation uses
- The folder to which it is installed (aka 2ndar conf path)
- the "primary config path"

If you use the official installer, the installer writes some info to the registry. Lazarus does not use those registry entries.
They are for the uninstaller. And for file associations (So windows knows what to do).

The installer can create a 2ndary install for you. When ask for the config file, enter a unique path. It can be inside the install dir "c:\lazarus2\conf". But it must not be equal to the install dir.

You can do it yourself.
  https://wiki.lazarus.freepascal.org/Multiple_Lazarus#Using_lazarus.cfg_file
Once you got your lazarus folder, create the cfg file. (or always start lazarus with the param for the correct config path.


fpc should not appear in you PATH env var.

Each installation should have its own fpc. So you can have your different fpc.cfg


mpau

  • Newbie
  • Posts: 1
Re: Lazarus configuration
« Reply #2 on: March 30, 2025, 12:44:40 pm »
Removing <MainUnit Value="-1"/> from lpi file fixed for me.

 

TinyPortal © 2005-2018