Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Development
  3. compile libnxsl files

compile libnxsl files

Scheduled Pinned Locked Moved Development
windows
5 Posts 2 Posters 51.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W
    W
    worud
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • W
        W
        worud
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • W
            W
            worud
            wrote on last edited by
            #5

            Hi Victor,

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

            Thank you.

            Regards,

            Joseph

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups