[jbig2-dev] compile

Ralph Giles ralph.giles@artifex.com
Sun, 30 Mar 2003 13:03:45 +0100


On Tuesday, March 25, 2003, at 09:46 pm, <dimleter@land.ru> wrote:

> I want to compile jbig2dec in window2k,
> program after compiling and start shows error,
> i think it because of my libpng contained error.



> Where i can find correct libpng or FULL source
> code of jbig2dec.

The libpng source is available from the sites listed at 
http://libpng.org/pub/png/libpng.html You also need the zlib source, 
available through http://www.gzip.org/zlib/

msvc.mak expects that these libraries will be build separately 
beforehand and available in directories named 'libpng' and 'zlib' on 
the same level at the jbig2dec source ('../libpng/libpng.lib 
../zlib/zlib.lib') You'll need to either put them in those locations or 
change the path in the makefile.

Finally, libpng isn't required, just #undef HAVE_LIBPNG in 
config_win32.h; in that case the jbig2dec executable will produce PBM 
files only. There's also some version skew with current CVS, so it may 
not build on windows. The 0.1 release should work.

Hope that helps,
  -r