Difference between revisions of "Kylix"

From Free Pascal wiki
Jump to navigationJump to search
m (→‎Kylix 3 Open Edition: - updated URL link to fpGUI)
(language/layout)
Line 2: Line 2:
 
<br>
 
<br>
 
<br>
 
<br>
'''Kylix'''&reg; is a brand of [[Object Pascal]] [[Compiler|compiler]] released by Borland International for the [[Linux]] [[operating system]]. It is an attempt to provide the equivalent functionality of their [[Delphi]]&reg; brand of Object [[Pascal]] for the Microsoft Windows operating system.
+
'''Kylix'''&reg; is an [[Object Pascal]] [[Compiler|compiler]] and IDE released by Borland International for the [[Linux]] [[operating system]]. It is an attempt to provide the equivalent functionality of their [[Delphi]]&reg; Object [[Pascal]] product for the Microsoft Windows operating system.
  
 
== Kylix 3 Open Edition ==
 
== Kylix 3 Open Edition ==
Line 9: Line 9:
  
 
'''NOTE''':<br>
 
'''NOTE''':<br>
Kylix 3 is rather hard to install and get working with the latest
+
Kylix 3 is rather hard to install and get working with the latest Linux distros (this issue is only related to the Kylix IDE, not the applications created with it).  
Linux distros (this issue is only related to the Kylix IDE, not the applications created with it). So it is highly recommended that you rather install Free Pascal
+
 
Compiler and the Lazarus IDE for any new development work. They are
+
It is therefore highly recommended that you rather install Free Pascal
similar to Kylix and Delphi, but a lot more up to date that Kylix.
+
Compiler and the Lazarus IDE for any new development work. They are similar to Kylix and Delphi, but a lot more up to date than Kylix. Free Pascal and Lazarus are excellent tools and are Open Source, so they will always be available - without activation requirements.  
Free Pascal and Lazarus are excellent tools, much easier to install
+
 
and is Open Source - so will always be available (and thank goodness
+
There is another cross-platform GUI toolkit you can try with Free Pascal; it is called [[fpGUI|fpGUI Toolkit]].
without activation requirements). There is another cross-platform GUI
 
toolkit you can try with Free Pascal, and it is called [[fpGUI|fpGUI Toolkit]].
 
  
 
* Free Pascal: http://www.freepascal.org
 
* Free Pascal: http://www.freepascal.org
Line 23: Line 21:
  
 
== Installing Kylix Help in the Lazarus IDE ==
 
== Installing Kylix Help in the Lazarus IDE ==
For users who have a legal copy of Kylix, it is possible to add Kylix 3 context-sensitive help files to Lazarus IDE running on Linux x86. The benefit from those help files is that they are very detailed, and also contains the Object Pascal Language Reference help - most of which is applicable to FPC's Object Pascal syntax or the Lazarus LCL. Note that this uses the proprietary HyperHelp program, so is not portable to other platforms.
+
For users who have a legal copy of Kylix, it is possible to add Kylix 3 context-sensitive help files to Lazarus IDE running on Linux x86. The benefit from those help files is that they are very detailed, and also contain the Object Pascal Language Reference help - most of which is applicable to FPC's Object Pascal syntax or the Lazarus LCL. Note that this uses the proprietary HyperHelp program, so is not portable to other platforms.
  
===The files needed from Kylix3===
+
===Files needed from Kylix3===
 +
These are the files and directories needed from the ''${HOME}/kylix/help'' directory.
  
Since many of you have been coding in Kylix, you probably already have these files lying around some place. I suspect that the help system from the free version of Kylix may work as well. These are the files and directories needed from the ''${HOME}/kylix/help'' directory:<br>
+
(I suspect that the help system from the free version of Kylix may work as well. )
 
<tt><code><br>
 
<tt><code><br>
 
  bin/          k3clx.hlp    k3dbd.cnt    k3.hlp
 
  bin/          k3clx.hlp    k3dbd.cnt    k3.hlp
Line 48: Line 47:
 
<br>
 
<br>
 
</code></tt>
 
</code></tt>
<br>
+
 
 
Most of the above files may not pertain to Lazarus, such as the k3c* files which relate to C++, but they are harmless to keep around.
 
Most of the above files may not pertain to Lazarus, such as the k3c* files which relate to C++, but they are harmless to keep around.
  
Line 58: Line 57:
  
 
===The hyperhelp.sh script===
 
===The hyperhelp.sh script===
We do need to dress up the default help script provided with Kylix so that it will work as a standalone app under X. Note that the last line of the script sets some missing rendering parameters. Also note the -geometry which positions the window and sets its size.
+
We do need to dress up the default help script provided with Kylix so that it will work as a standalone application under X. Note that the last line of the script sets some missing rendering parameters. Also note the -geometry which positions the window and sets its size.
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Line 77: Line 76:
  
 
===My directory tree===
 
===My directory tree===
This is where I have placed the Kylix Help file directory. It is under my installation of Lazarus in the user home directory. The hyperhelp.sh script refers to these locations.
+
This is where I have placed the Kylix Help file directory. It is under my installation of Lazarus in the user home directory. The hyperhelp.sh script refers to these locations.
  
 
<pre>
 
<pre>
Line 92: Line 91:
  
 
===Custom Tool setup in IDE===
 
===Custom Tool setup in IDE===
Finally, set up the new custom tool within Lazarus from the menu 'Tools|Configure custom tools|Add'. Replace '/home/tom/' with your user home directory path. This has to be an absolute path to the hyperhelp.sh script.
+
Finally, set up the new custom tool within Lazarus from the menu 'Tools|Configure custom tools|Add'. Replace '/home/tom/' with your user home directory path. This has to be an absolute path to the hyperhelp.sh script.
  
 
[[Image:edittool.png]]
 
[[Image:edittool.png]]
Line 102: Line 101:
 
{{Compilers}}
 
{{Compilers}}
 
[[Category:Help and Docs]]
 
[[Category:Help and Docs]]
 +
[[Category:Linux]]

Revision as of 09:58, 16 October 2014

Deutsch (de) English (en) français (fr)


Kylix® is an Object Pascal compiler and IDE released by Borland International for the Linux operating system. It is an attempt to provide the equivalent functionality of their Delphi® Object Pascal product for the Microsoft Windows operating system.

Kylix 3 Open Edition

Borland used to distribute a version of Kylix free for personal use that was called "Kylix 3 Open Edition", but this version unfortunately can no longer be legally distributed.

NOTE:
Kylix 3 is rather hard to install and get working with the latest Linux distros (this issue is only related to the Kylix IDE, not the applications created with it).

It is therefore highly recommended that you rather install Free Pascal Compiler and the Lazarus IDE for any new development work. They are similar to Kylix and Delphi, but a lot more up to date than Kylix. Free Pascal and Lazarus are excellent tools and are Open Source, so they will always be available - without activation requirements.

There is another cross-platform GUI toolkit you can try with Free Pascal; it is called fpGUI Toolkit.

Installing Kylix Help in the Lazarus IDE

For users who have a legal copy of Kylix, it is possible to add Kylix 3 context-sensitive help files to Lazarus IDE running on Linux x86. The benefit from those help files is that they are very detailed, and also contain the Object Pascal Language Reference help - most of which is applicable to FPC's Object Pascal syntax or the Lazarus LCL. Note that this uses the proprietary HyperHelp program, so is not portable to other platforms.

Files needed from Kylix3

These are the files and directories needed from the ${HOME}/kylix/help directory.

(I suspect that the help system from the free version of Kylix may work as well. )

bin/           k3clx.hlp     k3dbd.cnt    k3.hlp
foo            k3.cnt        k3dbd.fts    k3indy.cnt
foo~           k3copts.cnt   k3dbd.hlp    k3indy.fts
hhintro.txt    k3copts.fts   k3dbx.cnt    k3indy.hlp
hoh.cnt        k3copts.hlp   k3dbx.fts    k3iota.cnt
hoh.fts        k3crtl.cnt    k3dbx.hlp    k3iota.fts
hoh.hlp        k3crtl.fts    k3derrs.cnt  k3iota.hlp
hyperhelp.sh*  k3crtl.hlp    k3derrs.fts  k3new.cnt
k3.als         k3ctools.cnt  k3derrs.hlp  k3new.fts
k3cerrs.cnt    k3ctools.fts  k3dlr.cnt    k3new.hlp
k3cerrs.fts    k3ctools.hlp  k3dlr.fts    k3prog.cnt
k3cerrs.hlp    k3cw.cnt      k3dlr.hlp    k3prog.fts
k3clr.cnt      k3cw.fts      k3dopts.cnt  k3prog.hlp
k3clr.fts      k3cw.hlp      k3dopts.fts  lib/
k3clr.hlp      k3dap.cnt     k3dopts.hlp
k3clx.cnt      k3dap.fts     k3.ftg
k3clx.fts      k3dap.hlp     k3.fts


Most of the above files may not pertain to Lazarus, such as the k3c* files which relate to C++, but they are harmless to keep around.

The bare minimum files needed for the context help are these:

bin/           k3.als     k3clx.fts  k3.cnt  k3.fts  lib/
hyperhelp.sh*  k3clx.cnt  k3clx.hlp  k3.ftg  k3.hlp


The hyperhelp.sh script

We do need to dress up the default help script provided with Kylix so that it will work as a standalone application under X. Note that the last line of the script sets some missing rendering parameters. Also note the -geometry which positions the window and sets its size.

#!/bin/bash
HHHOME="${HOME}/Lazarus/DelphiHelp"
XPPATH="${HHHOME}/xprinter"
LANG=en_US
LC_ALL=en_US
locale=${LC_ALL:-${LC_CTYPE:-${LANG:-"C"}}}
LD_LIBRARY_PATH+="lib/locale/"${locale}":lib:"
XAPPLRESDIR="app-defaults"
NLSPATH="lib/locale/%L/%N.cat"
export XPPATH HHHOME LANG LC_ALL LD_LIBRARY_PATH XAPPLRESDIR NLSPATH
cd $HHHOME
bin/hyperhelp k3clx.hlp -m AL\($1,3,,main\)\
    -s 0 -d 32159 -display :0.0 -geometry 600x500+100+100 -w

My directory tree

This is where I have placed the Kylix Help file directory. It is under my installation of Lazarus in the user home directory. The hyperhelp.sh script refers to these locations.

/home/tom/Lazarus/DelphiHelp/
|-- bin
`-- lib
   `-- locale
       |-- de_DE
       |-- fr_FR
       |-- ja_JP.SJIS
       |-- ja_JP.eucJP
       `-- ja_JP.eucjp

Custom Tool setup in IDE

Finally, set up the new custom tool within Lazarus from the menu 'Tools|Configure custom tools|Add'. Replace '/home/tom/' with your user home directory path. This has to be an absolute path to the hyperhelp.sh script.

edittool.png

In summary

Just place your cursor in the edit window on the word you want to find help for and press Ctrl+F1. The Kylix help will then open up the context sensitive help page for that keyword.


Various Pascal Compilers:
AAEC Pascal | Alice Pascal | Apple Pascal | Borland Pascal | Clascal | Delphi | Free Pascal Compiler (FPC) | GNU Pascal | Kylix | Lisa Pascal | Mac Pascal | Metrowerks Pascal | NBS Pascal | OMSI Pascal | PascalABC.net | P32 | Sibyl | Smart Pascal | Stanford Pascal Compiler | Swedish Pascal | THINK Pascal | Turbo Pascal | UCSD Pascal | VAX Pascal | Virtual Pascal | winsoft PocketStudio
An extensive list of compilers was maintained at Pascaland (Internet Archive Version) up to January 2018.