Tree [r480] /
 History



File Date Author Commit
 include 2006-10-12 cslsublevel3org [r480] Working on image_resize_interpolate, but this r...
 man 2006-09-04 csl [r445] Updated man date
 packages 2006-07-29 csl [r395] Fixed Fink package again
 src 2006-10-12 cslsublevel3org [r480] Working on image_resize_interpolate, but this r...
 tests 2006-10-10 cslsublevel3org [r469] Renamed make test to make check
 win32-dist 2006-09-25 csl [r456] Win32 version.
 AUTHORS 2006-07-29 csl [r406] Updated AUTHORS regarding LICENSES
 BUGS 2006-08-17 csl [r423] Added notes in bugs
 COPYING 2006-06-23 csl [r39] Added more files.
 ChangeLog 2006-10-12 cslsublevel3org [r470] Working on resize-functions
 INSTALL 2006-07-27 csl [r384] Added win32 section in INSTALL.
 LICENSES 2006-07-31 csl [r415] License changed from 'GPL v2 or later' to 'GPL ...
 Makefile.am 2006-10-10 cslsublevel3org [r469] Renamed make test to make check
 NEWS 2006-07-13 csl [r168] +Id keyword
 README 2006-10-10 cslsublevel3org [r469] Renamed make test to make check
 configure.ac 2006-10-12 cslsublevel3org [r470] Working on resize-functions

Read Me


    ABOUT JP2A

    jp2a is a simple JPEG to ASCII viewer.


    COPYRIGHT

    jp2a is Copyright (c) 2006 Christian Stigen Larsen
    Distributed under the GNU General Public License v2.

    You can read the full license in the file COPYING.  jp2a also
    uses other libraries.  These licenses can be found in the file
    LICENSES.

    The latest version is available from http://jp2a.sf.net


    QUICK INSTALL

    ./configure
    make
    make check     # optional
    make install

    If configure doesn't find jpeglib.h and you know where
    it is, you specify with

    ./configure --with-jpeg-include=PATH --with-jpeg-lib=PATH

    If you want to be able to download images from the net, you
    must have libcurl installed (http://curl.haxx.se) and configure
    for example like this:

    ./configure --enable-curl

    This will look for `curl-config' in $PATH, but you can specify
    it directly with --with-curl-config=PATH if you need to.


    PRE-REQUISITES

    jp2a requires jpeglib.  If you don't have it, the source is
    available from http://www.ijg.org/

    If you want to be able to download images from the net, you
    also need libcurl, from http://curl.haxx.se


    BUILDING ON MAC OS X

    jp2a is now part of darwin ports, so the easiest installation is:

    sudo port install jp2a

    If you do not have darwinports installed, go to http://www.opendarwin.org
    and install it from there.

    To build yourself, do this:

    # USING FINK
    fink install libjpeg curl
    ./configure --with-jpeg-prefix=/sw --with-curl-config=/sw/bin

    # USING DARWIN PORTS
    sudo port install jpeg curl
    ./configure --with-jpeg-prefix=/opt/local --with-curl-config=/opt/local/bin


    BUILDING WITHOUT USING CONFIGURE

    You need (at least) jpeglib.h and libjpeg, then you do this:

    gcc -g -O2 \
	-DPACKAGE_BUGREPORT='"csl@sublevel3.org"' \
	-DPACKAGE_STRING='"jp2a 0.9.xx"' \
	-I/opt/local/include/ -L/opt/local/lib -l jpeg jp2a.c -o jp2a


    BUILDING ON WINDOWS (MS VISUAL STUDIO)
    
    Download a reasonable jpeglib version for Windows, e.g. from
    
    http://www.ece.sunysb.edu/~cvl/e358/f2001/jpeg-windows.html

    (Don't use Gnuwin32's version, it completely broke on my system).
    
    Fire up MS Visual Studio, you should select C++ compilation, because
    (at least with my MSVC version) the C compiler gave some strange
    warnings and errors, probably due to the fact that i use some C99
    code.
    
    Since config.h is not generated for MSVC, you need to add some
    preprocessor definitions:
   
    WIN32
    NDEBUG
    _CONSOLE
    PACKAGE_STRING=\"jp2a x.x.x-win32\"
    PACKAGE_BUGREPORT=\"csl@sublevel3.org\"
    HAVE_STRING_H
    HAVE_STDLIB_H
    FEAT_CURL
    HAVE_CURL_CURL_H
    CURL_STATICLIB
    FEAT_TERMLIB
    
    Add the jpeg.lib file provided by above URL in the search directory
    and in the linker input, and then everything should compile without
    any errors.  If you want CURL support, you can find a good win32
    version for development from

    http://my.guardpuppy.com/libcurl-7.15.1-msvc-win32-ssl-0.9.8a-zlib-1.2.3.zip

    (that is, go to http://curl.haxx.se, select DOWNLOAD and look for the
    MSVC SSL libcurl versions.)


    BUILDING ON WINDOWS (MINGW32)

    Using mingw32 is straight-forward if you have a working (non-MSVC)
    jpeglib.  On Mac OS X, you do something along these lines to
    cross-compile:

    ./configure --host=i386-mingw32
    make check

    I currently use MS Visual C++ to compile the Win32 binaries for jp2a,
    but I am going to swith to using mingw32.
    

$Id: README 469 2006-10-10 09:30:21Z cslsublevel3org $