[bt-devel] Can't compile Bibletime from CVS

Lee Carpenter elc at carpie.net
Mon Dec 26 22:02:40 MST 2005


Steven,

I just added CLucene to the build yesterday, so you have a couple of 
options.  First, if you grab the labeled 1.5.3 version of BibleTime from 
CVS, you won't need CLucene at all.  Second, if you want the CLucene 
search that I'm currently working on (it's not yet finished), grab the 
development tree of CLucene (0.9.10) from SourceForge:
http://prdownloads.sourceforge.net/clucene/clucene-0.9.10.tar.gz?download
Then do the familiar five step install:
   tar -zxvf clucene-0.9.10.tar.gz
   cd clucene-0.9.10
   ./configure --prefix=/usr
   make
   sudo make install

And all will be well (I hope).  You should be able to compile BibleTime 
CVS after that.  Sorry for the confusion...

Lee C.

Steven P. Ulrick wrote:
> Hello, Everyone :)
> I have been having problems compiling Bibletime for a few weeks now,
> but now I've finally decided to do something about it.  Don't remember
> where compiling used to bail, so I will start with my current problem.
> 
> I've been reading on this list about clucene, and since Fedora Core 3
> does not come with clucene, I grabbed clucene-0.8.14a-1.src.rpm from
> Mandriva and ran "rpmbuild --rebuild" and it seemed to produce the RPM
> that I needed.  I then ran rpm -Uvh on the resulting RPM, and it seemed
> to install with no problems.  Before I proceed further, here is a list
> of the files that the RPM that I build contains:
> /usr/include/clucene_dllh.h
> /usr/include/clucene_dllp.h
> /usr/lib/clucene_dll.o
> /usr/lib/libclucene.a
> /usr/lib/libclucene.la
> /usr/lib/libclucene.so
> /usr/lib/libclucene.so.0
> /usr/lib/libclucene.so.0.0.0
> 
> As you can see, clucene is installed in the /usr prefix on my system.
> I compile sword and bibletime with the following prefix:
> /usr/local/kde-svn
> and all usually works perfectly.  I do need to set the path to
> configure when I run configure in Bibletime, but at least Bibletime
> sees Sword correctly.
> OK, on to the problem:
> 1.  Just to be safe, I got a fresh download of Bibletime.
> 2. Ran the following:
> ./configure --prefix=/usr/local/kde-svn --with-sword-dir=/usr/local/kde-svn --enable-debug=full
> 
> 3. While
> running configure, it bails with the following error: checking for
> Sword library files... /usr/local/kde-svn/lib checking for Sword include files... /usr/local/kde-svn/include/sword
> checking for installed Sword version... 1.5.8
> checking whether your Sword installation is recent enough... yes
> checking for CLucene library files... /usr/lib
> checking for Clucene include files... configure: error: The CLucene include file files were not found.
> Please try to use configure with --with-clucene-dir=/path/to/clucene
> 
> 4. So I attempt to do exactly what configure says, and add the
> following to configure:
> --with-clucene-dir=/usr
> I guessed /usr because that is where the clucene RPM that I built is
> installed.
> 5. Ran ./configure --prefix=/usr/local/kde-svn
> --with-sword-dir=/usr/local/kde-svn --enable-debug=full --with-clucene-dir=/usr 
> 
> 6. Still bails with the same error.
> 7. Then I attempted to compile the tarball of clucene that comes inside
> of the SRPM with the same path as my KDE, my Sword and my Bibletime.
> I should find out shortly how well that goes.....  That went well, now
> I'll try re-compiling Bibletime.
> 8. Ran ./configure --prefix=/usr/local/kde-svn
> --with-sword-dir=/usr/local/kde-svn --enable-debug=full
> 9. This time, it did not even detect the CLucene library files like it
> did before:
> checking for CLucene library files... /usr/lib
> So, I will try adding --with-clucene-dir=/usr/local/kde-svn to
> configure.
> 10. Now configure detects the CLucene library files like it did when I
> had the RPM installed.  But, configure still bails with the same error:
> checking for Sword library files... /usr/local/kde-svn/lib
> checking for Sword include files... /usr/local/kde-svn/include/sword
> checking for installed Sword version... 1.5.8
> checking whether your Sword installation is recent enough... yes
> checking for CLucene library files... /usr/local/kde-svn//lib
> checking for Clucene include files... configure: error: The CLucene include file files were not found.
> Please try to use configure with --with-clucene-dir=/path/to/clucene
> 
> My observation is that configure SEEMS to be detecting the CLucene
> Library files when I set the path in configure, but not the CLucene
> includes.  In any case, configure bails, and I can't compile Bibletime.
> 
> To be safe, I am downloading a fresh copy of Sword, and I will Make
> Sure that I compile with CLucene support.
> 
> Everything looks good so far:
> checking for icu-config... /usr/bin/icu-config
> checking for curl-config... /usr/bin/curl-config
> curl found - remote install options available
> lucene found - lucene searching options available
> 
> Well, things did not end well:
>  g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/local/kde-svn/lib/sword/1.5.8_icu_3.4\" -D_FTPLIB_NO_COMPAT -D_ICU_ -DUSBINARY -O3 -DCURLAVAILABLE -DUSELUCENE -g -O2 -MT swmodule.lo -MD -MP -MF .deps/swmodule.Tpo -c ../src/modules/swmodule.cpp -o swmodule.o
> ../src/modules/swmodule.cpp:21:21: CLucene.h: No such file or directory
> ../src/modules/swmodule.cpp:22: error: `lucene' has not been declared
> ../src/modules/swmodule.cpp:22: error: expected namespace-name before ';' token
> ../src/modules/swmodule.cpp:22: error: `<type error>' is not a namespace
> ../src/modules/swmodule.cpp:23: error: `lucene' has not been declared
> ../src/modules/swmodule.cpp:23: error: expected namespace-name before ';' token
> ../src/modules/swmodule.cpp:23: error: `<type error>' is not a namespace
> ../src/modules/swmodule.cpp: In member function `virtual sword::ListKey& sword::SWModule::search(const char*, int, int, sword::SWKey*, bool*, void (*)(char, void*), void*)':
> ../src/modules/swmodule.cpp:404: error: `IndexReader' has not been declared
> ../src/modules/swmodule.cpp:404: error: `indexExists' undeclared (first use this function)
> ../src/modules/swmodule.cpp:404: error: (Each undeclared identifier is reported only once for each function it appears in.)
> ../src/modules/swmodule.cpp:483: error: `lucene' has not been declared
> ../src/modules/swmodule.cpp:483: error: `IndexReader' undeclared (first use this function)
> ../src/modules/swmodule.cpp:483: error: `ir' undeclared (first use this function)
> ../src/modules/swmodule.cpp:484: error: `lucene' has not been declared
> ../src/modules/swmodule.cpp:484: error: `IndexSearcher' undeclared (first use this function)
> ../src/modules/swmodule.cpp:484: error: `is' undeclared (first use this function)
> ../src/modules/swmodule.cpp:485: error: `IndexReader' has not been declared
> /usr/include/fcntl.h:72: error: too few arguments to function `int open(const char*, int, ...)'
> ../src/modules/swmodule.cpp:485: error: at this point in file
> ../src/modules/swmodule.cpp:485: error: non-lvalue in unary `&'
> ../src/modules/swmodule.cpp:486: error: `IndexSearcher' has not been declared
> ../src/modules/swmodule.cpp:489: error: `standard' has not been declared
> ../src/modules/swmodule.cpp:489: error: `StandardAnalyzer' undeclared (first use this function)
> ../src/modules/swmodule.cpp:489: error: expected `;' before "analyzer"
> ../src/modules/swmodule.cpp:490: error: `Query' undeclared (first use this function)
> ../src/modules/swmodule.cpp:490: error: `q' undeclared (first use this function)
> ../src/modules/swmodule.cpp:490: error: `QueryParser' has not been declared
> ../src/modules/swmodule.cpp:490: error: `_T' undeclared (first use this function)
> ../src/modules/swmodule.cpp:490: error: `analyzer' undeclared (first use this function)
> ../src/modules/swmodule.cpp:490: error: `Parse' undeclared (first use this function)
> ../src/modules/swmodule.cpp:492: error: `Hits' undeclared (first use this function)
> ../src/modules/swmodule.cpp:492: error: `h' undeclared (first use this function)
> ../src/modules/swmodule.cpp:498: error: `Document' undeclared (first use this function)
> ../src/modules/swmodule.cpp:498: error: `doc' undeclared (first use this function)
> ../src/modules/swmodule.cpp: In member function `virtual signed char sword::SWModule::createSearchFramework(void (*)(char, void*), void*)':
> ../src/modules/swmodule.cpp:919: error: `IndexWriter' undeclared (first use this function)
> ../src/modules/swmodule.cpp:919: error: `writer' undeclared (first use this function)
> ../src/modules/swmodule.cpp:920: error: `Directory' undeclared (first use this function)
> ../src/modules/swmodule.cpp:920: error: `d' undeclared (first use this function)
> ../src/modules/swmodule.cpp:922: error: `standard' has not been declared
> ../src/modules/swmodule.cpp:922: error: `StandardAnalyzer' undeclared (first use this function)
> ../src/modules/swmodule.cpp:922: error: `an' undeclared (first use this function)
> ../src/modules/swmodule.cpp:922: error: `standard' has not been declared
> ../src/modules/swmodule.cpp:922: error: `StandardAnalyzer' has not been declared
> ../src/modules/swmodule.cpp:930: error: `IndexReader' has not been declared
> ../src/modules/swmodule.cpp:930: error: `indexExists' undeclared (first use this function)
> ../src/modules/swmodule.cpp:931: error: `FSDirectory' has not been declared
> ../src/modules/swmodule.cpp:931: error: `getDirectory' undeclared (first use this function)
> ../src/modules/swmodule.cpp:932: error: `IndexReader' has not been declared
> ../src/modules/swmodule.cpp:932: error: `isLocked' undeclared (first use this function)
> ../src/modules/swmodule.cpp:933: error: `IndexReader' has not been declared
> ../src/modules/swmodule.cpp:933: error: `unlock' undeclared (first use this function)
> ../src/modules/swmodule.cpp:936: error: `IndexWriter' has not been declared
> ../src/modules/swmodule.cpp:938: error: `FSDirectory' has not been declared
> ../src/modules/swmodule.cpp:939: error: `IndexWriter' has not been declared
> ../src/modules/swmodule.cpp:995: error: `Document' undeclared (first use this function)
> ../src/modules/swmodule.cpp:995: error: `doc' undeclared (first use this function)
> ../src/modules/swmodule.cpp:995: error: `Document' has not been declared
> ../src/modules/swmodule.cpp:1020: error: `Field' has not been declared
> ../src/modules/swmodule.cpp:1020: error: `_T' undeclared (first use this function)
> ../src/modules/swmodule.cpp:1020: error: `UnIndexed' undeclared (first use this function)
> ../src/modules/swmodule.cpp:1021: error: `Field' has not been declared
> ../src/modules/swmodule.cpp:1021: error: `UnStored' undeclared (first use this function)
> ../src/modules/swmodule.cpp:1023: error: `Field' has not been declared
> ../src/modules/swmodule.cpp:1127: error: `Field' has not been declared
> ../src/modules/swmodule.cpp:1131: error: `Field' has not been declared
> make[1]: *** [swmodule.lo] Error 1
> make[1]: Leaving directory `/home/steve/CVS/Assorted-CVS-Modules/sword/lib'
> make: *** [all-recursive] Error 1
> 
> If any of you can help me with what I have said thus far, that would be
> well appreciated.  Just in case, I'm going to take an abbreviated
> version of this email over to the Sword-devel list.
> 
> Have a Great Night (or Day),
> Steven P. Ulrick
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel
> 
> 



More information about the bt-devel mailing list