<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    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=windows-1252">
    <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=windows-1252">
    <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=windows-1252">
    <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/QtCore
  
-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=windows-1252">
    <style type="text/css">
p, li { white-space: pre-wrap; }
</style><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: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 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>
  </body>
</html>