some patches for _ctypes compilation. Still it doesn't works.

This commit is contained in:
ivpusic 2013-08-23 14:16:31 +02:00
parent aedcd4e9eb
commit 43b613d9fa
4 changed files with 18 additions and 12 deletions

View file

@ -0,0 +1,2 @@
# Ctypes
_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c -I$(srcdir)/../../build/include/ffi

View file

@ -2,6 +2,7 @@
. $(dirname $0)/environment.sh . $(dirname $0)/environment.sh
try $(dirname $0)/build-libffi.sh
try $(dirname $0)/build-python.sh try $(dirname $0)/build-python.sh
try $(dirname $0)/reduce-python.sh try $(dirname $0)/reduce-python.sh
try $(dirname $0)/build-ios.sh try $(dirname $0)/build-ios.sh
@ -12,6 +13,7 @@ try $(dirname $0)/build-sdlmixer.sh
try $(dirname $0)/build-libjpeg.sh try $(dirname $0)/build-libjpeg.sh
try $(dirname $0)/build-pil.sh try $(dirname $0)/build-pil.sh
try $(dirname $0)/build-kivy.sh try $(dirname $0)/build-kivy.sh
try $(dirname $0)/build-pyobjus.sh
echo '== Build done' echo '== Build done'
echo "Available libraries in $BUILDROOT/lib" echo "Available libraries in $BUILDROOT/lib"

View file

@ -3,16 +3,16 @@
. $(dirname $0)/environment.sh . $(dirname $0)/environment.sh
if [ ! -f $CACHEROOT/libffi-$FFI_VERSION.tar.gz ]; then if [ ! -f $CACHEROOT/libffi-$FFI_VERSION.tar.gz ]; then
try curl -L ftp://sourceware.org/pub/libffi/libffi-$FFI_VERSION.tar.gz > $CACHEROOT/libffi-$FFI_VERSION.tar.gz try curl -L ftp://sourceware.org/pub/libffi/libffi-$FFI_VERSION.tar.gz > $CACHEROOT/libffi-$FFI_VERSION.tar.gz
fi fi
if [ ! -d $TMPROOT/libffi-$FFI_VERSION ]; then if [ ! -d $TMPROOT/libffi-$FFI_VERSION ]; then
try rm -rf $TMPROOT/libffi-$FFI_VERSION try rm -rf $TMPROOT/libffi-$FFI_VERSION
try tar xvf $CACHEROOT/libffi-$FFI_VERSION.tar.gz try tar xvf $CACHEROOT/libffi-$FFI_VERSION.tar.gz
try mv libffi-$FFI_VERSION $TMPROOT try mv libffi-$FFI_VERSION $TMPROOT
fi fi
if [ -f $TMPROOT/libffi-$FFI_VERSION/Release-iphoneos/libffi.a ]; then if [ -f $TMPROOT/libffi-$FFI_VERSION/Release-iphoneos/libffi.a ]; then
exit 0; exit 0;
fi fi
# lib not found, compile it # lib not found, compile it

View file

@ -50,21 +50,23 @@ ln -s "$IOSSDKROOT/usr/lib/libgcc_s.1.dylib" extralibs/libgcc_s.10.4.dylib || ec
# Copy our setup for modules # Copy our setup for modules
try cp $KIVYIOSROOT/src/python_files/ModulesSetup Modules/Setup.local try cp $KIVYIOSROOT/src/python_files/ModulesSetup Modules/Setup.local
try cat $KIVYIOSROOT/src/python_files/ModulesSetup.mobile >> Modules/Setup.local
try cp $KIVYIOSROOT/src/python_files/_scproxy.py Lib/_scproxy.py try cp $KIVYIOSROOT/src/python_files/_scproxy.py Lib/_scproxy.py
try ./configure CC="$ARM_CC" LD="$ARM_LD" \ try ./configure CC="$ARM_CC" LD="$ARM_LD" \
CFLAGS="$ARM_CFLAGS" \ CFLAGS="$ARM_CFLAGS" \
LDFLAGS="$ARM_LDFLAGS -Lextralibs/ -lsqlite3" \ LDFLAGS="$ARM_LDFLAGS -Lextralibs/ -lsqlite3 -L$BUILDROOT/lib -undefined dynamic_lookup" \
--without-pymalloc \ --without-pymalloc \
--disable-toolbox-glue \ --disable-toolbox-glue \
--host=armv7-apple-darwin \ --host=armv7-apple-darwin \
--prefix=/python \ --prefix=/python \
--without-doc-strings --without-doc-strings
try make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen \ try make HOSTPYTHON=./hostpython HOSTPGEN=./Parser/hostpgen \
CROSS_COMPILE_TARGET=yes CROSS_COMPILE_TARGET=yes
try make install HOSTPYTHON=./hostpython CROSS_COMPILE_TARGET=yes prefix="$BUILDROOT/python" try make install HOSTPYTHON=./hostpython CROSS_COMPILE_TARGET=yes \
prefix="$BUILDROOT/python"
try mv -f $BUILDROOT/python/lib/libpython2.7.a $BUILDROOT/lib/ try mv -f $BUILDROOT/python/lib/libpython2.7.a $BUILDROOT/lib/