Hey, Boris Iordanov :)

17 views
Skip to first unread message

JRowe

unread,
Feb 24, 2010, 1:44:02 AM2/24/10
to link-grammar
I was wondering if you could update your ilnk-grammar windows dll on
the kobrix site, or maybe walk me through how to compile on Windows?
That would be a real help.

I've tried to put together the compile process and have failed
miserably several times... the information is too disjointed for me to
make real sense out of it. I keep ending up getting lost around the
inclusion of the regex stuff.

I really appreciate what you've done, it's awesome to be able to use
the dll on Windows.

Thank you very much!

JRowe

unread,
Feb 24, 2010, 9:19:20 AM2/24/10
to link-grammar
After a marathon session last night, I've gotten ./config to work
correctly, but I'm running into errors with error: implicit
declaration of function `strdup' and so on down the line after doing
make.

The instructions for building to that point are:
install mingW and MSYS according to the default options. Download the
gnuwin32 regex file, then copy the contents of the 'lib' folder over
to the "c:/mingw/lib" folder , the regex2.dll to the "c:/mingw/bin"
folder, then doing ./config from MSYS in the folder with the config
file for linkgrammar. I now get the "strdup" warnings and error.

Any help will be greatly appreciated! :)

JRowe

unread,
Feb 24, 2010, 9:41:02 AM2/24/10
to link-grammar
Heh,:s I read more closely and downloaded from
https://svn.kobrix.com/disco/trunk/native/windows/ directly, rather
than the link to the zipped files listed on the kobrix page. This
appears to be the latest release. So thanks again, however I'm still
interested in learning how to compile for myself. And that's enough
spam from me, today.
Big kudos to Boris!
:)

Borislav Iordanov

unread,
Feb 24, 2010, 11:53:35 AM2/24/10
to link-g...@googlegroups.com
Hi,

I haven't tried MSYS in a long while, but if a function is missing,
you basically need to track it down and find a replacement. Another
person on this list, Kobby? I think, went through the whole hassle a
couple of months ago, promised to write down the instruction and/or
send patches for some more windows ifdefs, but never did it I think.
If you do track down all missing dependencies, it would help other
people in the future and I'm sure Linas will happily add the necessary
patches. The next time I need to recompile the latest code, I promise
to do the same :) (I did that originally, but then new dependencies
were introduced)

Best,
Boris

> --
> 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.
>
>

Rich Cooper

unread,
Feb 24, 2010, 12:25:40 PM2/24/10
to link-g...@googlegroups.com

Hi JRowe,

 

I am also Windows-bound, and would also like to use the LGP.  I just tried that web page, and got the following list of files:

 

amd64/

libdb47.dll

libdb_java47.dll

link-grammar-java.dll

link-grammar.dll

link-parser.exe

pthreadVC2.dll

 

When I run link-parser.exe, I get the error message

 

  "This application has failed to start because liblink-grammar-4.dll was

   not found.  Re-installing the application may fix this problem."

 

And then Vista kills the .exe immediately.  

 

Is there a URL with info on how to run the link parser in windows from that set of files?

 

Thanks,

-Rich

 

 

Sincerely,

Rich Cooper

EnglishLogicKernel.com

Rich AT EnglishLogicKernel DOT com

--

Borislav Iordanov

unread,
Feb 24, 2010, 12:34:17 PM2/24/10
to link-g...@googlegroups.com
Hey,

You only need link-grammar*.dll and pthreadVC2.dll from that folder.

Link grammar itself was compiled with VC++ 2008. To run it you need to
have either that development environment installed or install the VC++
2008 redistribution package from:

* 32 bit - Microsoft Visual C++ 2008 SP1 Redistributable Package
(x86) - http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en
* 64 bit - Microsoft Visual C++ 2008 SP1 Redistributable Package
(x64) - http://www.microsoft.com/downloads/details.aspx?familyid=BA9257CA-337F-4B40-8C14-157CFDFFEE4E&displaylang=en

Boris

--
http://www.kobrix.com - HGDB graph database, Java Scripting IDE, NLP
http://kobrix.blogspot.com - news and rants

"Frozen brains tell no tales."

-- Buckethead

Rich Cooper

unread,
Feb 24, 2010, 12:58:04 PM2/24/10
to link-g...@googlegroups.com
Ouch - its not a stand alone dll then? I don’t use VC++ preferring Borland
Delphi. Is there a way to run it without VC++? After all, it’s a dll so it
should be part of the target environment, which wouldn't include any
compilers or run time support.

Borislav Iordanov

unread,
Feb 24, 2010, 1:10:58 PM2/24/10
to link-g...@googlegroups.com
Well, it doesn't really need VC++, just the runtime libraries, which
are installed with the redistributable package. I'm not really an
expert on the Windows environments (well, not anymore :), but I
believe the need to install those runtimes comes with the benefit that
you can have several different versions of them on the same machine
without the need to reinstall the OS (unlike linux where you are bound
to a single version of the C runtime that the whole system depends
on).

If you build with cygwin, you will need its runtime. But I believe
msys is able to bundle its runtime within the DLL, so you could try
building with that.

Cheers,
Boris

On Wed, Feb 24, 2010 at 12:58 PM, Rich Cooper

JRowe

unread,
Feb 24, 2010, 3:11:31 PM2/24/10
to link-grammar
If you could post your latest working build, that would be awesome.
I'm much happier traversing the VC++ landscape than I am MSYS, and I'd
love to have any sort of jump on dependencies. Or is it available on
your svn?

Borislav Iordanov

unread,
Feb 25, 2010, 1:22:33 PM2/25/10
to link-g...@googlegroups.com
What do you want me to post? The VC++ project directory that builds
the DLLs from the svn server?

JRowe

unread,
Mar 13, 2010, 2:05:33 PM3/13/10
to link-grammar
That sounds great, or maybe just a step by step verbal walkthrough, if
you have some time. Thank you!
Reply all
Reply to author
Forward
0 new messages