Recent

Author Topic: Problem Installing CHM Help in Lazarus 4.2  (Read 1089 times)

dbannon

  • Hero Member
  • *****
  • Posts: 3605
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Problem Installing CHM Help in Lazarus 4.2
« Reply #15 on: November 14, 2025, 01:53:29 am »
You should be able to remake your Lazarus install, cd into the lazarus source dir and type :

Code: Bash  [Select][+][-]
  1. $> make clean bigide

But I don't use fpupdeluxe so cannot vouch for how safe that is in your case. But, as a test, you could download the Lazarus source to some other new directory, run that command above, define a new place for its config so it does not, in any way, interfere with your existing install. To define that separate, independent config dir, just put a file in the lazarus dir that contains something like -
Code: [Select]
--pcp=/home/curt/new-laz-config
Make those words suit your layout of course.

Start  lazarus in that directory -

Code: Bash  [Select][+][-]
  1. $> ./lazarus

And go to that help location setting again, set to whee your files are.

Davo

Edit :
Here is a list of command (not a script) that might help if you put the right dir nams in -

Code: Bash  [Select][+][-]
  1. $> cd
  2. $> mkdir New-Lazarus
  3. $> cd New-Lazarus
  4. $> mkdir Configs
  5. $> wget  https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/lazarus_4_4/lazarus-lazarus_4_4.zip?ref_type=tags
  6. $> unzip lazarus-lazarus_4_4.zip
  7. $> mv lazarus-lazarus_4_4 lazarus_4_4
  8. $> cd lazarus_4_4
  9. $> make clean bigide
  10. $> echo "--pcp=/home/curt/New-Lazarus/Configs/lazarus_4_4" > lazarus.cfg
  11. $> ./lazarus

Make sure you get that .cfg file right or it may interfere with your existing install. You could import your existing lazarus config but you may well also import the cause of your problem !

Davo 
« Last Edit: November 14, 2025, 02:07:33 am by dbannon »
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Curt Carpenter

  • Hero Member
  • *****
  • Posts: 687
Re: Problem Installing CHM Help in Lazarus 4.2
« Reply #16 on: November 15, 2025, 03:03:11 am »
I've had to move on, but for what it's worth:

I Tried selecting CHM on a fresh install of Lazarus 4.2.0 on a 64bit Ubuntu 24.04.3 system.  The problem is the same:  I go to Tools>Options>Help Options, click on CHM Help Viewer, fill in the path to CHM ( /usr/share/lazarus/4.2.0/cod/chm/ on my system, verified that the files are there), click Apply and OK. 

When I repeat the steps above, "CHM Help Viewer" is no longer selected and the selection has reverted to the HTML option.

Can't make the CHM option "stick."

 

TinyPortal © 2005-2018