As of 2025-04-28, after e successful `./configure` : ``` charpent@brique:~/Dev/VobSub2SRT$ ./configure CMake Warning (dev) at CMakeLists.txt:1 (project): cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is GNU 14.2.0 -- The CXX compiler identification is GNU 14.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. -- Source: /home/charpent/Dev/VobSub2SRT -- Binary: /home/charpent/Dev/VobSub2SRT/build -- Build type: Debug -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test TESSERACT_NAMESPACE -- Performing Test TESSERACT_NAMESPACE - Failed CMake Warning at CMakeModules/FindTesseract.cmake:56 (message): You are using an old Tesseract version. Support for Tesseract 2 is deprecated and will be removed in the future! Call Stack (most recent call first): CMakeLists.txt:66 (find_package) -- Found Tesseract: /usr/lib/x86_64-linux-gnu/libtesseract.so;/usr/lib/x86_64-linux-gnu/libtiff.so -- Bash completion path: /usr/share/bash-completion/completions -- vobsub2srt version: 1.0pre7-11-g0ba6e25 -- Debian architecture: amd64 -- Configuring done (0.6s) -- Generating done (0.0s) -- Build files have been written to: /home/charpent/Dev/VobSub2SRT/build c ``` an attempt to build the Debian package fails : ``` charpent@brique:~/Dev/VobSub2SRT$ make package make -C build package make[1] : on entre dans le répertoire « /home/charpent/Dev/VobSub2SRT/build » [ 10%] Building C object mplayer/CMakeFiles/mplayer.dir/mp_msg.c.o [ 20%] Building C object mplayer/CMakeFiles/mplayer.dir/spudec.c.o [ 30%] Building C object mplayer/CMakeFiles/mplayer.dir/unrar_exec.c.o [ 40%] Building C object mplayer/CMakeFiles/mplayer.dir/vobsub.c.o [ 50%] Linking C static library ../lib/libmplayer.a [ 50%] Built target mplayer [ 60%] Building CXX object src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o In file included from /usr/include/tesseract/pageiterator.h:22, from /usr/include/tesseract/baseapi.h:25, from /home/charpent/Dev/VobSub2SRT/src/vobsub2srt.c++:27: /usr/include/tesseract/publictypes.h:31:1: error: ‘constexpr’ does not name a type 31 | constexpr int kPointsPerInch = 72; | ^~~~~~~~~ /usr/include/tesseract/publictypes.h:31:1: note: C++11 ‘constexpr’ only available with ‘-std=c++11’ or ‘-std=gnu++11’ /usr/include/tesseract/publictypes.h:36:1: error: ‘constexpr’ does not name a type 36 | constexpr int kMinCredibleResolution = 70; | ^~~~~~~~~ /usr/include/tesseract/publictypes.h:36:1: note: C++11 ‘constexpr’ only available with ‘-std=c++11’ or ‘-std=gnu++11’ /usr/include/tesseract/publictypes.h:38:1: error: ‘constexpr’ does not name a type 38 | constexpr int kMaxCredibleResolution = 2400; | ^~~~~~~~~ /usr/include/tesseract/publictypes.h:38:1: note: C++11 ‘constexpr’ only available with ‘-std=c++11’ or ‘-std=gnu++11’ /usr/include/tesseract/publictypes.h:43:1: error: ‘constexpr’ does not name a type 43 | constexpr int kResolutionEstimationFactor = 10; | ^~~~~~~~~ /usr/include/tesseract/publictypes.h:43:1: note: C++11 ‘constexpr’ only available with ‘-std=c++11’ or ‘-std=gnu++11’ In file included from /usr/include/tesseract/ltrresultiterator.h:24, from /usr/include/tesseract/resultiterator.h:23, from /usr/include/tesseract/baseapi.h:27: /usr/include/tesseract/unichar.h:34:7: error: expected nested-name-specifier before ‘UNICHAR_ID’ 34 | using UNICHAR_ID = int; | ^~~~~~~~~~ /usr/include/tesseract/unichar.h:49:7: error: expected nested-name-specifier before ‘char32’ 49 | using char32 = signed int; | ^~~~~~ /usr/include/tesseract/unichar.h:106:11: error: expected nested-name-specifier before ‘CI’ 106 | using CI = const_iterator; | ^~ /usr/include/tesseract/unichar.h:138:34: error: ‘CI’ does not name a type 138 | friend bool operator==(const CI &lhs, const CI &rhs) { | ^~ /usr/include/tesseract/unichar.h:138:49: error: ‘CI’ does not name a type 138 | friend bool operator==(const CI &lhs, const CI &rhs) { | ^~ /usr/include/tesseract/unichar.h:138:17: error: ‘bool tesseract::operator==(const int&, const int&)’ must have an argument of class or enumerated type 138 | friend bool operator==(const CI &lhs, const CI &rhs) { | ^~~~~~~~ /usr/include/tesseract/unichar.h:141:34: error: ‘CI’ does not name a type 141 | friend bool operator!=(const CI &lhs, const CI &rhs) { | ^~ /usr/include/tesseract/unichar.h:141:49: error: ‘CI’ does not name a type 141 | friend bool operator!=(const CI &lhs, const CI &rhs) { | ^~ /usr/include/tesseract/unichar.h:141:17: error: ‘bool tesseract::operator!=(const int&, const int&)’ must have an argument of class or enumerated type 141 | friend bool operator!=(const CI &lhs, const CI &rhs) { | ^~~~~~~~ /usr/include/tesseract/unichar.h:160:22: error: ‘char32’ was not declared in this scope; did you mean ‘char’? 160 | static std::vector<char32> UTF8ToUTF32(const char *utf8_str); | ^~~~~~ | char /usr/include/tesseract/unichar.h:160:28: error: template argument 1 is invalid 160 | static std::vector<char32> UTF8ToUTF32(const char *utf8_str); | ^ /usr/include/tesseract/unichar.h:160:28: error: template argument 2 is invalid /usr/include/tesseract/unichar.h:163:52: error: ‘char32’ was not declared in this scope; did you mean ‘char’? 163 | static std::string UTF32ToUTF8(const std::vector<char32> &str32); | ^~~~~~ | char /usr/include/tesseract/unichar.h:163:58: error: template argument 1 is invalid 163 | static std::string UTF32ToUTF8(const std::vector<char32> &str32); | ^ /usr/include/tesseract/unichar.h:163:58: error: template argument 2 is invalid /usr/include/tesseract/ltrresultiterator.h:212:56: error: ‘>>’ should be ‘> >’ within a nested template argument list 212 | std::vector<std::vector<std::pair<const char *, float>>> *Timesteps() const; | ^~ | > > /usr/include/tesseract/ltrresultiterator.h:221:44: error: ‘>>’ should be ‘> >’ within a nested template argument list 221 | std::vector<std::pair<const char *, float>> *LSTM_choices_ = nullptr; | ^~ | > > /usr/include/tesseract/ltrresultiterator.h:222:44: error: ‘>>’ should be ‘> >’ within a nested template argument list 222 | std::vector<std::pair<const char *, float>>::iterator LSTM_choice_it_; | ^~ | > > /usr/include/tesseract/ltrresultiterator.h:221:64: error: ‘nullptr’ was not declared in this scope 221 | std::vector<std::pair<const char *, float>> *LSTM_choices_ = nullptr; | ^~~~~~~ /usr/include/tesseract/resultiterator.h:94:76: error: ‘>>’ should be ‘> >’ within a nested template argument list 94 | virtual std::vector<std::vector<std::vector<std::pair<const char *, float>>>> | ^~ | > > /usr/include/tesseract/resultiterator.h:94:78: error: ‘>>’ should be ‘> >’ within a nested template argument list 94 | virtual std::vector<std::vector<std::vector<std::pair<const char *, float>>>> | ^~ | > > /usr/include/tesseract/resultiterator.h:96:64: error: ‘>>’ should be ‘> >’ within a nested template argument list 96 | virtual std::vector<std::vector<std::pair<const char *, float>>> | ^~ | > > /usr/include/tesseract/baseapi.h:61:7: error: expected nested-name-specifier before ‘FileReader’ 61 | using FileReader = bool (*)(const char *filename, std::vector<char> *data); | ^~~~~~~~~~ /usr/include/tesseract/baseapi.h:63:7: error: expected nested-name-specifier before ‘DictFunc’ 63 | using DictFunc = int (Dict::*)(void *, const UNICHARSET &, UNICHAR_ID, | ^~~~~~~~ /usr/include/tesseract/baseapi.h:65:7: error: expected nested-name-specifier before ‘ProbabilityInContextFunc’ 65 | using ProbabilityInContextFunc = double (Dict::*)(const char *, const char *, | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/tesseract/baseapi.h:215:44: error: ‘FileReader’ has not been declared 215 | bool set_only_non_debug_params, FileReader reader); | ^~~~~~~~~~ /usr/include/tesseract/baseapi.h:690:20: error: ‘DictFunc’ has not been declared 690 | void SetDictFunc(DictFunc f); | ^~~~~~~~ /usr/include/tesseract/baseapi.h:695:36: error: ‘ProbabilityInContextFunc’ has not been declared 695 | void SetProbabilityInContextFunc(ProbabilityInContextFunc f); | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/tesseract/baseapi.h:776:3: error: ‘FileReader’ does not name a type 776 | FileReader reader_; ///< Reads files from any filesystem. | ^~~~~~~~~~ /usr/include/tesseract/baseapi.h: In member function ‘int tesseract::TessBaseAPI::Init(const char*, const char*, tesseract::OcrEngineMode)’: /usr/include/tesseract/baseapi.h:203:42: error: ‘nullptr’ was not declared in this scope 203 | return Init(datapath, language, oem, nullptr, 0, nullptr, nullptr, false); | ^~~~~~~ /usr/include/tesseract/baseapi.h: In member function ‘int tesseract::TessBaseAPI::Init(const char*, const char*)’: /usr/include/tesseract/baseapi.h:206:50: error: ‘nullptr’ was not declared in this scope 206 | return Init(datapath, language, OEM_DEFAULT, nullptr, 0, nullptr, nullptr, | ^~~~~~~ /usr/include/tesseract/baseapi.h: In member function ‘Boxa* tesseract::TessBaseAPI::GetTextlines(Pixa**, int**)’: /usr/include/tesseract/baseapi.h:369:51: error: ‘nullptr’ was not declared in this scope 369 | return GetTextlines(false, 0, pixa, blockids, nullptr); | ^~~~~~~ /usr/include/tesseract/baseapi.h: In member function ‘Boxa* tesseract::TessBaseAPI::GetComponentImages(tesseract::PageIteratorLevel, bool, Pixa**, int**)’: /usr/include/tesseract/baseapi.h:418:31: error: ‘nullptr’ was not declared in this scope 418 | nullptr); | ^~~~~~~ /home/charpent/Dev/VobSub2SRT/src/vobsub2srt.c++: In function ‘int main(int, char**)’: /home/charpent/Dev/VobSub2SRT/src/vobsub2srt.c++:218:3: error: ‘TessBaseAPI’ has not been declared 218 | TessBaseAPI::SimpleInit(tess_path, tess_lang, false); // TODO params | ^~~~~~~~~~~ /home/charpent/Dev/VobSub2SRT/src/vobsub2srt.c++:220:5: error: ‘TessBaseAPI’ has not been declared 220 | TessBaseAPI::SetVariable("tessedit_char_blacklist", blacklist.c_str()); | ^~~~~~~~~~~ /home/charpent/Dev/VobSub2SRT/src/vobsub2srt.c++:275:20: error: ‘TessBaseAPI’ has not been declared 275 | char *text = TessBaseAPI::TesseractRect(image, 1, stride, 0, 0, width, height); | ^~~~~~~~~~~ /home/charpent/Dev/VobSub2SRT/src/vobsub2srt.c++:301:32: error: ‘UINT_MAX’ was not declared in this scope 301 | if(conv_subs[i].end_pts == UINT_MAX && i+1 < conv_subs.size()) | ^~~~~~~~ /home/charpent/Dev/VobSub2SRT/src/vobsub2srt.c++:37:1: note: ‘UINT_MAX’ is defined in header ‘<climits>’; this is probably fixable by adding ‘#include <climits>’ 36 | #include "cmd_options.h++" +++ |+#include <climits> 37 | /home/charpent/Dev/VobSub2SRT/src/vobsub2srt.c++:314:3: error: ‘TessBaseAPI’ has not been declared 314 | TessBaseAPI::End(); | ^~~~~~~~~~~ make[3]: *** [src/CMakeFiles/vobsub2srt.dir/build.make:79: src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o] Error 1 make[2]: *** [CMakeFiles/Makefile2:217: src/CMakeFiles/vobsub2srt.dir/all] Error 2 make[1]: *** [Makefile:156: all] Error 2 make[1] : on quitte le répertoire « /home/charpent/Dev/VobSub2SRT/build » make: *** [Makefile:22: package] Error 2 ```