ruediger / VobSub2SRT

Converts VobSub subtitles (.idx/.srt format) into .srt subtitles.
GNU General Public License v3.0
294 stars 66 forks source link

error during configure with tesseract 3.01 #10

Closed thawn closed 12 years ago

thawn commented 12 years ago

when I try to compile with tesseract 3.01, I get the following error during configure:

-- Found Threads: TRUE -- Performing Test TESSERACT_NAMESPACE -- Performing Test TESSERACT_NAMESPACE - Success -- Found Tesseract: Tesseract_LIBRARIES-NOTFOUND;/usr/lib64/libtiff.so -- vobsub2srt version: 48723ea -- dpkg not found: No package generation. CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: Tesseract_LIBRARIES (ADVANCED) linked by target "vobsub2srt" in directory /var/tmp/portage/media-video/vobsub2srt-9999/work/vobsub2srt-9999/src

-- Configuring incomplete, errors occurred!

I am on a gentoo system and using tesseract 3.01 and libavutil version 50.43.0 with tesseract 2.04 the compile works fine, but I ran into the same problem reported here: https://github.com/ruediger/VobSub2SRT/issues/4 after upgrading to tesseract 3.01 without recompiling vobsub2srt, I get the unicharset file not found error. therefore I tried to recompile.

I figure this has something to do with tesseract 2.04 and tesseract 3.01 not being compatible (from the tesseract ReadMe wiki http://code.google.com/p/tesseract-ocr/wiki/ReadMe ): "Another important change is that you should really be using TessBaseAPI if you are linking with another program. In Linux (non-Windows) the main library is now libtesseract_api.a instead of the old libtesseract_full.a. "

ruediger commented 12 years ago

Where did you install tesseract and what is the name/path of the library files?

vobsub2srt should be compatible with tesseract 3.01. But I haven't tried it recently. Debian/Ubuntu sadly still ship with 2.04. I'll try to set up a tesseract 3.01 test environment again. But it might be a while before I'll find the time to debug the problem. You could probably manually edit the CMake-Cache/Vars as a temporary workaround.

ruediger commented 12 years ago

Please try building the latest git version. I think in tesseract 3.01 the library name has changed. 227dc496ca17cb9c656837f3d2e1b170b487b776 should fix this behaviour.

thawn commented 12 years ago

I tried the latest git version ( 034de16e954d11b1a3823d992ead4d18e45428fd ) and it worked like a charm. Thanks a lot!