[Lazarus] Trying to work around "Illegal character in format string"

Alan Corey alan01346 at gmail.com
Sat Apr 9 21:00:45 CEST 2016


I guess I've got to get to the bottom of why I get this “Illegal
character in format string” error under OpenBSD.  I seem to be able to
work around it in programs I might write by taking the Run → Clean up
Build Files -> Clean up and Build approach.  But I don't seem to be
able to rebuild the IDE to add help packages

Trying to install chm help using the directions at
http://wiki.freepascal.org/Installing_Help_in_the_IDE

My Lazarus installed itself into /usr/local/share/lazarus

I built lhelp.ini by loading it into the ide and doing a clean and build.
Now I have an /usr/local/share/lazarus/components/chmhelp/lhelp/lhelp
executable.

Look for chmhelppkg: doing "save and rebuild IDE" to install it, got "illegal
character in format string". Did my usual fix, restarted the ide, but it
still shows as not installed.  I need to rebuild the IDE I think, but the
"save and rebuild" option is grayed out now.  Clicked the Help button for
hahas.  http://wiki.lazarus.freepascal.org/IDE_Window:_Installed_Packages
opens in Opera (why Opera not Firefox, Firefox is the default?
Internal setting I guess)

Tools -> Build Lazarus from http://wiki.freepascal.org/Install_Packages
"Illegal character in format string" again.  "clean and build", rebuilt
lhelp apparently.  Build with normal IDE gets me the same error, I'm in a
loop.  A similar thing happens when I try to install ExternHelp 1.3

Looking at configuring the build.  lazarus-ide is in /usr/local/bin so
I browsed to that
as the target directory.  gtk2, i386, openbsd.  Verbose, restart after
build.  Click build, watch.  After "Compiling IDEIntf 1.0" the Illegal
character error is back.  Click OK, IDE is still open so I close and reopen.

Package -> Install Packages.  chmhelp still has a green + and isn't
installed.

Trying inf help.  Going to
http://sourceforge.net/projects/fpgui/files/fpGUI/Documentation/

I ended up with 1 renamed zip which has in it fcl.inf, fpc_lang_ref.inf,
fpgui.inf, rtl.inf all dated Apr 4 2015

Created /usr/local/share/lazarus/components/infhelp1 and copied the infs in
there.  How to connect to them?

Back to rebuilding the ide.  Built lazbuild, trying lazbuild -B lazarus.lpi:
106110 lines compiled, 12.6 sec
8 warning(s) issued
64 hint(s) issued
"Compiling package SynEdit 1.0" completed
Start IDE, look under Packages, the help packages still aren't installed.

I don't know where this illegal character error is coming from, but I
didn't get it when I built and installed initially.

-- 
Credit is the root of all evil.  - AB1JX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: illchar.gif
Type: image/gif
Size: 3947 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160409/f8ecc737/attachment-0002.gif>


More information about the Lazarus mailing list