Tesseract: Compiling on Windows failed when executing SW

Created on 21 Nov 2019  Â·  7Comments  Â·  Source: tesseract-ocr/tesseract

I'm compiling tesseract for Windows following this tutorial https://github.com/tesseract-ocr/tesseract/wiki/Compiling#windows

After downloading the software network (SW) from the given link, I run this command sw build org.sw.demo.google.tesseract.tesseract-master and got an error

D:\>sw build org.sw.demo.google.tesseract.tesseract-master
[82/83] [org.sw.demo.google.tesseract.tesseract-master]/[config]
[83/83] D:/.sw/cfg/412e2c/loc.sw.self.59f035-local.dll
[90/90] D:/.sw/cfg/412e2c/loc.sw.self.0542ae-local.dll
[646/1381] generate: "C:/Users/super/.sw/storage/pkg/89/dc/64e7/obj/bld/7d9571/bdp/.sw.symbols.def"
[706/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/chacha-core-internal.c
[711/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/chacha-set-nonce.c
[713/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/ccmain/osdetect.cpp
[714/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/aes192-meta.c
[715/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_set_format_raw.c
[716/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/classify/cluster.cpp
[717/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_add_filter_grzip.c
[718/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/rsa.c
[719/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_blake2s_ref.c
[720/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_set_format_mtree.c
[721/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/wordrec/render.cpp
[724/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_rb.c
[725/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_set_format_by_name.c
[727/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/eddsa-pubkey.c
[728/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_read_append_filter.c
[729/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_read_support_filter_gzip.c
[730/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_options.c
[734/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/ecdsa-keygen.c
[735/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/der-iterator.c
[736/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/filter_fork_windows.c
[737/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/hmac-sha1.c
[738/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_add_filter_compress.c
[739/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_digest.c
[740/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/textord/ccnontextdetect.cpp
[741/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_pack_dev.c
[742/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_read_open_memory.c
[743/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/curve25519-eh-to-x.c
[744/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_read_support_filter_program.c
[745/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/pbkdf2.c
[749/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/[bdir_pvt]/sw.rc
[750/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/dict/context.cpp
[751/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/dsa-compat.c
[752/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_ppmd8.c
[753/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/ripemd160-meta.c
[754/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/ccmain/equationdetect.cpp
[757/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/wordrec/chopper.cpp
[758/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_ppmd7.c
[760/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/ccm.c
[761/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/cutil/callcpp.cpp
[762/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_add_filter_by_name.c
[763/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/arch/simddetect.cpp
[764/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/ccutil/bitvector.cpp
[765/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_set_options.c
[766/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/ecc-add-ehh.c
[768/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_set_format_ar.c
[770/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_disk_set_standard_lookup.c
[772/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_read_open_filename.c
[773/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_disk_posix.c
[774/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/ccstruct/ocrpara.cpp
[776/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/rsa-sha256-sign.c
[777/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/umac-poly128.c
[778/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/ccutil/globaloc.cpp
[779/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/gcm-aes128-meta.c
[780/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_set_format_warc.c
[784/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/textord/underlin.cpp
[785/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/write-le64.c
[788/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/camellia128-set-decrypt-key.c
[789/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/dsa-gen-params.c
[790/1381] [org.sw.demo.gnu.nettle.nettle-3.5.1]/ecc-521.c
[793/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_set_format_cpio_newc.c
[794/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_disk_acl_linux.c
[795/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/ccstruct/matrix.cpp
[796/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_write_add_filter_zstd.c
[797/1381] [org.sw.demo.libarchive.libarchive-3.4.0]/libarchive/archive_read_support_format_cpio.c
[798/1381] [org.sw.demo.google.tesseract.libtesseract-master]/src/textord/tabvector.cpp
Exception in file D:\dev\cppan2\client2\src\sw\builder\command.cpp:576, function execute1: When executing: [org.sw.demo.google.tesseract.libtesseract-master]/src/ccmain/equationdetect.cpp
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(1): warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(236): error C2059: syntax error: '?'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(236): error C2143: syntax error: missing ';' before '}'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(238): error C2065: 'kCharsToEx': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(240): error C2065: 'kCharsToEx': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(244): error C2065: 'ids_to_exclude': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(250): error C2059: syntax error: 'if'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(251): error C2143: syntax error: missing ';' before '{'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(251): error C2447: '{': missing function header (old-style formal list?)
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(253): error C2059: syntax error: 'else'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(253): error C2143: syntax error: missing ';' before '{'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(253): error C2447: '{': missing function header (old-style formal list?)
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(258): error C2653: 'EquationDetect': is not a class or namespace name
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(260): error C2065: 'equ_tesseract_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(261): error C2065: 'equ_tesseract_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(264): error C2065: 'lang_tesseract_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(264): error C2789: 'classify_class_pruner': an object of const-qualified type must be initialized
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(264): note: see declaration of 'classify_class_pruner'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(266): error C2065: 'lang_tesseract_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(265): error C2789: 'classify_integer_matcher': an object of const-qualified type must be initialized
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(265): note: see declaration of 'classify_integer_matcher'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(267): error C2065: 'lang_tesseract_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(268): error C2065: 'lang_tesseract_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(270): error C2065: 'ColPartitionGridSearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(270): error C2146: syntax error: missing ';' before identifier 'gsearch'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(270): error C2065: 'part_grid_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(270): error C3861: 'gsearch': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(271): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(271): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(272): error C2065: 'gsearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(273): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(273): error C2065: 'gsearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(274): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(274): error C3861: 'IsTextOrEquationType': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(277): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(277): error C3861: 'IdentifyBlobsToSkip': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(278): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(292): error C2660: 'IdentifySpecialText': function does not take 2 arguments
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(258): note: see declaration of 'IdentifySpecialText'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(298): error C2065: 'lang_tesseract_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(300): error C2065: 'lang_tesseract_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(305): error C3861: 'GetOutputTiffName': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(306): error C3861: 'PaintSpecialTexts': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(310): error C2653: 'EquationDetect': is not a class or namespace name
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(310): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(310): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(310): error C2182: 'IdentifyBlobsToSkip': illegal use of type 'void'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(310): error C2448: 'IdentifyBlobsToSkip': function-style initializer appears to be a function definition
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(358): error C2653: 'EquationDetect': is not a class or namespace name
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(359): error C2065: 'ColPartitionGrid': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(359): error C2065: 'part_grid': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(359): error C2065: 'ColPartitionSet': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(359): error C2065: 'best_columns': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(359): error C2448: 'FindEquationParts': function-style initializer appears to be a function definition
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(424): error C2653: 'EquationDetect': is not a class or namespace name
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(426): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(426): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(428): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(428): error C2059: syntax error: '>'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(429): error C2065: 'ColPartitionGridSearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(429): error C2146: syntax error: missing ';' before identifier 'gsearch'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(429): error C2065: 'part_grid_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(429): error C3861: 'gsearch': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(430): error C2065: 'gsearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(431): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(431): error C2065: 'gsearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(432): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(432): error C3861: 'IsTextOrEquationType': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(435): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(435): error C2059: syntax error: '>'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(436): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(436): error C3861: 'SearchByOverlap': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(442): error C2065: 'part_grid_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(442): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(444): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(445): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(447): error C2065: 'gsearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(449): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(458): error C3861: 'InsertPartAfterAbsorb': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(463): error C2653: 'EquationDetect': is not a class or namespace name
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(464): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(464): error C2065: 'seed': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(465): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(465): error C2059: syntax error: '>'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(465): error C2062: type 'unknown-type' unexpected
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(465): error C2143: syntax error: missing ';' before '{'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(465): error C2447: '{': missing function header (old-style formal list?)
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(512): error C2653: 'EquationDetect': is not a class or namespace name
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(512): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(512): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(512): error C2182: 'InsertPartAfterAbsorb': illegal use of type 'void'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(512): error C2448: 'InsertPartAfterAbsorb': function-style initializer appears to be a function definition
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(539): error C2653: 'EquationDetect': is not a class or namespace name
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(540): error C2065: 'ColPartitionGridSearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(540): error C2146: syntax error: missing ';' before identifier 'gsearch'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(540): error C2065: 'part_grid_': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(540): error C3861: 'gsearch': identifier not found
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(541): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(541): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(542): error C2065: 'gsearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(544): error C2065: 'ColPartition': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(544): error C2059: syntax error: '>'
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(549): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(549): error C2065: 'gsearch': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(550): error C2065: 'part': undeclared identifier
C:/Users/super/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(550): fatal error C1003: error count exceeds 100; stopping compilation
command failed: exit code = 2
build_process

Most helpful comment

Open the error file and save it as UTF-8 with BOM.Then the problem will be solved.

All 7 comments

appveyor does not seems to have problem to build tesseract. Did you modified source code?

@zdenop I didn't. I followed exactly as described in the tutorial

Try to just run sw build in tesseract folder. appveyor is using sw without problem.

I have the same problem
when i run the sw build i got the following error
D:\Tutorial\Git\tesseract>sw build
[175/177] D:/Tutorial/Git/tesseract/sw.cpp
[176/177] C:/Users/essam.elkoshairy/.sw/storage/pkg/c4/6f/f371/src/sdir/src/sw/driver/misc/delay_load_helper.cpp
[177/177] D:/Tutorial/Git/tesseract/.sw/cfg/e92d5b/loc.sw.self.eeca95-local.dll
[175/216] [org.sw.demo.lz4-1.8.3]/[config]
[178/216] [org.sw.demo.bzip2-1.0.8]/[config]
[179/216] [org.sw.demo.cairographics.cairo-1.17.2]/[config]
[180/216] C:/Users/essam.elkoshairy/.sw/storage/pkg/c4/6f/f371/src/sdir/src/sw/driver/misc/delay_load_helper.cpp
[184/216] [org.sw.demo.mgk25.jbig.ar-2.1.0]/[config]
[185/216] [org.sw.demo.libffi-3.3.0]/[config]
Exception in file D:/dev/cppan2/client2/src/sw/builder/command.cpp:599, function execute1: When executing: [org.sw.demo.libffi-3.3.0]/[config]
C:/Users/essam.elkoshairy/.sw/storage/pkg/0f/fe/51b2/src/sdir/sw.cpp(99): error C2039: 'PreprocessSupressLineDirectives': is not a member of 'sw::VisualStudioCompiler'
c:\users\essam.elkoshairy.sw\storage\pkg\c4\6f\f371src\sdirsrc\sw\driver\compiler/compiler.h(194): note: see declaration of 'sw::VisualStudioCompiler'
C:/Users/essam.elkoshairy/.sw/storage/pkg/0f/fe/51b2/src/sdir/sw.cpp(101): error C2039: 'PreprocessFileName': is not a member of 'sw::VisualStudioCompiler'
c:\users\essam.elkoshairy.sw\storage\pkg\c4\6f\f371src\sdirsrc\sw\driver\compiler/compiler.h(194): note: see declaration of 'sw::VisualStudioCompiler'
command failed: exit code = 2

I have the same problem.
[1379/1382] [org.sw.demo.libarchive.libarchive-3.4.2].dll
Exception in file D:/dev/cppan2/client2/src/sw/builder/command.cpp:592, function execute1: When executing: [org.sw.demo.google.tesseract.libtesseract-master]/src/ccmain/equationdetect.cpp
C:/Users/cpte-rwp/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp: warning C4819: ļڵǰҳ(936)бʾַ뽫ļΪ Unicode ʽԷֹݶʧ
C:/Users/cpte-rwp/.sw/storage/pkg/1d/13/e4d8/src/sdir/src/ccmain/equationdetect.cpp(235): error C3688: ı׺〡Чδҵııģ塰operator """"〡

Open the error file and save it as UTF-8 with BOM.Then the problem will be solved.

Was this page helpful?
0 / 5 - 0 ratings