patcharats / tesseract-ocr

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

[ 1553160 ] limits.h and cygwin #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Michael Toews - mwtoews(sf)

Hi.
I've tried compiling: `configure' works perfectly,
however the `make' command fails under cygwin.
Here is an excerpt from `./configure':

checking limits.h presence... yes

However, during `make':

In file included from ../ccutil/host.h:73,
from bpsupport.cpp:32:
../ccutil/platform.h:7:26: linux/limits.h: No such file
or directory

and the rest of `make' fails. Clearly the problem is
the assumption of a linux platform .. but it checked
for `configure' ?? I've attached a few config files
generated from the successful `./configure'.

My system is:
$ uname -a
CYGWIN_NT-5.1 spacetime 1.5.21(0.156/4/2) 2006-07-30
14:21 i686 Cygwin

+mt

Comments

Date: 2006-09-29 08:32
Sender: nobody
Logged In: NO 

for cygwin I solved this way

on file         ccutil/platform.h

replace

#include <linux/limits.h>

with

#include <limits.h>

Date: 2006-09-15 01:07
Sender: karimabadi
Logged In: YES 
user_id=1598026

in ccutil\platform.h

if you change line #7 
#include <linux/limits.h>  --> #include <limits.h>

the code will compile successfully on cygwin.

SK

Original issue reported on code.google.com by tmb...@gmail.com on 7 Mar 2007 at 10:29

GoogleCodeExporter commented 9 years ago

Original comment by tmb...@gmail.com on 7 Mar 2007 at 10:36

GoogleCodeExporter commented 9 years ago

Original comment by tmb...@gmail.com on 7 Mar 2007 at 10:39

GoogleCodeExporter commented 9 years ago
This is fixed in 1.04

Original comment by theraysm...@gmail.com on 17 May 2007 at 6:42