Replies: 3 comments 2 replies
-
It is Note that you don't need
In the |
Beta Was this translation helpful? Give feedback.
-
Making progress... Not there yet, but I'll document some things for the README. The cygwin setup-x86_64.exe file skips binutils for some reason, even when initially installing all. I went back in and changed the "View" dropdown to Full. I found binutils and it was set to Skip in the New column. I selected the latest, clicked the Next button at the bottom right and was able to install it. 'cygcheck dlltool' in the console then showed it. When installing Tre for Windows as linked from the docs, it wants to install at C:\Program Files (x86)\GnuWin The spaces, of course, will cause problems. I changed that to C:\GnuWin. When executing dlltool, since Windows uses the backslash for directory delimiting, and that is an escape character in Linux, the paths in the argument have to be delimited with '\\'. The following successfully created regex.lib (note tre.def is tre4.def): dlltool -l regex.lib -d C:\\GnuWin32\\lib\\tre4.def -D regex.dll C:\\GnuWin32\\bin\\tre4.dll I moved that to the Tre folder that has regex,h. My environment variable is in System Variables (In Windows System Properties): GNUREGEX_DIR: C:\GnuWin32. I am thinking this is a Visual Studio environment variable? I have not had to work with these before. Guidance is appreciated. |
Beta Was this translation helpful? Give feedback.
-
OK, some interesting developments... First, no matter what I did with the EVs for $(GNUREGEX_DIR) it was being forced to C;\Users[myname]\Libraries, which did not exist. No matter what I tried to do in Windows 10 EVs, I could not repoint this. To verify, I would right click the LinkGrammar project and select Properties. In the Property Pages I'd select C/C++/General. At the top is Additional Include Directories. Selecting the dropdpwn and then Edit... shows the Additional Include Directories. There is a Macros>> button, Clicking it expands the dialog and you can scroll down to the GNUREGEX_DIR. It seems to always remain HOMEDRIVE+HOMEPATH, and those do not seem settable either. So I created a Libraries/gnuregex folder and moved my GnuWin32 folder contents under it. VS wants to look in the /include folder for tre/regex.h so I made sure it was there. ThenI got an error looking for tre-config.h. It wanted it in ../link-grammar/dict-common, so I copied it there. I was able to build successfully, albeit with a bunch of warnings. What I want to do now is create a C# project that will call into this DLL. Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
I am getting the following trying to build the MSVC link grammar project, on which the others depend:
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'regex.h': No such file or directory LinkGrammar C:...\link-grammar-5.9.1\link-grammar\dict-common\regex-morph.c 27
I see in the docs that I need to create the regex library/dll. I do not see a dlltool app in CYGWIN, and the paths/files in the instructions for VS 2019 don't quite match the GnuWin32 install.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions