Upgrade libjpeg to version 7.
authorJay Anderson <horndude77@gmail.com>
Sat, 7 Nov 2009 19:37:15 +0000 (11:37 -0800)
committerAdam Megacz <adam@megacz.com>
Sat, 7 Nov 2009 19:37:15 +0000 (11:37 -0800)
As I was starting to attempt to compile leptonica and I ran into gcc not being
able to find stdint.h. I noticed that the busybox patch included took all
stdint.h includes out and re-added all the typedefs that were needed. I'm
wondering why this is the case. Why with the default installation can't we
include stdint.h (among other headers it seems)?

In any case I got parts of it to compile :). Now I need to compile some of the
external dependencies (libtiff, libpng, libnetpbm, etc.). I started compiling
libjpeg (in the upstream directory) and it looks like there is a newer version:
http://www.ijg.org/files/jpegsrc.v7.tar.gz which unfortunately fails to compile.
Here's a start at fixing it:

upstream/Makefile

index 9a5c210..babf385 100644 (file)
@@ -312,7 +312,7 @@ tasks/build_linker: tasks/build_binutils $(root)/src/org/ibex/nestedvm/linker.ld
 
 ## libjpeg ##############################################################################
 
-version_libjpeg = 6b
+version_libjpeg = 7
 url_libjpeg = http://www.ijg.org/files/jpegsrc.v$(version_libjpeg).tar.gz
 
 tasks/extract_libjpeg: tasks/download_libjpeg
@@ -326,7 +326,7 @@ tasks/extract_libjpeg: tasks/download_libjpeg
 
 tasks/build_libjpeg: tasks/patch_libjpeg tasks/build_libc
        cd build/libjpeg-$(version_libjpeg) && \
-               ./configure && \
+               ./configure --host=mips && \
                make CC="mips-unknown-elf-gcc" \
                        AR="mips-unknown-elf-ar rc" \
                        AR2="mips-unknown-elf-ranlib" \