I'm not really qualified to diagnose this, but I wonder if perhaps the problem
is described in the error message.
Is the "image" that should be found supposed to be equal to
"dlopen(UnitexAnnotatorCpp.dylib, 10) "
or should it be something like "UnitexAnnotatorCpp.dylib"? (without the
surrounding dlopen(...)) ?
-Marshall
On 2/20/2012 11:54 AM, Sylvain Surcin wrote:
Hello,
Is there a way to get more info, or to trace the processes involved when
initializing a C++ annotator?
I have this message dumped when launching an aggregator containing some
Java annotators and one C++:
annotator:creating JNILogger
20/02/12 17:38:13 - 11:
org.apache.uima.uimacpp.UimacppAnalysisComponent.log(393): GRAVE:
org.apache.uima.cpp: 0
Error number : 2001
Recoverable : Yes
Error : Error loading annotator 'UnitexAnnotatorCpp'.
'dlopen(UnitexAnnotatorCpp.dylib, 10): image not found'
20/02/12 17:38:13 - 11:
org.apache.uima.uimacpp.UimacppAnalysisComponent.log(393): GRAVE:
org.apache.uima.cpp: 0 ResourceManager::requestAnnotatorFile() failed to
find UnitexAnnotatorCpp
Nevertheless the annotator's UnitexAnnotatorCpp.dylib is well available
through the $DYLD_LIBRARY_PATH environment variable, and also through the
-Djava.library.path when launching the aggregate. I even checked with a
small C program, using dlopen that it is possible to load the library.
What could I do next?
Thanks for any advice.
Sylvain