compile libnxsl files

Started by worud, January 18, 2010, 04:48:45 AM

Previous topic - Next topic

worud

Hi Victor,
I'm here again. There art further progress in compiling sources.
But I have another obstacle to overcome.
When I try to compile libnsxl, I've got errors like follows. I installed bison V2.4.1.
Can you guess what are problems?

--------------------Configuration: libnxsl - Win32 Release--------------------
Compiling .\parser.y
m4: cannot open `Files\GnuWin32/share/bison': No such file or directory
m4: cannot open `C:\Program': No such file or directory
m4: cannot open `Files\GnuWin32/share/bison/m4sugar/m4sugar.m4': No such file or directory

Regards,

Joseph

Victor Kirhenshtein

Hello!

Looks like double quotes are missing somewhere, and because bison is installed into C:\Program Files\... it breaks on a space in a path. Try to install GnuWin32 tools into directory without spaces in the path.

Best regards,
Victor

worud

Hello,

I moved GnuWin32 directory to root and looks working fine.
But it still has some dregs.  ;)
I downloaded flex version 2.5.4 to compile parser.l file and tried but failed.
I got a message like follows. I think it is  related with version of flex.
What version of flex do you using?

--------------------Configuration: libnxsl - Win32 Release--------------------
Compiling .\parser.l
flex: unknown flag '-'.  For usage, try
flex --help
Error executing c:\windows\system32\cmd.exe.

lex.yy.cpp - 1 error(s), 0 warning(s)
----------------------------------------------------------------------------

Because of the above message, I removed one '-' from "-nounistd" flag. I think it was passed but I had another messages like follows.

--------------------Configuration: libnxsl - Win32 Release--------------------
Compiling .\parser.l
flex: -o flag must be given separately
Error executing c:\windows\system32\cmd.exe.

lex.yy.cpp - 1 error(s), 0 warning(s)
----------------------------------------------------------------------------

So I gave a space at '-o' flag like '-o lex.yy.cpp'. But still has problem.

--------------------Configuration: libnxsl - Win32 Release--------------------
Compiling .\parser.l
flex: can't open lex.yy.cpp
Error executing c:\windows\system32\cmd.exe.

lex.yy.cpp - 1 error(s), 0 warning(s)
---------------------------------------------------------------------------

Best Regards,

Joseph

Victor Kirhenshtein

Hi!

You need flex version 2.5.33 or above.Looks like GnuWin32 still uses 2.5.4. I personally use flex and bison (and other tools like grep, etc.) from MSYS (http://www.mingw.org/).

Best regards,
Victor

worud

Hi Victor,

I installed msys again and tried it. It was successful.

Thank you.

Regards,

Joseph