from PhysioNet, the research resource for complex physiologic signals


W3C libwww libraries for Cygwin under MS-Windows

Installing libwww

  1. Install Cygwin, including the gcc and make packages, if you have not already done so.

  2. Download the W3C libwww libraries, as sources or precompiled binaries, and save them in your Cygwin home directory (normally this will be c:\cygwin\home\your-Windows-login-name).

    Perform the remainder of the installation from within a Cygwin terminal window.

  3. If you downloaded the sources: Unpack, compile, and install them using these commands:

    tar xfvz w3c-libwww-5.4.0.tar.gz cd w3c-libwww-5.4.0 ./configure --with-zlib make make install

    The sources are no longer needed once the installation is complete; you may delete them if you wish by:

            rm -rf w3c-libwww-5.4.0 w3c-libwww-5.4.0.tar.gz
    

    If you downloaded the binaries: Unpack and install them using these commands:

            cd /
    	tar xfvj ~/w3c-libwww-5.4.0-cygwin.tar.bz2
    

    The archive file is no longer needed once the installation is complete; you may delete it if you wish by:

            rm w3c-libwww-5.4.0-cygwin.tar.bz2
    

Using libwww

Whether you chose the sources or the binaries, the libraries themselves will have been installed in /usr/local/lib, the corresponding set of *.h files in /usr/local/include/w3c-libwww/, and the libwww-config utility in /usr/local/bin.

To compile a C source file that references these libraries (without performing the final linking step), you may use libwww-config to generate an appropriate set of gcc options:

        gcc -c `libwww-config --cflags` foo.c

This command produces foo.o (not foo.obj).

To link one or more *.o files with the libwww libraries into an executable (*.exe) file, use a command such as:

        gcc -o foo foo.o bar.o baz.o \
         `libwww-config --libs` \
         `libwww-config --libs` \
         `libwww-config --libs`

This command creates foo.exe (not just foo). Note that three invocations of libwww-config, as shown, may be needed in order to resolve all dependencies.

Other platforms

Sets of libwww binaries are available for all popular platforms; links are available here.

Send feedback about this page to PhysioNet

Your comments and suggestions are welcome. We encourage you to use our feedback form to comment on this page. If you would like to receive a reply, please send your comments by email to webmaster@physionet.org.

Updated Wednesday, 15 July 2015 at 13:17 EDT

NIBIB/NIH/NIGMS National Institute for Biomedical Imaging and Bioengineering National Institutes of Health National Institute of General Medical Sciences