java - Javacpp: liblept.4.dylib library not loaded -


on 64 bit mac osx trying use native c++ library java project described in link:

https://github.com/bytedeco/javacpp-presets/tree/master/tesseract

but error when run example, library liblept.4.dylib not loaded, , have no idea do.

java.lang.unsatisfiedlinkerror: no jnilept in java.library.path @ java.lang.classloader.loadlibrary(classloader.java:1865)  caused by:java.lang.unsatisfiedlinkerror:/private/var/folders/h8/wpw5p9196v1dz0hcy_s66_5w0000gn/t/javacpp21146551279247/libjnilept.dylib: dlopen(/private/var/folders/h8/wpw5p9196v1dz0hcy_s66_5w0000gn/t/javacpp21146551279247/libjnilept.dylib, 1): library not loaded: /users/saudet/projects/bytedeco/javacpp-presets/leptonica/cppbuild/macosx-x86_64/lib/liblept.4.dylib referenced from: /private/var/folders/h8/wpw5p9196v1dz0hcy_s66_5w0000gn/t/javacpp21146551279247/libjnilept.dylib 

update: tried install tesseract , leptonica libraries via mac ports, error has disappered new error came "java failed write core dump, problematic frame leptonica..etc"

so removed installed libraries again returned same error

that's issue that's been fixed: https://github.com/bytedeco/javacpp-presets/issues/46 not released yet though, it's easy enough compile source. first, latest source code both javacpp , javacpp presets github, run mvn install under javacpp, , then, under javacpp-presets, execute bash cppbuild.sh install leptonica tesseract before calling mvn install -pl .,leptonica,tesseract.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -