Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling tesseract-pkg-config #51

Open
latot opened this issue Jan 7, 2016 · 4 comments
Open

compiling tesseract-pkg-config #51

latot opened this issue Jan 7, 2016 · 4 comments

Comments

@latot
Copy link

latot commented Jan 7, 2016

Hi, well here again, opencl removed from tesseract so now works, lets try use pkg-config with the title branch:

./configure
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Source: /home/pipe/Documentos/git/VobSub2SRT
-- Binary: /home/pipe/Documentos/git/VobSub2SRT/build
-- Build type: Debug
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not 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  
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- Checking for module 'tesseract'
--   Found tesseract, version 3.04.00
-- Could NOT find Tesseract (missing:  Tesseract_INCLUDE_DIR) 
-- Bash completion path: /usr/share/bash-completion/completions
-- vobsub2srt version: 1.0pre7-2-ga2b2682
-- Debian architecture: amd64
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pipe/Documentos/git/VobSub2SRT/build
pipe@8dsaIHG ~/Documentos/git/VobSub2SRT $ make -j9
make -C build
make[1]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[2]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
Scanning dependencies of target documentation
Scanning dependencies of target mplayer
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
[ 10%] Generating vobsub2srt.1.gz
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
[ 10%] Built target documentation
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
[ 30%] Building C object mplayer/CMakeFiles/mplayer.dir/mp_msg.c.o
[ 40%] Building C object mplayer/CMakeFiles/mplayer.dir/unrar_exec.c.o
[ 50%] Building C object mplayer/CMakeFiles/mplayer.dir/spudec.c.o
[ 50%] Building C object mplayer/CMakeFiles/mplayer.dir/vobsub.c.o
[ 60%] Linking C static library ../lib/libmplayer.a
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
[ 60%] Built target mplayer
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
Scanning dependencies of target vobsub2srt
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
[ 80%] Building CXX object src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o
[ 80%] Building CXX object src/CMakeFiles/vobsub2srt.dir/langcodes.c++.o
[ 90%] Building CXX object src/CMakeFiles/vobsub2srt.dir/cmd_options.c++.o
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++: En la función ‘int main(int, char**)’:
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++:218:3: error: ‘TessBaseAPI’ no se ha declarado
   TessBaseAPI::SimpleInit(tess_path, tess_lang, false); // TODO params
   ^
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++:220:5: error: ‘TessBaseAPI’ no se ha declarado
     TessBaseAPI::SetVariable("tessedit_char_blacklist", blacklist.c_str());
     ^
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++:275:20: error: ‘TessBaseAPI’ no se ha declarado
       char *text = TessBaseAPI::TesseractRect(image, 1, stride, 0, 0, width, height);
                    ^
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++:314:3: error: ‘TessBaseAPI’ no se ha declarado
   TessBaseAPI::End();
   ^
src/CMakeFiles/vobsub2srt.dir/build.make:62: fallo en las instrucciones para el objetivo 'src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o'
make[3]: *** [src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o] Error 1
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
CMakeFiles/Makefile2:172: fallo en las instrucciones para el objetivo 'src/CMakeFiles/vobsub2srt.dir/all'
make[2]: *** [src/CMakeFiles/vobsub2srt.dir/all] Error 2
make[2]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
Makefile:149: fallo en las instrucciones para el objetivo 'all'
make[1]: *** [all] Error 2
make[1]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
Makefile:4: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2
@ruediger
Copy link
Owner

ruediger commented Jan 8, 2016

This should be fixed in 38c9ceb. Please try again after a git pull

@latot
Copy link
Author

latot commented Jan 8, 2016

sadly don't works.
as a note i'm in the tesseract-pkg-config branch

@ruediger
Copy link
Owner

ruediger commented Jan 8, 2016

The commit is on that branch. Please run git pull then make distclean and then try the ./configure again.

@latot
Copy link
Author

latot commented Jan 8, 2016

don't works

./configure
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Source: /home/pipe/Documentos/git/VobSub2SRT
-- Binary: /home/pipe/Documentos/git/VobSub2SRT/build
-- Build type: Debug
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not 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  
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
-- Checking for module 'tesseract'
--   Found tesseract, version 3.04.00
-- Found Tesseract: tesseract  
-- Bash completion path: /usr/share/bash-completion/completions
-- vobsub2srt version: 1.0pre7-3-g38c9ceb
-- Debian architecture: amd64
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pipe/Documentos/git/VobSub2SRT/build
pipe@IIN6 ~/Documentos/git/VobSub2SRT $ make -j9
make -C build
make[1]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[2]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
Scanning dependencies of target documentation
Scanning dependencies of target mplayer
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
[ 10%] Generating vobsub2srt.1.gz
[ 20%] Building C object mplayer/CMakeFiles/mplayer.dir/mp_msg.c.o
[ 30%] Building C object mplayer/CMakeFiles/mplayer.dir/vobsub.c.o
[ 40%] Building C object mplayer/CMakeFiles/mplayer.dir/spudec.c.o
[ 50%] Building C object mplayer/CMakeFiles/mplayer.dir/unrar_exec.c.o
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
[ 50%] Built target documentation
[ 60%] Linking C static library ../lib/libmplayer.a
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
[ 60%] Built target mplayer
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
Scanning dependencies of target vobsub2srt
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
make[3]: se entra en el directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
[ 70%] Building CXX object src/CMakeFiles/vobsub2srt.dir/cmd_options.c++.o
[ 80%] Building CXX object src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o
[ 90%] Building CXX object src/CMakeFiles/vobsub2srt.dir/langcodes.c++.o
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++: En la función ‘int main(int, char**)’:
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++:218:3: error: ‘TessBaseAPI’ no se ha declarado
   TessBaseAPI::SimpleInit(tess_path, tess_lang, false); // TODO params
   ^
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++:220:5: error: ‘TessBaseAPI’ no se ha declarado
     TessBaseAPI::SetVariable("tessedit_char_blacklist", blacklist.c_str());
     ^
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++:275:20: error: ‘TessBaseAPI’ no se ha declarado
       char *text = TessBaseAPI::TesseractRect(image, 1, stride, 0, 0, width, height);
                    ^
/home/pipe/Documentos/git/VobSub2SRT/src/vobsub2srt.c++:314:3: error: ‘TessBaseAPI’ no se ha declarado
   TessBaseAPI::End();
   ^
src/CMakeFiles/vobsub2srt.dir/build.make:62: fallo en las instrucciones para el objetivo 'src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o'
make[3]: *** [src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o] Error 1
make[3]: *** Se espera a que terminen otras tareas....
make[3]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
CMakeFiles/Makefile2:172: fallo en las instrucciones para el objetivo 'src/CMakeFiles/vobsub2srt.dir/all'
make[2]: *** [src/CMakeFiles/vobsub2srt.dir/all] Error 2
make[2]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
Makefile:149: fallo en las instrucciones para el objetivo 'all'
make[1]: *** [all] Error 2
make[1]: se sale del directorio '/home/pipe/Documentos/git/VobSub2SRT/build'
Makefile:4: fallo en las instrucciones para el objetivo 'all'
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants