7

I want to create *.bpl file but I am failing to do so.
Specifically, I am trying to make JEDI plugins, but I have tried an empty pure Delphi package, too.

If I create a new package in Delphi XE3, I get an empty unit - if I "make" this project called "Package1.bpl", I get a .dcu file in "debug/win32/", but no .bpl file.
No error is reported by the compiler.

An empty JEDI plugin (bpl-style) only gives a .dcu, too, while an empty dll-style JEDI plugin gives a .cdu and a .dll file in "debug/win32/".

This is the first time I am trying to make a new package, so I am completely lost.
What am I missing?

Pharaoh

Pharaoh
  • 3,329
  • 4
  • 21
  • 43

2 Answers2

11

Go to the Tools menu and navigate to Environment Options -> Delphi Options -> Library. There you find the Package Output Directory and the DCP Output Directory. These directories are the default output directories for BPLs and DCPs, so the bpl will be created if your packages is compiled, but in a different directory from what you expect.

The JEDI plugins probably have their output directory configured otherwise in Project -> Options.

GolezTrol
  • 109,399
  • 12
  • 170
  • 196
  • 4
    +1. Deleted my answer because you did a better job of catching the actual question than I did, and I don't want to distract people from yours. :-) – Ken White Dec 07 '12 at 23:19
0

For those that don't want to travel into Delphi IDE/options etc, lately in Delphi XE it's something like this:

"C:\Users\Public\Documents\Embarcadero\Studio\17.0\Bpl;"

Your exact folder might be different based on 17.0

These folders also end up in the path environment variable of your system, bit dangerous and can lead to some mighty magic loading confusion ?!

"How's that BPL still loading after it was deleted from my local project folder ?" :)

Another solution is to add "." to your project settings without the "". Prevents you from having to modify your delphi environment options/settings, something you probably never want to do since JEDI and other projects may rely on these default settings to function properly. Only change it if you know what you are doing and how to correctly make JEDI and others work if it was changed, this may get tricky/hairy, probably requires search paths to be added.

Skybuck Flying
  • 233
  • 2
  • 13
  • This is more of a comment to the accepted answer than an answer. – Pharaoh Jul 23 '18 at 09:17
  • Depends on your perspective/view, the actualy answer is an indirection and completely useless for those that are actually trying to find the file via the windows explorer =D In other words: "Where do I find the bpl file after I compile a package?" can be interpreted as: "Where do I point my windows explorer" ? :) The answer cannot be "Delphi IDE Options/blablabla" that don't work in windows explorer and/or requires Delphi IDE installed, no-crashing, properly configured, etc. After de-install/new computer... what-ya-gonna-do-bro ? ;) My answer applied reverse order will find match in IDE too. – Skybuck Flying Jul 29 '18 at 23:49
  • In other words: First verify the file actually EXISTS in windows explorer, options can be misleading/faulty/false, etc. Only once it actually EXISTS then find the matching option that produced it in the first place. Makes sense to do it in this order. Based on ACTUAL EVIDENCE, instead of assumptions in answer above. For example Delphi and/or MSBuild can execute scripts, which can copy files to anywhere, so then basically all assumptions go out the window, plus who knows, maybe there are even options/settings overrides, perhaps on per project basis ;) The word "default" hints to this. – Skybuck Flying Jul 29 '18 at 23:53
  • Reading his posting again, it does seem a total noob. However keep in mind experienced Delphi programmers that messed around with settings may read this too, so my comments are for experienced Delphi programmers that messed up their environment or project settings and now can't figure out why the package is still loading ! LOL... Welcome to DLL hell. Find it first, ripp this BPL folder from path variable if you have too, but best is just to delete it, in case it's junk anyway. As far as I know Delphi IDE has no "reset to defaults" for IDE settings ;) A painfull o-mission ?! ;) :) – Skybuck Flying Jul 30 '18 at 00:01