AnantLabs / link-parser

Automatically exported from code.google.com/p/link-parser
0 stars 0 forks source link

Compiling Errors in Visual Studio Fails #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. open <link-grammar home>\msvc9\LinkGrammar.sln" in MS visual studio 2008.
2. try to build the solution.

What is the expected output? What do you see instead?
expected: solution is built without errors
instead:

1>------ Build started: Project: LinkGrammar, Configuration: Debug Win32 ------
2>------ Build started: Project: LinkGrammarJava, Configuration: Debug
Win32 ------
2>LinkGrammarJava : warning PRJ0009 : Build log could not be opened for
writing.
2>Make sure that the file is not open by another process and is not
write-protected.
2>Compiling...
1>Compiling...
2>cl : Command line warning D9035 : option 'Wp64' has been deprecated and
will be removed in a future release
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and
will be removed in a future release
2>jni-client.c
1>analyze-linkage.c
2>c:\users\aryes\documents\visual studio
2008\projects\link-grammar\link-grammar\jni-client.c(8) : fatal error
C1083: Cannot open include file: 'jni.h': No such file or directory
2>Build log was saved at "file://c:\Users\aryes\Documents\Visual Studio
2008\Projects\link-grammar\msvc9\Debug\BuildLog.htm"
2>LinkGrammarJava - 1 error(s), 2 warning(s)
1>and.c
1>api.c
1>build-disjuncts.c
1>command-line.c
1>constituents.c
1>count.c
1>error.c
1>extract-links.c
1>fast-match.c
1>idiom.c
1>link-parser.c
1>malloc-dbg.c
1>c1 : fatal error C1083: Cannot open source file:
'..\link-grammar\malloc-dbg.c': No such file or directory
1>massage.c
1>post-process.c
1>pp_knowledge.c
1>pp_lexer.c
1>pp_linkset.c
1>prefix.c
1>preparation.c
1>Generating Code...
1>Compiling...
1>print-util.c
1>print.c
1>prune.c
1>read-dict.c
1>resources.c
1>string-set.c
1>tokenize.c
1>utilities.c
1>word-file.c
1>word-utils.c
1>Generating Code...
1>Build log was saved at "file://c:\Users\aryes\Documents\Visual Studio
2008\Projects\link-grammar\msvc9\Debug\BuildLog.htm"
1>LinkGrammar - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

What version of the product are you using? On what operating system?
operating system: windows vista 64bit
product version: 4.5.4

Please provide any additional information below.

Original issue reported on code.google.com by ary...@yahoo.com on 11 May 2009 at 1:32

GoogleCodeExporter commented 9 years ago
Sorry, building on windows is not really supported, because of 
missing/unsupported
features in windows.  The reference to the jni.h is for the java native 
interfaces;
building java is optional, and you should turn that off if it is not needed.  
If you
do need it, then of course you should install Java ... 

If you still have problems, you will need to consult with a professional windows
programmer to determine how to fix these issues. Patches to the source are 
accepted;
submit these on the mailing list.  However, cannot accept bug reports ... 
theres' no
infrastructure for windows; it is a difficult/crippled platform.

Original comment by linasvep...@gmail.com on 11 May 2009 at 4:41

GoogleCodeExporter commented 9 years ago
The malloc-dbg.c file appears in the Visual Studio project file but is no 
longer used and there is no such file (hence the error).  Just delete that file 
name from the list in Visual Studio.  This worked for me April 2011 using 
Visual Studio 2010 on a 32 bit Vista Windows with the 4.7.4 version of Link 
Grammar.
Regards.

Original comment by bhaye...@gmail.com on 8 Apr 2011 at 4:42

GoogleCodeExporter commented 9 years ago
Hmm. Read the error message more carefully, it appears that the malloc-dbg is 
the only problem !? I've removed this by hand,  checked in fix to svn.

Original comment by linasvep...@gmail.com on 10 Apr 2011 at 11:46