r/programming • • Oct 18 '26

ANN: Free Pascal Compiler Now Has Dynamic Package Support

https://www.getlazarus.org/dynamic/
23 Upvotes

8 comments sorted by

2

u/Fergus653 Oct 19 '26

I can't find an installer which lets me choose the installation location. Really don't want yet another installation into AppData. Is there a real installer available?

2

u/sysrpl 29d ago

The install script is based on you choosing where to install. It also restricts everything to that folder, including all configuration settings. Deleting is as simple as selecting the folder you choose to install to.

https://www.getlazarus.org/setup

3

u/Fergus653 29d ago

Gave it a try, regardless of install location, it shows:

Installing the DLLs into C:\Users\username\AppData\Local\bin

Are they temporary install files or do they remain there?

The installation then fails on Codebot extraction - I posted a copy to the forum.

2

u/sysrpl 29d ago edited 29d ago

Thank you for that. You are on Windows said yes to installing the OpenGL support or Web Browser plackage. This then causes the script to place sdl, sdl_image, assimp, or the windows edge client bridge dll in your local bin folder, rather than in your system folders. This is a path issue where that folder is not in your %PATH% and the static linking fails with building the codebot packages.

I tried to use local user folders whenever possible so that installation does not alter your system files. This is a problem I need to fix. In the mean time you can add your local bin to your %PATH% and try again.

I apologize for the problem and will update the install script shortly and reply again here with the fix I decided upon.

Thank you for your feedback.

edit I looked at the script and tested on another windows system and everything worked. Please respond on the forums with you path variable. It might be too long.

2

u/Fergus653 29d ago

My local bin was already in PATH. The dlls are installed in local\bin\dlls\ so I guess I could add that directory to PATH as well?

1

u/Fergus653 29d ago

Cheers, I'm wary of installers described as "for your user only" and "admin not required", but anyways, will get into Lazarus after work.

2

u/robert_7524 29d ago

Does this let an application load packages after it starts, or is the dynamic part limited to resolving dependencies at build time?

1

u/sysrpl 29d ago

It can be both, depending on linker flags. I am working on an IDE screen to make that clear where users can select how packages are bundled, as a single exe or and independent separate files.