Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.dkp package file for Delphi #320

Open
vennexedu opened this issue Nov 12, 2024 · 3 comments
Open

.dkp package file for Delphi #320

vennexedu opened this issue Nov 12, 2024 · 3 comments

Comments

@vennexedu
Copy link

Is there a future plan to create a .dpk package file for Delphi? Or does anyone know how to create one? I am not sure I can just use the .pas file for Lazarus. I tried to mimic what the .lpk file does in Delphi 11.3, but ran into a whole lot of dependency issues. For instance, I needed to install BDE and NexusDB locally. I'd like to use mORMot2 in a .bpl file. Great library, btw!

@synopse
Copy link
Owner

synopse commented Nov 12, 2024

AFAIR Delphi packages are not the same thing as Lazarus packages.
What is wrong with adding the paths to the project? Or do you have any trouble when compiling mORMot in a bpl?

There may be some problems at runtime, due to some global/shared memory structures like RTTI cache.
Perhaps more a topic for discussion in our forum.
I guess some users have already experimented running mORMot 2 within packages. Even if I doubt the few hunderth KB saved by using package is worth it nowadays.

@vennexedu
Copy link
Author

vennexedu commented Nov 12, 2024

Thank you for the quick reply. I wanted to use mORMot 2 in a commercial environment and my company requires all the libraries we use to be centralized. We use .bpl files for that. Using environmental variables worked fine, but inside our system it's not possible to do that. I wanted to start in the synopse.info forum, but my account (made it yesterday) has been banned. No idea why. Btw, the problem was that mormot.db.raw.sqlite3.static.pas couldn't be used by Delphi when trying to package it somehow.

@synopse
Copy link
Owner

synopse commented Nov 13, 2024

Let's ask for feedback at https://synopse.info/forum/viewtopic.php?id=7064

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants