Selected release:

It is time to generate the index. This is a job for script genxref. genxref is driven by two or three arguments:

With the previous configuration, this gives:

$ ./genxref --url=http://localhost/lxr --version=v1

Depending on the size of your source, indexing may be very lengthy. If you intend to index the kernel tree, think of launching genxref for at least an overnight job (YMMV). Test before on a simple case if this is your first installation.

As an example, indexing the single 3.1 kernel with LXR 1.0 took 2 hours 39 minutes on a high-end computer (Intel i5 3.3GHz processor and 4GB memory under Fedora 17, MySQL and Glimpse). This time drops slightly below one hour with LXR 2.0 on the same carefully tuned computer.

Before launching this time-consuming job, you have a last opportunity to check your configuration for trivial errors with option --checkonly:

$ ./genxref --url=http://localhost/lxr --version=v4 --checkonly [ OK ] Perl version ... 5.14.2 [ OK ] ctags version ... 5.8 Checked: glimpse version ... 4.18.5 Checked: glimpseindex version ... 4.18.5 Parameter 'swishbin' not defined - trying to find swish-e swish-e not found, `command -v swish-e` returned a null string genxref stopped without indexing by --checkonly option Of course, not all errors are found, but this test eliminates typo errors on critical parameters.

You can also ask genxref to index every version in your tree with option --allversions as in:

$ ./genxref --url=http://localhost/lxr --allversions