Menu

Compiling

Help
2006-05-23
2012-07-26
  • Nobody/Anonymous

    Hi *,

    After discovering that the UnxUtils project seems to be dead I found GnuWin32. UnxUtils is working ok but I couldn't get the sources to compile and there's no support.

    I looked at:
    http://gnuwin32.sourceforge.net/compile.html
    and setup MSYS+MinGW but I couldn't get -any- package to compile. I tried hello-2.1.1-1-src.zip and I expected it couldn't get any simpler than that. But it didn't work...

    I did:

    ~/gnuwin32/src/hello-2.1.1$ make -f makefile.mingw

    as suggested on the compile page, and got:

    sed: file Makefile0.sed line 1: Unknown option to 's'

    At first I got a missing pwd.sh error (why?) but I fixed that. What's wrong with the sed options?

    Running ./configure and make (shouldn't be necessary according to compile page) resulted in compile errors:
    localename.c: In function _nl_locale_name': localename.c:630: error:LANG_SORBIAN' undeclared (first use in this function)

    Other GnuWin32 packages (grep, libraries, etc) -all- resulted in other errors.

    What am I missing? Could it be my MSYS/MinGW setup? Do I need a specific version? What about the "double" source directories and the manifest directories?

    Any suggestions to get a single package to compile would be helpful, hopefully that will show me how to get the other packages to compile as well.

    Kind regards,
    Joost Leeuwesteijn

     
    • GnuWin

      GnuWin - 2006-05-23

      You must also install LibGw32C, and follow the instructions on http://gnuwin32.sourceforge.net/packages/libgw32c.htm
      It is all very complicated, and the whole design needs to be renewed, but this will take time.

       
      • Nobody/Anonymous

        Thanks for the fast reply!

        I didn't expect that the *-source.zip files needed modification etc before compiling ;-)

        So how were the .exe's compiled then? Is there a description of that procudure, for each package perhaps? I would think (some) people do this on a daily basis and write a short HOWTO on the way.
        I don't think I can figure it out myself, just from the compile.html web page.

        My MSYS/MinGW environment seems to be OK.

        --
        Joost Leeuwesteijn

         
        • GnuWin

          GnuWin - 2006-05-24

          You don't need to change the sources, "just" installing the additional package Libgw32c. You can either do this, or download the original source and try to build this (./configure & make).

           
    • Keith Marshall

      Keith Marshall - 2006-05-24

      Have a look at:
      http://www.mingw.org/MinGWiki/index.php

      Note, in particular, the "GettingStarted" and "FAQ" references. That should guide you to a working MinGW/MSYS setup. Once you've got that working correctly, then you can think about progressing to compiling GnuWin32 packages, without worrying about whether or not your MinGW/MSYS setup is working correctly.

      Also consider subscribing to either of:
      https://lists.sourceforge.net/mailman/listinfo/mingw-users
      https://lists.sourceforge.net/mailman/listinfo/mingw-msys

      where you will find a community of MinGW users and developers, all willing to offer guidance. There are also a number of MinGW related fora, but you will find that you get a better response to questions asked on the mailing lists.

      HTH,
      Keith.

       
    • Ale Vesely

      Ale Vesely - 2006-06-10

      Hi all,
      I couldn't compile either. I downloaded Libgw32c
      but nowhere I found a file named pwd.sh...

      Also, there is no documentation of the directory
      layout, src/<name>/<version>/<name>-<version>
      that looks common to both coreutils and libgw32c.

      May I ask why not use Autoconf?

       
MongoDB Logo MongoDB