[sword-devel] compiling sword library with CLucene
mmital2
mital.manu at gmail.com
Sat Mar 7 21:22:44 MST 2009
Hi,
Made a little progress with this. A majority of the 133 errors related to
TCHAR disappeared after I added:
#define TCHAR char
I added this in StdHeader.h line 177
//always include replacement, some missing tchar defines
#include "CLucene/config/repl_tchar.h"
#define TCHAR char // <---- added (I am doing
non-unicode builds)
Now, I am only left with a few linker warnings when compiling CLucene.lib,
and only 7 errors when compiling libsword.lib
When compiling CLucene.lib, I get these warnings:
1>condition.obj : warning LNK4221: no public symbols found; archive member
will be inaccessible
1>threads.obj : warning LNK4221: no public symbols found; archive member
will be inaccessible
1>gunichartables.obj : warning LNK4221: no public symbols found; archive
member will be inaccessible
1>MMapInput.obj : warning LNK4221: no public symbols found; archive member
will be inaccessible
When compiling the non-unicode sword static library with CLucene support
enabled, the errors are in swmodule.cpp
error C2665: 'lucene::queryParser::QueryParser::parse' : none of the 3
overloads could convert all the argument types swmodule.cpp 513
error C2664: 'lucene_wcstoutf8' : cannot convert parameter 2 from 'const
char *' to 'const wchar_t *' swmodule.cpp 524
error C2665: 'lucene::document::Field::Text' : none of the 2 overloads could
convert all the argument types swmodule.cpp 1109
error C2664: 'lucene::document::Field::UnStored' : cannot convert parameter
2 from 'wchar_t [2048]' to 'const char *' swmodule.cpp 1120
error C2664: 'lucene::document::Field::UnStored' : cannot convert parameter
2 from 'wchar_t [2048]' to 'const char *' swmodule.cpp 1124
error C2664: 'lucene::document::Field::UnStored' : cannot convert parameter
2 from 'wchar_t [2048]' to 'const char *' swmodule.cpp 1245
error C2664: 'lucene::document::Field::UnStored' : cannot convert parameter
2 from 'wchar_t [2048]' to 'const char *' swmodule.cpp 1250
Thanks for help,
mmital
http://www.swordwarrior.net
David Trotz wrote:
>
> I wish I could help, but I have not done much with clucene. What I can say
> is if you get it to work, can you tell me how you did it? I want to build
> clucene for wince and I am guessing you will have me half way there once
> you
> get it worked out yourself :-P
> In Christ,
> David Trotz
>
>
> On 2/2/09 11:05 AM, "mmital" <mital.manu at gmail.com> wrote:
>
>> Hi,
>>
>> Can someone help me figure out how to compile sword with CLucene support?
>>
>> Here are the errors I'm getting.....
>>
>> http://www.swordwarrior.net/CLucene_MSVS.pdf
>>
>> Thanks a lot,
>> mmital
>>
>>
>>
>> _______________________________________________
>> sword-devel mailing list: sword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
--
View this message in context: http://www.nabble.com/compiling-sword-library-with-CLucene-tp21796124p22394850.html
Sent from the SWORD Dev mailing list archive at Nabble.com.
More information about the sword-devel
mailing list