Delphi Project Needing runtime Packages, even with runtime Packages off
Asked Answered
S

5

6

My Delphi7 project will not run on my clients computer if i don't have a few of the runtime packages in the path. eg rtl70.bpl

I have Build with runtime packages unticked, so shouldn't they be complied into the exe?

Edit: the Project uses Jedi Packages (TJvPlugin) and running the program with out any plugin installed works fine. As Soon as i add a Plugin, the bpl not found errors reappear. Seems like ill have to live with the extra packages.

Sinh answered 8/10, 2008 at 4:44 Comment(0)
B
2

Your project may use DLLs or COM objects that have been built with Delphi packages.

Betz answered 8/10, 2008 at 22:8 Comment(1)
Not DLL/COMs but i have plugin bpls, that might be the reason thereSinh
H
6

It has been a while, but it seems like there was something where you needed to (1) check build with runtime packages, and then that enables some other editor (maybe list of packages to use), and you (2) make a change there. (3) Then do a full build, and then (4) remove the runtime packages check and do another (5) full build. It is important to do a full build each time.

Hype answered 8/10, 2008 at 6:40 Comment(1)
Indeed. For some reason every now and then we notice that Delphi7 just decides not to build packages into our EXE and we have to go and turn "Build with Runtime packages" on, clear the list, and then turn it off again. Wierd.Escalate
P
3

From memory:
1. check the build with runtime packages
2. Remove all the run time packages from the list
3. Full build
4. Uncheck the build with run time packages
5. Full build.

Can't test, don't have D7 anymore...

Palmette answered 8/10, 2008 at 6:48 Comment(1)
Hehe, I just saw this after adding my comment to Jim's post. Yep, we have to do this very same thing every now and then.Escalate
B
2

Your project may use DLLs or COM objects that have been built with Delphi packages.

Betz answered 8/10, 2008 at 22:8 Comment(1)
Not DLL/COMs but i have plugin bpls, that might be the reason thereSinh
G
0

You also need to uncheck the "Use Dynamic RTL" on the Linker tab of the Project Options.

Caveat: I'm using C++Builder, but I believe the options are the same.

Gametogenesis answered 8/10, 2008 at 5:1 Comment(2)
Thankyou, <i>Use Dynamic RTL</i> must be a C++Builder Option, it does not appear in Delphi7Sinh
That is correct. "Use Dynamic RTL" is a C++Builder specific option, it does not apply to Delphi.Cresa
E
0

One may find this obvious, but check the size of the executable once you've compiled, if it's larger, it'll run. When we manually copy in our updates a smaller dll is a big red flag that something is wrong with the project options.

Ebonize answered 8/10, 2008 at 18:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.