-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ccutil/version.h is now no longer needed. Signed-off-by: Stefan Weil <sw@weilnetz.de>
- Loading branch information
Showing
7 changed files
with
5 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
b94bbd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Help! How would a Visual Studio project find and read this new
PACKAGE_VERSION
string since it's no longer defined in .h or .cpp file.b94bbd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use Visual Studio with CMake, then CMake will add a definition for the macro
PACKAGE_VERSION
in the generated fileconfig_auto.h
.If you have your own Visual Studio Project, you can add a compiler option yourself (
-DPACKAGE_VERSION=x.y.z
).b94bbd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am still thinking about this change.
Putting version number to .h file is IMO better for handling API changes at compilation time e.g. There was change of API between 3.0x version and programs using tesseract library need to adapt code based on this version information. I have no time to test it but AFAIK something this is not possible at current code.
b94bbd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we need something like that, we could derive
TESSERACT_VERSION_MAJOR
andTESSERACT_VERSION_MINOR
macros fromPACKAGE_VERSION
and write them toconfig_auto
, too.CMake already has
Tesseract_VERSION_MAJOR
andTesseract_VERSION_MINOR
, but it is unclear where those are used, and I would also prefer all uppercase (cf. for examplePANGO_VERSION_MAJOR
).b94bbd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a
PACKAGE_VERSION="4.0.0-beta.1"
line to Preprocessor Definitions property completed the build. Thanks.b94bbd6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stweil Please also add version information to the training tools programs e.g. text2image. Thanks.