RAD Studio 10.4.1 is now available! Learn more. Looking for discounts? Visit our Special Offers page!
CodeDelphiNews

Installing Component Packages Manually

image-3211490

Sometimes you need to install components manually. Maybe the installer wasn’t updated for your version of Delphi, or it is an open-source library without an installer. Whatever the reason, here is a short guide in addition to what is found in the DocWiki on the topic.

I’m going to write this guide around installing the Radiant Shapes Pack available via GetIt. I’m guessing it wasn’t updated to install in 10.4 yet, and while R&D is working on that this is a great opportunity to learn how to install it manually.

radiant-getit-2027176

After installing from GetIt, you will not find it in the IDE, and it is missing from the packages list, which you access from Component 🡆 Install Packages while no project is open

image-2371380

This is where all the BPL Packages are listed. Click the Add button and browse to find the BPL

C:\Program Files (x86)\Raize\RadiantShapes\1.4\Bin\RadiantShapesFmx_Design270.bpl
(If you don’t have that BPL or path for Radiant Shapes, then make sure you installed from GetIt and you can run the installer manually from C:\Users\Public\Documents\Embarcadero\Studio\21.0\CatalogRepository\RadiantShapes-270-1.2\Installer\RadiantShapes.exe )

or whatever design-time package you need. This will install the components into the IDE.

image-5327288

Many projects have both design time and runtime packages. A design-time package contains the information necessary to install in the IDE, and any special designers, while RunTime packages only contain the code necessary for use during RunTime. You can optionally even ship these packages with your binary to link them at runtime.

Next, you need to tell the IDE where to find the DCUs and optionally source files. What if you only have source files? No problem, open and build all the packages at least in Release Mode on each platform the library suports. Then head to Tools 🡆 Options then Language 🡆 Delphi 🡆 Library.

image-8777658

Then complete the details for each platform you built and want to support:

image-3670986
  1. Selected Platform – Specifies which platform you are providing details for below:
    • Linux 64-bit, iOS 64-bit, Win 32-bit, Win 64-bit, macOS 64-bit, Android 32-bit, Android 64-bit, and/or iOS Simulator.
  2. Library Path – This is the path to the Release DCUs. Some people point to their PAS files here, which works, but then you end up recompiling the library more than necessary.
    • Radiant Shapes includes all the DCUs in subfolders off the path C:\Program Files (x86)\Raize\RadiantShapes\1.4\Lib
    • Tip: Paste the new path into the edit box before clicking the browse button if you need to browse to a subfolder. Then be sure to click [Add] when you are done.
image-5501220
Library Paths Dialog
image-7551771
Location of platform specific DCU folders for Radiant Shapes
C:\Program Files (x86)\Raize\RadiantShapes\1.4\Lib
  1. Browsing Path is where you optionally add a path to the source PAS files. This lets you browse out to those source files from the IDE with the Find Declaration context menu item.
    • For Radiant Shapes, the source is found in C:\Program Files (x86)\Raize\RadiantShapes\1.4\Source
  2. Debug DCU Path allows you to optionally point to the debug version of the DCUs. This is useful if the debug version has additional information or different behaviors.
    • Radiant Shapes doesn’t have special debug DCUs so we don’t need to add anything here.

Once you’ve completed these settings for each platform you are good to go! Happy installing!

image-3211490
image-3660312

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Deep Dive Webinar: Boost C++Builder Compile Speed with TwineCompile
About author

Chief Developer Advocate for Embarcadero Technologies.
Related posts
Tech Partner

DevExpress VCL Subscription v20.2 Beta 1

C++DelphiIDERAD Studio

Boost Productivity With Useful Bookmarks IDE Plugin To Bookmark And Navigate Code In Delphi And C++Builder

DelphiIDENews

Apple Platforms Patch for RAD Studio 10.4.1

DelphiNews

Develop. Share. Inspire. - GM Update for November 2020

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES