1. sergworks
  2. TForge

Wiki

Clone wiki

TForge / Install

Since ver. 0.75:

TForge library is a single runtime package (TForge)

Unpack the downloaded archive and build the package.


Prior to ver. 0.75:

TForge library consists of 3 runtime packages:

  • TForge
  • THashes
  • TCiphers

Unpack the downloaded archive and build the packages, in the above order.


To build the package in Delphi (the next procedure is for Delphi XE; it may slightly differ for other versions):

  • Find the full path to the Source\Include folder (depends on where you unpacked the downloaded archive)
  • Open Project Options dialog for the package, set Build Configuration to Base and replace the path to Source\Include by your actual path
  • Open Project Manager and build a package in Debug and Release configurations
  • To enable Ctrl-click navigation in the editor open Tools->Options.. dialog, select Delphi options->Library and add paths to the source code units of the package to the Browsing path.

To make the package available to an application open the application’s Project Options dialog, set Build Configuration to Base and add the next path to Search path: $(BDSCOMMONDIR)\TForge\$(Config)\$(Platform).

To make the package available for any new application do the same for Default Project Options dialog.


To build the package in Lazarus

  • Open a package (it requires opening any project first, or creating a dummy project)
  • The packages are configured with the unit output directory C:\bin\FPC\TForge\$(TargetCPU)-$(TargetOS)
  • Click Compile button

To make the package available to an application open the application’s Project Options dialog, click Compiler Options -> Paths and add the next path to Other unit files -(Fu): C:\bin\FPC\TForge\$(TargetCPU)-$(TargetOS)


For more detail read the blog post.

Updated