[PyQt] pyqtdeploy working environment

Sébastien RAMAGE sramage at poifindus.com
Tue Apr 19 07:27:06 BST 2016


Finally I make it compile by changing the following in pyconfig.py in 
pyqtdeploy

Config('HAVE_IF_NAMEINDEX', default=1, android=None),
Config('HAVE_SETHOSTNAME', default=1, android=None),
Config('HAVE_GETHOSTBYNAME_R', android=None, linux=1),

Seb**
*
*
Le 15/04/2016 15:51, Sébastien RAMAGE a écrit :
> Not sure how I dit this but now QtCreator use android-21, I now get this :
>
> Qt/5.4/android_armv7/mkspecs/android-g++ -o timemodule.o 
> ../Python-3.5.0/Modules/timemodule.c
>
> /home/sramage/android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-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 -fno-builtin-memmove -g -gdwarf-2 -marm 
> -O0 -fno-omit-frame-pointer -Wno-psabi -D_REENTRANT -fPIC 
> -DPYQTDEPLOY_FROZEN_MAIN -DPYQTDEPLOY_OPTIMIZED -DPy_BUILD_CORE 
> -DXML_STATIC -DHAVE_EXPAT_CONFIG_H -DQT_QML_DEBUG -DQT_WIDGETS_LIB 
> -DQT_GUI_LIB -DQT_CORE_LIB -I../build -I. 
> -I../Python-3.5.0/Modules/expat -I../Python-3.5.0/Modules 
> -I../myapp/include/python3.5 -I../../../Qt/5.4/android_armv7/include 
> -I../../../Qt/5.4/android_armv7/include/QtWidgets 
> -I../../../Qt/5.4/android_armv7/include/QtGui 
> -I../../../Qt/5.4/android_armv7/include/QtCore -I. -I../../../andr o 
> id/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include 
> -I../../../android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include 
> -I../../../android/android-ndk-r10e/platforms/android-21/arch-arm/usr/include 
> -I../../../Qt/5.4/android_armv7/mkspecs/android-g++ -o socketmodule.o 
> ../Python-3.5.0/Modules/socketmodule.c
>
> ../Python-3.5.0/Modules/socketmodule.c: In function 'socket_if_nameindex':
>
> ../Python-3.5.0/Modules/socketmodule.c:5756:8: warning: assignment 
> makes pointer from integer without a cast
>
> ni = if_nameindex();
>
> ^
>
> ../Python-3.5.0/Modules/socketmodule.c:5768:5: error: invalid use of 
> undefined type 'struct if_nameindex'
>
> for (i = 0; ni[i].if_index != 0 && i < INT_MAX; i++) {
>
> ^
>
> ../Python-3.5.0/Modules/socketmodule.c:5768:19: error: dereferencing 
> pointer to incomplete type
>
> for (i = 0; ni[i].if_index != 0 && i < INT_MAX; i++) {
>
> ^
>
> ../Python-3.5.0/Modules/socketmodule.c:5770:17: error: invalid use of 
> undefined type 'struct if_nameindex'
>
> ni[i].if_index, PyUnicode_DecodeFSDefault, ni[i].if_name);
>
> ^
>
> ../Python-3.5.0/Modules/socketmodule.c:5770:19: error: dereferencing 
> pointer to incomplete type
>
> ni[i].if_index, PyUnicode_DecodeFSDefault, ni[i].if_name);
>
> ^
>
> ../Python-3.5.0/Modules/socketmodule.c:5770:17: error: invalid use of 
> undefined type 'struct if_nameindex'
>
> ni[i].if_index, PyUnicode_DecodeFSDefault, ni[i].if_name);
>
> ^
>
> ../Python-3.5.0/Modules/socketmodule.c:5770:62: error: dereferencing 
> pointer to incomplete type
>
> ni[i].if_index, PyUnicode_DecodeFSDefault, ni[i].if_name);
>
> ^
>
> Makefile:3509: recipe for target 'socketmodule.o' failed
>
>
>
> Any idea ?
>
>
> Seb
> *
> *
> Le 15/04/2016 15:39, Sébastien RAMAGE a écrit :
>> I tried to switch from android-19 to android-21 since linux/can.h 
>> exists in 
>> /home/sramage/android/android-ndk-r10e/platforms/android-21/arch-arm/usr/include/linux/can.h
>> and now I get the following error :
>>
>>
>> In file included from ../Python-3.5.0/Modules/socketmodule.c:265:0:
>>
>> ../Python-3.5.0/Modules/socketmodule.h:79:25: fatal error: 
>> linux/tipc.h: No such file or directory
>>
>> # include <linux/tipc.h>
>>
>> ^
>>
>> compilation terminated.
>>
>>
>>
>> it looks like QtCreator is using android-9 instead of android-21, 
>> this is probably the problem but how can I force QtCreator to use the 
>> right version ?
>> I set the environ variable ANDROID_NDK_PLATFORM to android-21 in the 
>> project setting but it doesn't change anything
>>
>> /home/sramage/android/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-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 -fno-builtin-memmove -g 
>> -gdwarf-2 -marm -O0 -fno-omit-frame-pointer -Wno-psabi -D_REENTRANT 
>> -fPIC -DPYQTDEPLOY_FROZEN_MAIN -DPYQTDEPLOY_OPTIMIZED -DPy_BUILD_CORE 
>> -DXML_STATIC -DHAVE_EXPAT_CONFIG_H -DQT_QML_DEBUG -DQT_WIDGETS_LIB 
>> -DQT_GUI_LIB -DQT_CORE_LIB -I../build -I. 
>> -I../Python-3.5.0/Modules/expat -I../Python-3.5.0/Modules 
>> -I../myapp/include/python3.5 -I../../../Qt/5.4/android_armv7/include 
>> -I../../../Qt/5.4/android_armv7/include/QtWidgets 
>> -I../../../Qt/5.4/android_armv7/include/QtGui 
>> -I../../../Qt/5.4/android_armv7/include/QtCo r e -I. 
>> -I../../../android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/include 
>> -I../../../android/android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include 
>> -I../../../android/android-ndk-r10e/platforms/android-9/arch-arm/usr/include 
>> -I../../../Qt/5.4/android_armv7/mkspecs/android-g++ -o socketmodule.o 
>> ../Python-3.5.0/Modules/socketmodule.c
>>
>>
>>
>>
>> Seb
>> *
>> *
>> Le 15/04/2016 15:26, Phil Thompson a écrit :
>>> On 15 Apr 2016, at 2:16 pm, Sébastien RAMAGE<sramage at poifindus.com>  wrote:
>>>> I tried with Python 3.5.0 and the last pyqtdeploy from hg and miracle no problem with time module but I still get problem adding xmlrpc.client , socketmodule.c don't get compiled :
>>>>
>>>> In file included from ../Python-3.5.0/Modules/socketmodule.c:265:0:
>>>> ../Python-3.5.0/Modules/socketmodule.h:83:23: fatal error: linux/can.h: No such file or directory
>>>>   #include <linux/can.h>
>>>>                         ^
>>>> compilation terminated.
>>> That's usually part of libc-dev.
>>>
>>> Phil
>>
>>
>>
>> _______________________________________________
>> PyQt mailing listPyQt at riverbankcomputing.com
>> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160419/8a85b44f/attachment-0001.html>


More information about the PyQt mailing list