[FEATURE] Added version no. of libraries to --version (#939)

* Added version no. of libraries to --version

* Fix link

* ifdef used for tesseract/leptonica

* fix spelling
This commit is contained in:
Manish Mahalwal
2018-02-25 22:46:48 +05:30
committed by Carlos Fernandez Sanz
parent 2114a80dbb
commit f717624bfa
2 changed files with 24 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ CCExtractor is [participating in Google Summer of Code (GSoC) 2018!](https://cce
Google Summer of Code is an amazing program sponsored by Google in which university students get to spend their summer working with open source organizations and get paid for their work.
You can read all about it on [GSoC's website](summerofcode.withgoogle.com/)
You can read all about it on [GSoC's website](https://summerofcode.withgoogle.com/)
## Installation and Usage

View File

@@ -1,3 +1,10 @@
#include "png.h"
#include "protobuf-c.h"
#include "utf8proc.h"
#include "zlib.h"
#include "gpac/version.h"
#include "capi.h"
#include "allheaders.h"
#include "lib_ccx.h"
#include "ccx_common_option.h"
#include "utility.h"
@@ -953,6 +960,22 @@ void version(char *location) {
mprint(" Git commit: %s\n", GIT_COMMIT);
mprint(" Compilation date: %s\n", COMPILE_DATE);
mprint(" File SHA256: %s\n", hash);
mprint("Libraries used by CCExtractor\n");
#ifdef ENABLE_OCR
mprint(" Tesseract Version: %s\n", (const char*)TessVersion());
mprint(" Leptonica Version: %s\n", getLeptonicaVersion());
#endif
mprint(" libGPAC Version: %s\n", GPAC_VERSION);
mprint(" zlib: %s\n", ZLIB_VERSION);
mprint(" utf8proc Version: %s\n", (const char*) utf8proc_version());
mprint(" protobuf-c Version: %s\n", (const char*) protobuf_c_version());
mprint(" libpng Version: %s\n", PNG_LIBPNG_VER_STRING);
mprint(" FreeType \n");
mprint(" libhash\n");
mprint(" nuklear\n");
mprint(" libzvbi\n");
}
void parse_708_services (struct ccx_s_options *opts, char *s)