Compilation fail in Windows

27 views
Skip to first unread message

Nirmal

unread,
Oct 2, 2010, 5:29:01 AM10/2/10
to link-grammar
While compiling link-grammar 4.7.0 in MinGW, I'm getting the
"termios.h file not found error".

OS: Vista

Can someone help me to get link-grammar compiled?

Thanks.

Simon J Stuart

unread,
Oct 2, 2010, 11:12:23 AM10/2/10
to link-g...@googlegroups.com
More info needed:
Do you have Regex from GnuWin32?
What compiler are you using? MYSYS/MinGW? Cygwin? MSVC++ 2005? MSVC++ 2008?
MSVC++ 2010?
Are you building from the latest SVN or from a zip file? If the latter, what
version?
Did you remember to add the Regex path to your Environment Variables as
detailed in the README document?

All of the above said, you can get a pre-compiled version of the DLL from my
LGP for Delphi bindings project, along with a pre-compiled GUI app to
perform simple parses:
http://www.lakraven.com/delphi-stuff/link-grammar-parser/

Regards,
Simon

OS: Vista

Thanks.

--
You received this message because you are subscribed to the Google Groups
"link-grammar" group.
To post to this group, send email to link-g...@googlegroups.com.
To unsubscribe from this group, send email to
link-grammar...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/link-grammar?hl=en.

Simon J Stuart

unread,
Oct 2, 2010, 11:13:58 AM10/2/10
to link-g...@googlegroups.com
Sorry, I missed the top line of the message for some strange reason!

Okay, I personally have never built LGP in MinGW so I cannot give you a
conclusive solution personally... sorry!

-----Original Message-----
From: link-g...@googlegroups.com [mailto:link-g...@googlegroups.com]
On Behalf Of Nirmal
Sent: 02 October 2010 10:29
To: link-grammar
Subject: [Link Grammar] Compilation fail in Windows

OS: Vista

Thanks.

--

Nirmal

unread,
Oct 2, 2010, 12:29:44 PM10/2/10
to link-grammar
Thanks Simon for the reply!

On Oct 2, 8:12 pm, "Simon J Stuart" <kra...@greycascade.com> wrote:
> More info needed:
> Do you have Regex from GnuWin32?
> What compiler are you using? MYSYS/MinGW? Cygwin? MSVC++ 2005? MSVC++ 2008?
> MSVC++ 2010?
> Are you building from the latest SVN or from a zip file? If the latter, what
> version?
> Did you remember to add the Regex path to your Environment Variables as
> detailed in the README document?

Where should I add Regex path? I meant to which environment variable?
I got rid of regex.h missing error by manually adding regex.h to mingw/
include and
regex libraries to mingw/lib.

But I'm not quite sure "termios.h file not found problem" will be
solved by adding that.
Seems like no one has tested LGP in MinGW. :(

Meantime while I'm looking to LGP code, I found the following at link-
parser.c file,
in the section that uses this termios.h file.

/**
* On Unix, this checks for the current window size,
* and sets the output screen width accordingly.
* Not sure how MS Windows does this.
*/
static void check_winsize(Parse_Options popts)
{
/* Neither windows nor MSYS have the ioctl support needed for this. */

Any help would be highly appreciated!

Thanks.

Bartosz Browarski

unread,
Oct 2, 2010, 10:49:09 AM10/2/10
to link-g...@googlegroups.com
I advise you to give up on trying to get it done using minGW. Rather
do it with Visual Studio, using files and instructions provided by Mr
Iordanov (sorry if I misspelled the name) on this group some time ago.

Good luck.
Brovar

2010/10/2, Nirmal <nirmal...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "link-grammar" group.
> To post to this group, send email to link-g...@googlegroups.com.
> To unsubscribe from this group, send email to
> link-grammar...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/link-grammar?hl=en.
>
>

--
Wysłane z mojego urządzenia przenośnego

Linas Vepstas

unread,
Oct 2, 2010, 2:04:18 PM10/2/10
to link-g...@googlegroups.com
Hi,

On 2 October 2010 11:29, Nirmal <nirmal...@gmail.com> wrote:

> But I'm not quite sure "termios.h file not found problem" will be
> solved by adding that.
> Seems like no one has tested LGP in MinGW. :(

The include of termios is carefully protected by #ifdefs, so that
it is not included on windows boxes. (i.e. so that this error would
not happen) Yet this protection failed on your system. Just
comment it out.

You will have to find and install regex, this is needed and the
system won't work without it.

---

As a general rule, windows is a difficult system on which to
program. In my personal experience, the tools are substandard,
lacking in features and functions, and are just plain-old hard to use.
This is one reason why systems such as Linux have become
popular. If you have aspirations to become a professional
programmer, you should get yourself a Linux system, and try
working with that.

--linas

John

unread,
Oct 13, 2010, 12:47:08 AM10/13/10
to link-grammar
I can't get it to run in Windows 7 either. I'm not a programmer, but
just someone trying to parse a few sentences from a few newspapers
from around the country; linguistics stuff. I don't know about
compilers or SVN or anything like that. I downloaded the files,
unzipped them and found out there was something called an "IN" file in
the compiler instructions. No clue about what that's all about. Any
help would be appreciated.

Thanks,
John

Linas Vepstas

unread,
Oct 14, 2010, 10:41:33 PM10/14/10
to link-g...@googlegroups.com
On 12 October 2010 23:47, John <alm...@fit.edu> wrote:
> I can't get it to run in Windows 7 either.  I'm not a programmer, but
> just someone trying to parse a few sentences from a few newspapers
> from around the country; linguistics stuff.  I don't know about
> compilers or SVN or anything like that.  I downloaded the files,
> unzipped them and found out there was something called an "IN" file in
> the compiler instructions.  No clue about what that's all about.  Any
> help would be appreciated.


Can someone please send John a working, installable Windows binary?

John,
-- *.in files have nothing at all to do with installation.
-- you'd have to read the readme file to build it yourself, but it seems
that even some programmers have trouble getting it all to work
in windows.
-- I can volunteer to parse 4K sentences, as per other email.

Linas

Rich Cooper

unread,
Oct 15, 2010, 12:12:38 AM10/15/10
to link-g...@googlegroups.com
Hi John,

There is an installable Delphi package on Simon Stuart's web site, as I
remember, and it might have an .exe that runs on 7. I use it with Win Vista
and Win XP using Delphi 7 and he uses Delphi 2010. Since I don't use it
with 7, I don't know if it will work there.

HTH,
-Rich

Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 \ 5 2 5 - 5 7 1 2

-----Original Message-----
From: link-g...@googlegroups.com [mailto:link-g...@googlegroups.com]

Linas

--

Linas Vepstas

unread,
Oct 15, 2010, 12:17:44 AM10/15/10
to link-g...@googlegroups.com
On 14 October 2010 23:12, Rich Cooper <ri...@englishlogickernel.com> wrote:
> Hi John,
>
> There is an installable Delphi package on Simon Stuart's web site, as I
> remember, and it might have an .exe that runs on 7.  I use it with Win Vista
> and Win XP using Delphi 7 and he uses Delphi 2010.  Since I don't use it
> with 7, I don't know if it will work there.

Right

http://www.lakraven.com/delphi-stuff/link-grammar-parser/

--linas

Simon J Stuart

unread,
Oct 15, 2010, 2:08:45 AM10/15/10
to link-g...@googlegroups.com
Just for the record, not only does it work on Windows 7, I built it on
Windows 7 ;)

Yes, the zip package contains everything you need... in particular the DLL.

Regards,
Simon

-----Original Message-----
From: link-g...@googlegroups.com [mailto:link-g...@googlegroups.com]
On Behalf Of Linas Vepstas
Sent: 15 October 2010 05:18
To: link-g...@googlegroups.com
Subject: Re: [Link Grammar] Re: Compilation fail in Windows

Right

http://www.lakraven.com/delphi-stuff/link-grammar-parser/

--linas

--

Rich Cooper

unread,
Oct 15, 2010, 9:24:28 AM10/15/10
to link-g...@googlegroups.com
Thanks for the clarification, Simon.

-Rich

Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com
9 4 9 \ 5 2 5 - 5 7 1 2

John Almasi

unread,
Oct 15, 2010, 9:29:13 AM10/15/10
to link-g...@googlegroups.com
Thanks, everyone!

Best,
John

________________________________________
From: link-g...@googlegroups.com [link-g...@googlegroups.com] On Behalf Of Rich Cooper [ri...@englishlogickernel.com]
Sent: Friday, October 15, 2010 9:24 AM

Reply all
Reply to author
Forward
0 new messages