Link-Grammar Parser wrapper for Delphi/Pascal on SVN

85 views
Skip to first unread message

Simon J Stuart

unread,
Nov 13, 2010, 1:31:38 PM11/13/10
to link-g...@googlegroups.com

Hi everyone,

Just a quick update to let you all know (for those interested) that my Link-Grammar Parser Wrapper for Delphi is now available on my SVN server:

 

http://svn.lakraven.com:81/svn/OpenSource/LGP/

 

For those unfamiliar with what SVN is, it’s a Subversion system which, put simply, allows you to ensure that you always have the latest version of something (in this case, source code).

 

The two prerequisite DLLs are included in the SVN distribution (precompiled, of course) which means that integration is as simple as firing up Delphi, including the LGPWrapper unit in your USES section, and you’re done... full access to the entire LGP API!

 

The only potential additional step you may encounter is the need to install the Microsoft Visual C++ 2008 Redistributable Package as the LGP DLL was built using MSVC++ 2008. You can, of course, always obtain the Link-Grammar sources yourself, build your own version of the DLL in whatever supported compiler you prefer (MinGW/MSYS, CYGWIN etc.) and use that with my wrapper as you wish.

 

I’m going to be testing my Delphi LGP Wrapper on FreePascal/Lazarus soon, and will let you all know if it works (given that FreePascal and Lazarus are both 100% free to download and use)

 

Anyway, just thought I’d let you all know.

 

Regards,

Simon J Stuart

A.K.A. LaKraven

Josh Rowe

unread,
Nov 14, 2010, 12:33:05 AM11/14/10
to link-g...@googlegroups.com
Username and password protected; Thanks for keeping up a current version for Windows!

--
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,
Nov 14, 2010, 8:06:32 AM11/14/10
to link-g...@googlegroups.com

Whoops... I forgot to mention....

 

The username and password are both “anon” without the quotes (of course).

 

Enjoy J

JRowe

unread,
Nov 15, 2010, 8:57:58 PM11/15/10
to link-grammar
Awesome! I really appreciate the work you've put into this. I am
getting a weird event, though -
linkgrammar_get_version returns the following string:
link-grammar-
@LINK_MAJOR_VERSION@.@LINK_MINOR_VERSION@.@LINK_MICRO_VERSION@

Linas Vepstas

unread,
Nov 15, 2010, 9:30:58 PM11/15/10
to link-g...@googlegroups.com

The automake/autoconf tools will take config.h.in, insert the correct
version numbers here, and create config.h What you are seeing is
the result of someone manually bypassing this process. Not really
Simon's fault; its just that its impossible to automate builds on
Windows.

--linas

Josh Rowe

unread,
Nov 15, 2010, 9:34:08 PM11/15/10
to link-g...@googlegroups.com
I figured it would be something like that. Thanks for the clarification!

Simon J Stuart

unread,
Nov 16, 2010, 3:15:59 AM11/16/10
to link-g...@googlegroups.com
Indeed I made no attempt to modify the original source prior to compilation,
so I guess it's one of those "Linux to Windows" niggles yet to be resolved.
I suppose I could populate that information manually....

Keep in mind that whilst I have absolute confidence the DLL will work as
predicted, I haven't had occasion to test every single method myself... that
said, Rich Cooper has used far more of the wrapper (and thus, the API) than
I have, and has yet to report any failings so I can only assume he hasn't
found any yet.

Linas,
Is there some additional process we should use under Windows to populate the
version string, or does this merit more research on my part to find a
Windows solution to achieve the Linux result?

Regards,
Simon

-----Original Message-----
From: link-g...@googlegroups.com [mailto:link-g...@googlegroups.com]
On Behalf Of Linas Vepstas
Sent: 16 November 2010 02:31
To: link-g...@googlegroups.com
Subject: Re: [Link Grammar] Re: Link-Grammar Parser wrapper for
Delphi/Pascal on SVN

--linas

--

Linas Vepstas

unread,
Nov 17, 2010, 12:28:38 AM11/17/10
to link-g...@googlegroups.com
On 16 November 2010 02:15, Simon J Stuart <kra...@greycascade.com> wrote:

> Linas,
> Is there some additional process we should use under Windows to populate the
> version string, or does this merit more research on my part to find a
> Windows solution to achieve the Linux result?

Err, now that I look -- it seems you pulled from svn. please do not do that!

If you use the tarball distribution, then you automatically get a copy of all
of the correct files, which have been tested & etc and are known to work.
This includes a copy of link-features.h which contains the correct version
numbers!!

If you pull from svn, then .. well, you might get anything. If I happen to have
broken something that day, or whatever, you'll get crap. The whole point of
releases is to have known-working versions. svn contains code that is
under-construction and may or may not work.

As to windows builds ... I really dunno ... I've always found it hard-to-use,
and required a lot of manual intervention and hard labor.

--linas

Reply all
Reply to author
Forward
0 new messages