[Tutorial] How to compile the HFS's Source codeAs the result of
this, and for the first time ever, I would like to publish the complete process of compiling the HFS's Source code (as simple as possible, step by step, so everyone could do it).
It's recomended to watch first THIS video tutorial (download size: 1.56 MB, in GIF format), to see the enterelly compilation process. Then, just follow these steps:
1] Download 'Portable Turbo Delphi Lite v1.0d', from
here.
2] Download the 'Library pack' required by HFS, from
here.
3] Download the latest 'Source code' file of HFS, from
here.
4] Install and/or unrar the exe of the step one, on:
C:\Portable\TDLite5] Unzip the file from the step two, on this exact folder:
C:\Portable\TDLite\lib6] Unzip the source code file of HFS, from step three, here:
C:\Portable\TDLite\Projects\HFS7] Start Turbo Delphi by opening the file "TDrun.exe" or using the shortcut on your desktop.
8] Go to the menu 'Tools' and click on 'Options...' and the 'Options' window will open.
There, on go to: 'Environment Options' > 'Delphi Options' > 'Library - Win32'.
Now on 'Directories' > 'Library path:' replace it with the following path:
$(BDS)\lib;$(BDS)\lib\Obj;$(BDS)\Imports;$(BDS)\lib\DelphiZLib.128;$(BDS)\lib\FastMM4991;$(BDS)\lib\GifImaged2010b;$(BDS)\lib\JCL1_22\source;$(BDS)\lib\Kdl32;$(BDS)\lib\OverbyteIcsV7Gold\Delphi\Vc32;$(BDS)\lib\TRegExpr\Source;$(BDS)\Projects\HFS;
9] Go to the menu 'File' and click on 'Open Project...' and locate the file 'hfs.bdsproj'.
10] Go to the menu 'Project' and click on 'Options...' and the 'Project Options' will open.
There, click on 'Compiler Messages' and on 'Warnings', uncheck the following items:
- Deprecated Symbol
- Platform Symbol
- Return value of function might be undefined
(This entirely step 10 is optional, but recommended. If you don't do it, you will encounter 32 or 33 Warnings on compiling time, but this doesn't affect the compilation process and you will get the very same functional executable. Those warnings are not important, but informative).
11] Finally, go to the menu 'Project' and click on 'Build hfs' and wait the process to finish.
Once finished, you will see (in bold text): 'Done: Build All', click on 'OK' and it's done.
You will find the new executable hfs.exe on this folder:
C:\Portable\TDLite\Projects\HFS12] Enjoy!
If you need a tool to unzip/uncompress, you can use
7-Zip.
If you want to use another folder path location (for example to run it from a USB drive), it's better you complete steps one to six from those locations, and then move that folder to the USB before running step seven. This way, you don't mess up with folder locations. Of course, if you choose another folder, you need to change the path in all the steps, but do NOT change the path of step eight (since it will auto-detect the new location).
» WARNING: the instructions and libraries found on this post are outdated, since latest HFS versions were compiled using the new Delphi 10.3.3 Community Edition. My instructions were only valid to old HFS versions (up to v2.3m). Instructions could have changed since then, and now you have to use the latest libraries listed here. This post will be updated on the future.» DISCLAIMER: I'm not making me responsible for any damage or miss-configuration on your PC. Always backup first, and keep in mind this tutorial was done on fresh installed Windows computer. If you already have any version of Delphi, running this portable version of 'Turbo Delphi' could lead you to problems, so avoid using it on a PC with Delphi installed. My uploads are untouched and virus free, but you must re-check that the MD5 file checksums are the same, as follows:
hfs2.3m.src.zip / MD5: AE2C3025B36FFF2BC72DB5FF7784C4BD
HFS.Libraries.zip / MD5: 7751002A930B7C211BFC1F9C7AA1853C
PortableTurboDelphiLiteInstaller10d.exe / MD5: 9B24FA6BD91FAF9ACA8AEA78B90AEF07
(You could use the freeware
HashCheck to verify the MD5 file
checksums)
» HFS.Libraries.zip Download link:https://www.4shared.com/s/fsY2jRS7Tdahttp://www.mediafire.com/?z32tkfzezfx36i7Feel free to leave a comment or ask any question if you have doubts, and also report if you find any problem when compiling, or if you need further help.
Cheers,
Leo.-