title: Compiling Apache Lucy
body: <p>I am trying to compile Apache Lucy. Here are the steps I followed:</p>
  
  <ol>
  <li>Downloaded Lucy and Clownfish</li>
  <li>Compiled Clownfish runtime and compiler</li>
  <li>Configured Lucy</li>
  <li>Started Lucy Make</li>
  </ol>
  
  <p>The compilation of the files in the core directory works fine but when it gets to the modules it throws an error:</p>
  
  <p><code>$ make
  gcc -pedantic -Wall -Wextra -Wno-variadic-macros -std=gnu99 -D_GNU_SOURCE -D CFP_LUCY -D CFP_TESTLUCY -fvisibility=hidden -O2 -g -fno-strict-aliasing -fPIC -I . -I ../core -I autogen/include -I ../modules/analysis/snowstem/source/include -I ../modules/unicode/ucd -I ../modules/unicode/utf8proc -c ../modules/analysis/snowstem/source/libstemmer/libstemmer_utf8.c -o ../modules/analysis/snowstem/source/libstemmer/libstemmer_utf8.o
  ../modules/analysis/snowstem/source/libstemmer/libstemmer_utf8.c:4:35: fatal error: ../include/libstemmer.h: No such file or directory
   #include "../include/libstemmer.h"
                                     ^
  compilation terminated.
  make: *** [../modules/analysis/snowstem/source/libstemmer/libstemmer_utf8.o] Error 1</code></p>
  
  <p>The problem seems to be that the code files in the modules include the include files with a relative path like <code>#include "../include/libstemmer.h"</code>. Even though the resulting directory is included in the include files directory i.e. -<code>I ../modules/analysis/snowstem/source/include</code> but it does not work</p>
  
  <p>I started modifying the source files to remove the relative path but more started cropping up. I think there must be a better way. Any help on how I can fix this would be really helpful.</p>