Commit Graph

63 Commits

Author SHA1 Message Date
Egor Pugin
b302e13126 [sw] Add pthread to tests. 2021-01-05 20:37:33 +03:00
Egor Pugin
2a74e72c39 [sw] Add pthread dependency. 2021-01-05 18:45:09 +03:00
Egor Pugin
4415209fd6 Remove tessopt. This fixes mastertrainer test in shared build. 2021-01-05 17:00:27 +03:00
Egor Pugin
682f602421
[sw] Add list test. 2021-01-04 00:25:44 +03:00
Egor Pugin
244708fde6 [sw] Better skip tests. 2021-01-02 22:22:44 +03:00
Egor Pugin
f209a6fddf [sw] Allow to skip tests. 2021-01-02 16:46:53 +03:00
Egor Pugin
fd8907471c Improve C API. Add tests.
1. Add simple C API test in C++ program.
2. Add simple C API test in C program.
3. Fix including capi.h in C++ files.
2021-01-02 03:57:25 +03:00
Egor Pugin
6464e3298a [sw] Remove deleted file. 2020-12-31 18:37:13 +03:00
Egor Pugin
07a1533a01 Move training lib sources into their own dirs. 2020-12-31 18:27:03 +03:00
Egor Pugin
c86325e2f7 Use TESS_API for every public symbol. Public symbol is exported from the library. This also applies to unit test and training symbols. Users will be limited to public api, but set of exported symbols will be wider still.
Remove TESS_LOCAL.
Fix several symbol issues that made visible with these changes.

All build systems must set -fvisibility-hidden for *nix systems.
2020-12-31 16:32:29 +03:00
Egor Pugin
59863f30ba [sw] Add new unit tests. 2020-12-30 23:35:17 +03:00
Egor Pugin
38ffaf60f3 [sw] Test updates. 18->17 failed tests left. 2020-12-30 02:39:51 +03:00
Egor Pugin
06f8942402 [sw] Build targets with utf-8 flag on msvc. 2020-12-30 02:10:25 +03:00
Egor Pugin
02ce392cf3 [sw] Do not build unit tests by default. 2020-12-28 20:37:35 +03:00
Egor Pugin
985c599bbd Move training tools into their own dir. 2020-12-28 04:34:52 +03:00
Egor Pugin
6cc8f58080 [sw] Add unit tests. 2020-12-28 02:32:36 +03:00
Egor Pugin
bc49237690 [sw] Misc. 2020-12-27 23:00:28 +03:00
Egor Pugin
aecbf79791 Add missing merge_unicharsets training tool to cmake and sw build. 2020-12-26 15:57:22 +03:00
Egor Pugin
b09fa9b166 [sw] Bump minimal C++ standard to C++17. 2020-12-26 03:48:57 +03:00
Stefan Weil
0a63484644 Remove checks for unused types off_t, mbstate_t, _Bool
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-21 12:04:16 +02:00
Stefan Weil
958b90d785 Don't check for unused sys/wait.h
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 11:01:20 +02:00
Stefan Weil
a1aea84a27 Don't check for unused sys/shm.h and sys/ipc.h
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 10:59:54 +02:00
Stefan Weil
c1494fb710 Don't check for stdbool.h (only used in capi.h)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 10:42:28 +02:00
Stefan Weil
d4cf77c92b Don't check for limits.h (now unused)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-20 10:39:13 +02:00
Stefan Weil
a1d161326e Don't check for unused malloc.h
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2020-06-19 07:30:00 +02:00
Egor Pugin
916875d74a [sw] Fix mingw build. 2020-03-17 17:57:10 +03:00
Egor Pugin
d6265166c6 Fix sw build after upload. 2020-02-20 13:44:07 +03:00
Egor Pugin
cfb2a2c3a4 Add sw options for openmp. 2020-02-19 16:08:51 +03:00
Egor Pugin
e9db7aae88
Update sw.cpp 2020-01-26 03:48:39 +03:00
Egor Pugin
8c20573ebf [sw] Set cpp standard. 2020-01-26 00:36:50 +03:00
Egor Pugin
946ed4e972 [sw] Fix linux build. 2020-01-25 23:03:16 +03:00
Egor Pugin
c7c250c8b4 Add include dir explicitly. 2019-10-29 14:57:32 +03:00
Stefan Weil
061eccd6ae Rename tesseract/tess_version.h -> tesseract/version.h
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-10-29 11:47:31 +01:00
Egor Pugin
8d10857973 Update sw build. 2019-10-29 13:27:12 +03:00
Egor Pugin
fb52f43822 Fix isolated build. 2019-10-11 00:46:23 +03:00
Stefan Weil
1012252004 sw.cpp: Sync list of public headers with Autotools build
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-10-06 22:30:36 +02:00
Egor Pugin
52cf4615dc Update sw build. 2019-09-26 00:34:36 +03:00
Egor Pugin
9217aa5c95 Update sw build. 2019-09-26 00:22:07 +03:00
Stefan Weil
f43ca88f29 [sw] Update build for commit e84cb24def
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-08-12 19:36:41 +02:00
Egor Pugin
f71e58c557 [sw] Try to fix build. 2019-08-12 19:50:22 +03:00
Stefan Weil
23e605911f Remove unused function truncate_path and related files
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-08-12 14:48:56 +02:00
Egor Pugin
ae020e7fbd [sw] Update build script. 2019-08-10 15:46:59 +03:00
Stefan Weil
9786b7276e Fix linker error in Appveyor CI
This completes commit c5a50b93ce.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-08-07 10:24:57 +02:00
Egor Pugin
cb99fe9b41 [sw] Use the latest pango again. 2019-08-06 15:04:32 +03:00
Egor Pugin
c58efee4ba Use pangocairo-1.43 for the moment. Remove private pango header. 2019-08-01 11:55:18 +03:00
Egor Pugin
08d50baf2c [sw] Install tess headers. 2019-07-28 18:20:43 +03:00
Egor Pugin
dbba30b82f [build][sw] Disable FMA dotproduct. 2019-07-13 20:03:53 +03:00
Stefan Weil
df98bb7368 Move LSTMTrainer from libtesseract to libtesseract_training
LSTMTrainer is only used for training, so the shared library for
Tesseract can be made smaller.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2019-06-22 16:23:51 +02:00
Egor Pugin
5717b098aa [sw] Remove inexistent include dirs. 2019-06-08 17:45:37 +03:00
Egor Pugin
c570772bce [sw] Exclude missing include dir. 2019-06-08 17:41:02 +03:00