New issue 573 by tomp2...@gmail.com: Warnings while building 3.01 using
VS2008?
http://code.google.com/p/tesseract-ocr/issues/detail?id=573
What steps will reproduce the problem?
1. Build tesseract 3.01 using my newly proposed VS2008 files.
What is the expected output? What do you see instead?
No warnings.
Even after I turn off the following warnings (as discussed in
http://groups.google.com/group/tesseract-dev/msg/da4ab9b046876d7e):
/wd4005: 'snprintf' : macro redefinition
/wd4018 'expression' : signed/unsigned mismatch
/wd4244 conversion from 'double' to 'float', possible loss of data
/wd4355: 'this' : used in base member initializer list
/wd4267 conversion from 'size_t' to 'type', possible loss of data
/wd4305 truncation from 'type1' to 'type2'
/wd4800: forcing value to bool 'true' or 'false' (performance
warning)
/wd4996 'function': was declared deprecated
I still see these remaining 8 warnings:
warning C4804: '>' : unsafe use of type 'bool' in operation
ccstruct\werd.cpp 473
warning C4566: character represented by
universal-character-name '\u2000' cannot be represented in the current code
page (1252) dict\trie.cpp 43
warning C4566: character represented by
universal-character-name '\u2001' cannot be represented in the current code
page (1252) dict\trie.cpp 44
warning C4566: character represented by
universal-character-name '\u2002' cannot be represented in the current code
page (1252) dict\trie.cpp 45
warning C4566: character represented by
universal-character-name '\u2003' cannot be represented in the current code
page (1252) dict\trie.cpp 46
warning C4566: character represented by
universal-character-name '\u2004' cannot be represented in the current code
page (1252) dict\trie.cpp 47
warning C4566: character represented by
universal-character-name '\u2005' cannot be represented in the current code
page (1252) dict\trie.cpp 48
warning LNK4221: no public symbols found; archive member will be
inaccessible quadratc.obj
What version of the product are you using? On what operating system?
My new solution mentioned in "Enhancing the tesseract 3.01 Visual Studio
2008 distribution"
(http://groups.google.com/group/tesseract-dev/msg/da4ab9b046876d7e).
Visual Studio 2008
Windows 7 SP1
Please provide any additional information below.
I have no idea what the middle 6 are, but the first warning looks like a
real error to me;
if ((not_found_box.major_overlap(a_blob_box) ||
a_blob_box.major_overlap(not_found_box)) &&
not_found_box.y_overlap(a_blob_box) > 0.8) {
where y_overlap is defined in rect.h as:
inline bool TBOX::y_overlap(const TBOX &box) const {
return ((box.bot_left.y() <= top_right.y()) &&
(box.top_right.y() >= bot_left.y()));
}
So it seems like the check is to see if a bool > 0.8???
Not sure what is going on with the last warning either. In the past, I've
seen that when everything in a file is somehow #ifdef'ed out. quadratc.cpp
just includes quadratc.h, but that file defines a class and also includes
points.h which defines a bunch of things?
Comment #1 on issue 573 by zde...@gmail.com: Warnings while building 3.01
using VS2008?
http://code.google.com/p/tesseract-ocr/issues/detail?id=573
closing this issue, because in svn there is new solution build from
scratch. Please feel free to improve it.
My new solution fixes (by turning off) most of the warnings but a real bug
is still in ccstruct\werd.cpp [1]. Should I submit that bug as a separate
issue. It apparently got lost in all the other stuff.
[1]
http://code.google.com/p/tesseract-ocr/source/browse/trunk/ccstruct/werd.cpp#474
Comment #3 on issue 573 by zde...@gmail.com: Warnings while building 3.01
using VS2008?
http://code.google.com/p/tesseract-ocr/issues/detail?id=573
This issue was closed by revision r694.