I've tried that on a small file (attached) but I cannot get it to work.
I guess from the logfile below that a file or two is getting lost on route.
First you forgot to produce an index entry by Insert -> Index entry.
The glossary is not (yet) supported by LyX. You choose the nomencl-package which uses makeindex to produce the glossary, but makeindex has to process the .glo-file. (LyX uses makeindex only to process .idx-files.)
So you have to export your file manually:
(assuming your file has the name hello.lyx)
- run Export -> pdflatex in LyX - open a command line (prompt, shell) and change to LyX's actual tmp directory (folder /lyx/tmp/lyx_tmpdirxxxxxxxxx/lyx_tmpbufx). There you'll find all necessary files. - use the command line command makeindex hello.glo -s nomencl.ist -o hello.gls (as described in the nomencl documentation sec. 2.1) - use the command line command pdflatex hello.tex
Now you have a pdf with a glossary.
But LyX should support this way of making a glossary in one of the next releases.
Could you please add an enhancement to bugzilla.lyx.org, that LyX should support the nomencl-package?
regards Uwe
p.s. you'll get page numbers after every glossary entry by invoking the nomencl-package with the option 'refpage'. (see the nomencl documentation sec. 2.3/2.4)