[sword-devel] Clucene .09.23 and Sword 1.6.0 / 1.6-svn - Compiling Help

Nathan Anderson nathan at andersonsplace.net
Sat Oct 17 17:12:37 MST 2009


I'm new to the mailing list, and I scanned the archives back to dec 2008 and
didn't see any solution to this issue.  I'm attempting to make the core
components on a linux machine.

I can apparently compile Clucene fine.  I can compile ICU fine.  

However compiling Sword 1.60 or 1.60-svn I get:

../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:515: error: 'lucene_utf8towcs' was not declared
in this scope
cc1plus: warnings being treated as errors
../src/modules/swmodule.cpp:523: warning: comparison between signed and
unsigned integer expressions
../src/modules/swmodule.cpp:527: error: 'lucene_wcstoutf8' was not declared
in this scope
../src/modules/swmodule.cpp: In member function 'virtual signed char
sword::SWModule::createSearchFramework(void (*)(char, void*), void*)':
../src/modules/swmodule.cpp:1033: error: 'RAMDirectory' was not declared in
this scope
../src/modules/swmodule.cpp:1033: error: 'ramDir' was not declared in this
scope
../src/modules/swmodule.cpp:1047: error: expected type-specifier before
'RAMDirectory'
../src/modules/swmodule.cpp:1047: error: expected `;' before 'RAMDirectory'
../src/modules/swmodule.cpp:1139: error: 'lucene_utf8towcs' was not declared
in this scope
../src/modules/swmodule.cpp:1273: error: 'lucene_utf8towcs' was not declared
in this scope
../src/modules/swmodule.cpp:1281: error: 'lucene_utf8towcs' was not declared
in this scope

../src/modules/swmodule.cpp:1141: error: 'Text' is not a member of
'lucene::document::Field'
../src/modules/swmodule.cpp:1152: error: 'UnStored' is not a member of
'lucene::document::Field'
../src/modules/swmodule.cpp:1156: error: 'UnStored' is not a member of
'lucene::document::Field'
../src/modules/swmodule.cpp:1277: error: 'UnStored' is not a member of
'lucene::document::Field'
../src/modules/swmodule.cpp:1282: error: 'UnStored' is not a member of
'lucene::document::Field'
../src/modules/swmodule.cpp:1313: error: no matching function for call to
'lucene::index::IndexWriter::addIndexes(lucene::store::Directory* [2])'
/usr/local/include/CLucene/index/IndexWriter.h:1086: note: candidates are:
void
lucene::index::IndexWriter::addIndexes(lucene::util::ArrayBase<lucene::store
::Directory*>&)
../src/modules/swmodule.cpp:1316: error: type '<type error>' argument given
to 'delete', expected pointer

----

Now I can fixed the lucene_wcstoutf8 and RAMDirectory and ramDir by adding
the
#include "repl_wchar.h"   (I actually have to copy this header from the
lucene directory and the repl_tchar.h header into include path)
#Include "RAMDirectory.h"

However, the 'Text' and 'UnStored' seems to be a "valid" error.  I looked at
the "Field.h" and "Document.h" and I don't see either of those two fields in
those headers.  

Has anyone made the changes needed to make this work with 2_3_2/0.9.23b
engine of Clucene.

Please note the 2_3_2/0.9.23 engine is supposed to be much(much) faster but
I'm either not passing some flag somewhere in the compile process.  Or
0.9.23 is not compatbible now with the Sword engine.

Nathan.




More information about the sword-devel mailing list