[Nestedvm] Can't find stdint.h

Jay Anderson horndude77 at gmail.com
Fri Nov 6 00:39:30 EST 2009


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: 

--- a/upstream/Makefile
+++ b/upstream/Makefile
@@ -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" \

-----Jay




More information about the Nestedvm mailing list