can i make it?

thz animation christianity thoughts idiot

Building zlib, libpng with mingw

I wanted to use libpng library from C++. It depends on zlib.

Building zlib


  1. Unzip the zlib file and edit win32/makefile.gcc
  2. Add following lines at the head of the file
    BINARY_PATH=${HOME}/Local/zlib-1.2.5/bin
    INCLUDE_PATH=${HOME}/Local/zlib-1.2.5/include
    LIBRARY_PATH=${HOME}/Local/zlib-1.2.5/lib
    

    Wrapping the HOME variables with curl bracket is important in
    makefile. Without it, the actual installation path would be
    ./${H}OME/Local/..., and if ${H} is undefined, it’s just
    ./OME/Local/…, which is not what I want.
    To build a shared library, change the SHARED_MODE to 1, as is written
    in the makefile.
  3. Then build by ‘make –f win32/makefile.gcc’
  4. Test by ‘make –f win32/makefile.gcc test’
  5. Install by ‘make –f win32/makefile.gcc test’

Building libpng


It looks like pngwriter does not compile with the latest 1.5.x version
of libpng. Instead, using older 1.4.x is ok.
Download(ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.4.8.tar.bz2
)
  1. Untar and configure like this
    export LDFLAGS="-L/home/est/Local/zlib-1.2.5/lib"
    export CPPFLAGS="-I/home/est/Local/zlib-1.2.5/include"
    export CXXFLAGS="-I/home/est/Local/zlib-1.2.5/include"
    ./configure --prefix=/home/est/Local/libpng-1.5.4
    make
    make install
    

Building freetype


Freetype2 has no external library dependence.
  1. ./configure --prefix=/home/est/Local/freetype-2.4.6
  2. make && make install

Pass a string of C++ to fortran (in a possibly obsolete way) and let it fill out 1d arrays from a text filelftp-4.3.1 binary for windows with ssl-allow option set to 'no' by default

Write a comment

New comments have been disabled for this post.

June 2013
S M T W T F S
May 2013July 2013
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29