<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Not sure how I dit this but now QtCreator use android-21, I now get
    this :<br>
    <br>
    <meta name="qrichtext" content="1">
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span style=" color:#000000;">Qt/5.4/android_armv7/mkspecs/android-g++ -o timemodule.o ../Python-3.5.0/Modules/timemodule.c</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">/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</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">../Python-3.5.0/Modules/socketmodule.c: In function 'socket_if_nameindex':</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">../Python-3.5.0/Modules/socketmodule.c:5756:8: warning: assignment makes pointer from integer without a cast</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">     ni = if_nameindex();</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">        ^</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">../Python-3.5.0/Modules/socketmodule.c:5768:5: error: invalid use of undefined type 'struct if_nameindex'</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">     for (i = 0; ni[i].if_index != 0 && i < INT_MAX; i++) {</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">     ^</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">../Python-3.5.0/Modules/socketmodule.c:5768:19: error: dereferencing pointer to incomplete type</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">     for (i = 0; ni[i].if_index != 0 && i < INT_MAX; i++) {</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                   ^</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">../Python-3.5.0/Modules/socketmodule.c:5770:17: error: invalid use of undefined type 'struct if_nameindex'</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                 ni[i].if_index, PyUnicode_DecodeFSDefault, ni[i].if_name);</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                 ^</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">../Python-3.5.0/Modules/socketmodule.c:5770:19: error: dereferencing pointer to incomplete type</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                 ni[i].if_index, PyUnicode_DecodeFSDefault, ni[i].if_name);</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                   ^</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">../Python-3.5.0/Modules/socketmodule.c:5770:17: error: invalid use of undefined type 'struct if_nameindex'</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                 ni[i].if_index, PyUnicode_DecodeFSDefault, ni[i].if_name);</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                 ^</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">../Python-3.5.0/Modules/socketmodule.c:5770:62: error: dereferencing pointer to incomplete type</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                 ni[i].if_index, PyUnicode_DecodeFSDefault, ni[i].if_name);</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                                                              ^</span></p>
    <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">Makefile:3509: recipe for target 'socketmodule.o' failed</span><!--EndFragment--></p>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
    <br>
    Any idea ?<br>
    <br>
    <br>
    Seb<font color="#009900"><b></b></font><br>
    <div class="moz-signature"><small><b> <br>
        </b> </small></div>
    <div class="moz-cite-prefix">Le 15/04/2016 15:39, Sébastien RAMAGE a
      écrit :<br>
    </div>
    <blockquote cite="mid:5710EF26.4020209@poifindus.com" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      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<br>
      and now I get the following error :<br>
      <br>
      <br>
      <meta name="qrichtext" content="1">
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span style=" color:#aa0000;">In file included from ../Python-3.5.0/Modules/socketmodule.c:265:0:</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">../Python-3.5.0/Modules/socketmodule.h:79:25: fatal error: linux/tipc.h: No such file or directory</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;"> # include <linux/tipc.h></span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">                         ^</span></p>
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#aa0000;">compilation terminated.</span><!--EndFragment--></p>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
      <br>
      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 ?<br>
      I set the environ variable ANDROID_NDK_PLATFORM to android-21 in
      the project setting but it doesn't change anything
      <meta name="qrichtext" content="1">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
      <meta name="qrichtext" content="1">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
      <meta name="qrichtext" content="1">
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment--><span style=" color:#000000;">/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/<font color="#ff0000">android-9</font>/arch-arm/usr/include -I../../../Qt/5.4/android_armv7/mkspecs/android-g++ -o socketmodule.o ../Python-3.5.0/Modules/socketmodule.c</span><!--EndFragment--></p>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css">
p, li { white-space: pre-wrap; }
</style><br>
      <br>
      <br>
      Seb<br>
      <div class="moz-signature"><small><b> <br>
          </b> </small></div>
      <div class="moz-cite-prefix">Le 15/04/2016 15:26, Phil Thompson a
        écrit :<br>
      </div>
      <blockquote
        cite="mid:21C53BB6-4998-440F-A657-B64CB957F74A@riverbankcomputing.com"
        type="cite">
        <pre wrap="">On 15 Apr 2016, at 2:16 pm, Sébastien RAMAGE <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:sramage@poifindus.com"><sramage@poifindus.com></a> wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">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.
</pre>
        </blockquote>
        <pre wrap="">That's usually part of libc-dev.

Phil</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
PyQt mailing list    <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
    </blockquote>
    <br>
  </body>
</html>