You have to build also contrib-libs (probably named 
libclucene-contribs-lib.dll). It is in separated project. I’m not sure where it 
is located in mingw32 environment,

check clucene\build\src\contribs-lib (for MS Visual studio it is in 
clucene\build\src\contribs-lib\clucene-contribs-lib.sln)

 

You can also get the latest changes in git repository branch HighlighterFix

 

Borek

 

From: muhammad ismael [mailto:m.ismae...@gmail.com] 
Sent: Sunday, November 07, 2010 11:50 PM
To: CLucene-developers@lists.sourceforge.net
Subject: [CLucene-dev] how to build clucene correctly?

 

Hello everybody,
I have a problem when i use highlighter i get the following error :

./debug\searchengine.o:D:\Projects\MyProjects\shamla\sourcecode\Shamla-build-desktop/../Shamla/SearchEngine/searchengine.cpp:43:
 undefined reference to 
`_imp___ZN6lucene6search9highlight11QueryScorerC1EPKNS0_5QueryE' 

./debug\searchengine.o:D:\Projects\MyProjects\shamla\sourcecode\Shamla-build-desktop/../Shamla/SearchEngine/searchengine.cpp:44:
 undefined reference to 
`_imp___ZN6lucene6search9highlight11HighlighterC1EPNS1_15HighlightScorerE'

./debug\searchengine.o:D:\Projects\MyProjects\shamla\sourcecode\Shamla-build-desktop/../Shamla/SearchEngine/searchengine.cpp:45:
 undefined reference to 
`_imp___ZN6lucene6search9highlight11Highlighter15getBestFragmentEPNS_8analysis8AnalyzerEPKwS7_'


So i think that the dll is not correct because it does not contains the 
implementation of highlighter.
although, i built the CLucene as follows:

1.      I configured the clucene using CMake and enabled the BUILD_CONTRIBS_LIBS
2.       Next, I generated the cmakefiles.
3.       I used Mingw32-make to build the library.
4.      i got 4 files :-

·         libclucene-core.dll (12.1 MB) 

·         libclucene-core.dll.a (1.78 MB)

·         libclucene-shared.dll (896 KB)

·         libclucene-shared.dll.a (84.9 KB)

I think that files with "a" extension are the release files so i used it.
What is the problem?

-- 

Sincerely
--------------------
Mohammad Ismael
Software Developer
Mobile:+20114753575

 

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to