Avatar of Rodbach
RodbachFlag for Afghanistan

asked on 

Delphi. Can't find bpl even though directory is in path

I have built two Delphi packages (a run time and a design time).
 I put the directory containing both of them in the library paths.
When I try and add the Design time I get the error message that it can't find the run time package.
Can anyone offer an explanation for this one?
ProgrammingDelphi

Avatar of undefined
Last Comment
Rodbach
Avatar of samenglish
samenglish
Flag of Australia image

Hmm... which version of Delphi? Which "library paths" did you put the directory in? (Library, BPL output, DCP output, or Browsing Path, or Directories/Conditionals in Project Options - I'm referring to Delphi 7 btw)

Here's some text from the help that might be worth going over.

Library path: Specifies search paths where compiler can find the source files for the package. The compiler can find only those files listed in the library path. If you try to build your package with a file not on the library path, you will receive a compiler error.

BPL output directory: Where the compiler should put compiled packages (.bpl) files.

DCP output directory: Specifies a separate directory to contain the .dcp files.

Browsing path: Specifies directories where the Project Browser looks for unit files when it cannot find an identifier on the project search path or source path. The directories listed here are appended to the end of the debug source path (which is set using the Directories/Conditionals page of the Project Options dialog box).
ASKER CERTIFIED SOLUTION
Avatar of Rodbach
Rodbach
Flag of Afghanistan image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of samenglish
samenglish
Flag of Australia image

Glad you got it working.
Avatar of Geert G
Geert G
Flag of Belgium image

not rebooting ... , just restarting delphi would have been enough

open a command box
type "set" enter
> this displays all environment variables

add a variable to the environment variables via my computer/properties/advanced ... etc

in the earlier opened command box,
type "set" enter again
> the newly added variable is not visible

open a new command box and type "set" enter again
> the new variable is visible
Avatar of Geert G
Geert G
Flag of Belgium image

first create a runtime package and build it
this will create/copy a bpl to the bpl output path ($delphi)\projects\bpl

next add this runtime package to a design package (requires entry)
then compile the design time package

runtime package will be the compiled sources used by customers

designtime packages are editors/enhancement for the delphi IDE
like components, wizards, etc which customers never see as they don't have delphi
Avatar of Rodbach
Rodbach
Flag of Afghanistan image

ASKER

I found the answer myself accidentally.
Delphi
Delphi

Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.

60K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo