Skip to content
Browse files

[HVM-489] build kvm-cmd with png support for VNC.

  • Loading branch information...
1 parent 2fc56bd commit 6cfe9254bc760ee5b8edcc35b6f767f00aabcb6f @joshwilsdon joshwilsdon committed Aug 2, 2011
Showing with 26 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +25 −1 build.sh
View
1 .gitignore
@@ -64,3 +64,4 @@ roms/seabios/Makefile
roms/vgabios/Makefile
.stgit-*
cscope.*
+libpng-1.5.4/
View
26 build.sh
@@ -7,8 +7,32 @@ for dir in seabios vgabios kvm/test; do
cp roms/${dir}/config.mak.tmpl roms/${dir}/config.mak
done
+PNGDIR="${PWD}/libpng-1.5.4"
+PNGINC="${PNGDIR}/proto/usr/local/include"
+PNGLIB="${PNGDIR}/proto/usr/local/lib"
+
+if [[ ! -d ${PNGDIR} ]]; then
+ (curl ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.4.tar.gz | \
+ tar -zxf -)
+ if [[ $? != "0" || ! -d ${PNGDIR} ]]; then
+ echo "Failed to get libpng."
+ rm -rf ${PNGDIR}
+ exit 1
+ fi
+fi
+
+if [[ ! -e ${PNGLIB}/libpng.a ]]; then
+ (cd ${PNGDIR} && \
+ LDFLAGS=-m64 CFLAGS=-m64 ./configure --disable-shared && \
+ make && \
+ mkdir -p ${PNGDIR}/proto && \
+ make DESTDIR=${PNGDIR}/proto install)
+fi
+
echo "==> Running configure"
./configure \
+ --extra-cflags="-I${PNGDIR}/proto/usr/local/include" \
+ --extra-ldflags="-L${PNGDIR}/proto/usr/local/lib -lz -lm" \
--prefix=/smartdc \
--audio-card-list= \
--audio-drv-list= \
@@ -18,9 +42,9 @@ echo "==> Running configure"
--enable-debug \
--enable-kvm \
--enable-kvm-pit \
+ --enable-vnc-png \
--disable-kvm-device-assignment \
--disable-sdl \
- --disable-vnc-png \
--disable-vnc-jpeg \
--disable-vnc-sasl \
--disable-vnc-tls \

0 comments on commit 6cfe925

Please sign in to comment.
Something went wrong with that request. Please try again.