ruediger/VobSub2SRT — Issue #14: Compile error
Author: plopplopplop
Created: 2012-03-07 20:23:34+00:00
State: open

$ git clone https://github.com/ruediger/VobSub2SRT.git
Cloning into 'VobSub2SRT'...
remote: Counting objects: 356, done.
remote: Compressing objects: 100% (203/203), done.
remote: Total 356 (delta 214), reused 287 (delta 145)
Receiving objects: 100% (356/356), 102.33 KiB, done.
Resolving deltas: 100% (214/214), done.

$ ./configure
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Source: /tmp/VobSub2SRT
-- Binary: /tmp/VobSub2SRT/build
-- Build type: Debug
-- checking for module 'libavutil'
-- found libavutil, version 51.34.101
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Performing Test TESSERACT_NAMESPACE
-- Performing Test TESSERACT_NAMESPACE - Success
-- Found Tesseract: /usr/lib/libtesseract_full.a;/usr/lib/i386-linux-gnu/libtiff.so
-- vobsub2srt version: 23dcb63
-- Debian architecture: i386
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/VobSub2SRT/build

$ make
make -C build
make[1]: Entering directory `/tmp/VobSub2SRT/build'
make[2]: Entering directory `/tmp/VobSub2SRT/build'
make[3]: Entering directory `/tmp/VobSub2SRT/build'
Scanning dependencies of target mplayer
make[3]: Leaving directory `/tmp/VobSub2SRT/build'
make[3]: Entering directory `/tmp/VobSub2SRT/build'
[ 14%] Building C object mplayer/CMakeFiles/mplayer.dir/mp_msg.c.o
[ 28%] Building C object mplayer/CMakeFiles/mplayer.dir/spudec.c.o
[ 42%] Building C object mplayer/CMakeFiles/mplayer.dir/unrar_exec.c.o
[ 57%] Building C object mplayer/CMakeFiles/mplayer.dir/vobsub.c.o
Linking C static library ../lib/libmplayer.a
make[3]: Leaving directory `/tmp/VobSub2SRT/build'
[ 57%] Built target mplayer
make[3]: Entering directory `/tmp/VobSub2SRT/build'
Scanning dependencies of target vobsub2srt
make[3]: Leaving directory `/tmp/VobSub2SRT/build'
make[3]: Entering directory `/tmp/VobSub2SRT/build'
[ 71%] Building CXX object src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o
[ 85%] Building CXX object src/CMakeFiles/vobsub2srt.dir/langcodes.c++.o
[100%] Building CXX object src/CMakeFiles/vobsub2srt.dir/cmd_options.c++.o
Linking CXX executable ../bin/vobsub2srt
CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o: In function `main':
/tmp/VobSub2SRT/src/vobsub2srt.c++:155: undefined reference to `tesseract::TessBaseAPI::TessBaseAPI()'
/tmp/VobSub2SRT/src/vobsub2srt.c++:158: undefined reference to `tesseract::TessBaseAPI::SetVariable(char const*, char const*)'
/tmp/VobSub2SRT/src/vobsub2srt.c++:207: undefined reference to `tesseract::TessBaseAPI::TesseractRect(unsigned char const*, int, int, int, int, int, int)'
/tmp/VobSub2SRT/src/vobsub2srt.c++:225: undefined reference to `tesseract::TessBaseAPI::End()'
/tmp/VobSub2SRT/src/vobsub2srt.c++:232: undefined reference to `tesseract::TessBaseAPI::~TessBaseAPI()'
/tmp/VobSub2SRT/src/vobsub2srt.c++:232: undefined reference to `tesseract::TessBaseAPI::~TessBaseAPI()'
CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o: In function `tesseract::TessBaseAPI::Init(char const*, char const*)':
/usr/include/tesseract/baseapi.h:208: undefined reference to `tesseract::TessBaseAPI::Init(char const*, char const*, tesseract::OcrEngineMode, char**, int, GenericVector const*, GenericVector const*, bool)'
collect2: ld returned 1 exit status
make[3]: *** [bin/vobsub2srt] Error 1
make[3]: Leaving directory `/tmp/VobSub2SRT/build'
make[2]: *** [src/CMakeFiles/vobsub2srt.dir/all] Error 2
make[2]: Leaving directory `/tmp/VobSub2SRT/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/VobSub2SRT/build'
make: *** [all] Error 2

$ dpkg -l | grep tesseract
ii libtesseract-dev 3.02.01-2 Development files for the tesseract command line OCR tool
ii libtesseract3 3.02.01-2 Command line OCR tool
ii tesseract-ocr 3.02.01-2 Command line OCR tool
ii tesseract-ocr-deu-f 2.01-2 tesseract-ocr language files for the German Fraktur script
ii tesseract-ocr-dev 2.04-2+squeeze1 Development files for the tesseract command line OCR tool
ii tesseract-ocr-eng 3.02-2 tesseract-ocr language files for English
ii tesseract-ocr-equ 3.02-2 tesseract-ocr language files for equations
ii tesseract-ocr-osd 3.02-2 tesseract-ocr language files for script and orientation