gnewtothis101 / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Patch - for msys2 - mingw-w64 #1354

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
msys2 - mingw-w64 on windows8

Please provide any additional information below.
Patches used for building tesseract under msys2
for details please contact the developers

https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-tesseract-ocr/00
01-Fix-broken_MSC_VER-checks.patch

https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-tesseract-ocr/00
02-Use-intptr_t-for-pointer-cast-target.patch

Original issue reported on code.google.com by shreeshrii on 24 Oct 2014 at 1:59

GoogleCodeExporter commented 9 years ago
Zdenko wrote: 
>> issue 1354[1]: I guess that usage of uintptr_t will break support of VS2009 
(which is needed for python2.x on windows)

Please see if any of the following will help with that ...

https://code.google.com/p/msinttypes/
http://groups.csail.mit.edu/cis/md6/revision-2009-1-15/Optimized_32bit/stdint.h
https://github.com/servo/mozjs/blob/master/mfbt/MSStdInt.h

http://docs.oracle.com/cd/E19120-01/open.solaris/816-5138/convert-10/index.html

https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/64bitPor
ting/MakingCode64-BitClean/MakingCode64-BitClean.html

Original comment by shreeshrii on 30 Oct 2014 at 4:31

GoogleCodeExporter commented 9 years ago
also see https://bugzilla.mozilla.org/show_bug.cgi?id=860457

"uintptr_t is provided in <stdint.h> on Mac, Linux, and some versions of 
Windows.  For those versions of Windows where it's not, we have mfbt/MSStdInt.h 
to fill in the gap."

Original comment by shreeshrii on 30 Oct 2014 at 4:33

GoogleCodeExporter commented 9 years ago
I committed these patches in 53eab2ee9239.
If there will be need to fix support of older compilers we can do it afterwords.

Original comment by zde...@gmail.com on 15 Apr 2015 at 8:40