Overview
Artifact ID: | 313ff0e68c3502f5d2f9b5cbaad14f017997df21 |
---|---|
Ticket: | a39f4ac2fa55a646c1eee2a6667564eb8a9f9e05
could not build zlib in mingw |
User & Date: | anonymous on 2015-01-30 05:44:44 |
Changes
- comment changed to:
configure script of zlib 1.2.8 fails and says "Please use win32/Makefile.gcc instead." when $(uname -s) matches with MINGW* or mingw* by case statement of /bin/sh.<br /><br />And default Makefile which will be used in this case also says same warnng, but make does not return error. So kitcreator script guesses wrong.<br /><br />For example, I succeeded to build zlib by following.<br />(awk line resolves another problem. Because Makefile.gcc resets CC and RC by self.)<br /><br /> case $(uname -s 2> /dev/null) in<br /> MINGW* | mingw*)<br /> # use win32/Makefile.gcc instead.<br /> echo "Running: awk '{if($1~/^[RC]C$/&&$2~/^=/)$2="?"$2;print}' win32/Makefile.gcc > Makefile"<br /> awk '{if($1~/^[RC]C$/&&$2~/^=/)$2="?"$2;print}' win32/Makefile.gcc > Makefile<br /><br /> echo "Running: ${MAKE:-make}"<br /> ${MAKE:-make} || exit 1<br /><br /> echo "Running: BINARY_PATH=${INSTDIR}/bin INCLUDE_PATH=${INSTDIR}/include LIBRARY_PATH=${INSTDIR}/lib ${MAKE:-make} install"<br /> BINARY_PATH=${INSTDIR}/bin INCLUDE_PATH=${INSTDIR}/include LIBRARY_PATH=${INSTDIR}/lib ${MAKE:-make} install<br /> ;;<br /> *)<br /> # If we are building for KitDLL, compile with '-fPIC'<br /> if [ "${KITTARGET}" = "kitdll" ]; then<br /> CFLAGS="${CFLAGS} -fPIC"<br /> export CFLAGS<br /> fi<br /><br /> # We don't pass CONFIGUREEXTRA here, since this isn't a GNU autoconf<br /> # script and will puke<br /> echo "Running: ./configure --prefix=\"${INSTDIR}\" --libdir=\"${INSTDIR}/lib\" --static"<br /> ./configure --prefix="${INSTDIR}" --libdir="${INSTDIR}/lib" --static<br /><br /> echo "Running: ${MAKE:-make}"<br /> ${MAKE:-make} || exit 1<br /><br /> echo "Running: ${MAKE:-make} install"<br /> ${MAKE:-make} install<br /> ;;<br /> esac
- foundin changed to: "0.9.2"
- login: "anonymous"
- severity changed to: "Critical"
- status changed to: "Open"
- title changed to: "could not build zlib in mingw"
- type changed to: "Build Problem"