I see many people have problems to configure lazarus chm-help system. Here is the way how i solved it!
Read:
c:\lazarus\components\chmhelp\README.txtThis is modified version from readme.txt:
1 ) Start Lazarus
2 ) Install Packages:
In the Components Menu choose "Open Package File"
Open:
lazarus/components/chmhelp/packages/help/lhelpcontrolpkg.lpkDon't click compile or installWith the lhelpcontrolpkg package still open, in the Components Menu choose "Open Package File".
Open:
lazarus/components/chmhelp/packages/idehelp/chmhelppkg.lpk3 )
Now click "Install" on "
chmhelppkg.lpk" this will automatically install the first package we opened.
4 ) Restart Lazarus(if it didn't automatically)
5 ) Open the lhelp project in
lazarus/components/chmhelp/lhelp/lhelp.lpi
Compile lhelp-programm.
(Don't forget:
lazarus\fpc\2.3.1\bin\i386-win32\strip.exe lazarus/components/chmhelp/lhelp/lhelp.exe
for smaller exe-size)
6 ) Configure the paths for the lhelp:
From the Help menu choose
"Configure Help" Change to the
"Viewers" tab and select
"CHM Help Viewer" in latest Lazarus version:
Environment->Options->Help->Help Options HelpEXE:
For the "HelpEXE" entry browse to the lazarus/components/chmhelp/lhelp/ folder
and select the lhelp executable. i.e.:
c:\lazarus\components\chmhelp\lhelp\lhelp.exe HelpFilesPath: This is the directory that contains the lcl.chm fcl.chm and rtl.chm files.
i.e.:
c:\lazarus\docs\ (
don't forget last '\' , when you forget it, chm-file will be not opened frrom lhelp.exe!)
HelpLabel Name and Tag do not need to be altered.
7 ) Configure the DataBases
Choose the DataBases tab.
RTLUnits:
this should be "
rtl.chm://"
FCLUnits:
this should be "
fcl.chm://"
LCLUnits:
this should be "
lcl.chm://"
NOTE if you have only a single lcl-fcl-rtl.chm file then then paths become:
"lcl-fcl-rtl.chm://rtl/"
"lcl-fcl-rtl.chm://fcl/"
"lcl-fcl-rtl.chm://lcl/"
Now close this window and check out the integrated help
...
Maybe you must change lazarus-paths for your system or OS.
Here some screenshots from my working help system:
Configuration and use demo.
Edit: My Lazarus system is:
Win-Xp-32Bit
Lazarus Version 0.9.29 Beta (2009-11-19)
FPC-Version 2.3.1
SVN-Revision: 22679
Edit2:
The packages chmhelppkg.lpk and lhelpcontrolpkg.lpk must be installed.
Look my 3. post below
Edit3:
Don't open lcl.chm, rtl.chm, fcl.chm outside the IDE. LHelp
can not open this files if they opened.
There are not help for reserved pascal words (unit, interface, .....). Maybe i will solve this problem.