Tesseract Tess4J - 在资源路径中找不到本机库(linux-x86-64 / libtesseract.so)

时间:2016-07-13 13:22:13

标签: c++ c linux gcc

我正在使用Tess4J并尝试拨打java.lang.UnsatisfiedLinkError: Unable to load library 'tesseract': Native library (linux-x86-64/libtesseract.so) not found in resource path 并收到此错误

gs -v

以下是我系统中的配置

操作系统版本:centos 6.8 leptonica版:leptonica-1.69 tesseract版本:tesseract-3.00

GhostScript版本:

1.command: ghostscript -v

我正在 GPL Ghostscript 9.16(2015-03-30)

2.command: 1) let playbackLikelyToKeepUpContext = UnsafeMutablePointer<(Void)>(nil) or let playbackLikelyToKeepUpContext = UnsafeMutablePointer<(Void)>() 2) //Add Observer player.addObserver(self, forKeyPath: "currentItem.playbackLikelyToKeepUp", options: NSKeyValueObservingOptions.New, context: playbackLikelyToKeepUpContext) player.play() 3) //Add observer override func observeValueForKeyPath(keyPath: String?, ofObject object: AnyObject?, change: [String : AnyObject]?, context: UnsafeMutablePointer<Void>) { guard keyPath != nil else { // a safety precaution super.observeValueForKeyPath(keyPath, ofObject: object, change: change, context: context) return } if (context == playbackLikelyToKeepUpContext) { if (player.currentItem!.playbackLikelyToKeepUp) { player.play() Utilities.hideHUD(self.view) } else { Utilities.showHUD(self.view) } } } 4) // Remove Observer override func viewDidDisappear(animated: Bool) { player.removeObserver(self, forKeyPath: "currentItem.playbackLikelyToKeepUp") }

我正在 GPL Ghostscript 8.70(2009-07-31)

gcc版本:gcc(GCC)4.8.2 20140120(红帽4.8.2-15)

非常感谢任何建议。

0 个答案:

没有答案