[PyQt] LONG_BIT error static compiling Python3.4.2 for Android

Phil Thompson phil at riverbankcomputing.com
Thu Feb 5 13:11:13 GMT 2015


On 04/02/2015 10:01 pm, lloyd konneker wrote:
> Using the same scripts and procedures that I used with pyqtdeploy 0.8,
> now with 0.9 I get:
> 
> Configuring
> Configuring /Users/bootch/pensoolpyqtdeploy/Downloads/Python-3.4.2 as
> Python v3.4.2 for android-32
> Patching
> /Users/bootch/pensoolpyqtdeploy/Downloads/Python-3.4.2/Include/unicodeobject.h
> pyqtdeploycli:
> /Users/bootch/pensoolpyqtdeploy/Downloads/Python-3.4.2/Include/unicodeobject.h:2269:
> line does not match diff context
> 
> qmake ing
> 
> make ing
> /Users/bootch/android-ndk-r10d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc
> -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp
> -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums
> -DANDROID -Wa,--noexecstack -fwrapv -O3 -fPIC -Wno-psabi -DNDEBUG
> -DPy_BUILD_CORE -DPLATFORM=\"linux\"
> -I../../../Qt/5.4/android_armv7/mkspecs/android-g++ -I. -I. -IInclude
> -I../../../android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/include
> -I../../../android-ndk-r10d/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include
> -I../../../android-ndk-r10d/platforms/android-9/arch-arm/usr/include
> -o .obj/getbuildinfo.o Modules/getbuildinfo.c
> In file included from Include/Python.h:50:0,
>                  from Modules/getbuildinfo.c:1:
> Include/pyport.h:814:2: error: #error "LONG_BIT definition appears
> wrong for platform (bad gcc/glibc config?)."
>  #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
> config?)."
>   ^
> make: *** [.obj/getbuildinfo.o] Error 1
> 
> 
> I will upgrade to pyqtdeploy v0.10 and try again.
> 
> host is OSX
> Qt5.4
> Python3.4.2

I can't reproduce this.

Phil


More information about the PyQt mailing list