[PySide] Building PySide for Android
Adrià Cereto Massagué
ssorgatem at gmail.com
Tue May 8 19:52:17 CEST 2012
Hi again,
I've managed to get PySide/QtCore.so built, (typesystem_core_android.xml
did not disappear, after all)
but now it's QtGui who's not wanting to build. Here's the output:
[ 20%] Building CXX object
> PySide/QtGui/CMakeFiles/QtGui.dir/PySide/QtGui/qcursor_wrapper.cpp.o
> /home/ssorgatem/pyside-android/BuildScripts/pyside/build/PySide/QtGui/PySide/QtGui/qcursor_wrapper.cpp:
> In function 'int Sbk_QCursor_Init(PyObject*, PyObject*, PyObject*)':
> /home/ssorgatem/pyside-android/BuildScripts/pyside/build/PySide/QtGui/PySide/QtGui/qcursor_wrapper.cpp:158:45:
> error: invalid conversion from 'Qt::HANDLE {aka void*}' to 'const char*
> const*' [-fpermissive]
> /home/ssorgatem/necessitas/Android/Qt/480/armeabi/include/QtGui/qpixmap.h:80:5:
> error: initializing argument 1 of 'QPixmap::QPixmap(const char* const*)'
> [-fpermissive]
> /home/ssorgatem/pyside-android/BuildScripts/pyside/build/PySide/QtGui/PySide/QtGui/qcursor_wrapper.cpp:
> In function 'void PySide_QtCore_Qt_HANDLE_PythonToCpp_QCursor(PyObject*,
> void*)':
> /home/ssorgatem/pyside-android/BuildScripts/pyside/build/PySide/QtGui/PySide/QtGui/qcursor_wrapper.cpp:895:44:
> error: invalid conversion from 'Qt::HANDLE {aka void*}' to 'const char*
> const*' [-fpermissive]
> /home/ssorgatem/necessitas/Android/Qt/480/armeabi/include/QtGui/qpixmap.h:80:5:
> error: initializing argument 1 of 'QPixmap::QPixmap(const char* const*)'
> [-fpermissive]
> make[2]: ***
> [PySide/QtGui/CMakeFiles/QtGui.dir/PySide/QtGui/qcursor_wrapper.cpp.o]
> Error 1
> make[1]: *** [PySide/QtGui/CMakeFiles/QtGui.dir/all] Error 2
> make: *** [all] Error 2
>
I have no clue about what to do next. Any help would be greatly appreciated.
Thank you,
Adrià
El dimarts 8 de maig de 2012 16:42:06 UTC+2, Adrià Cereto Massagué va
escriure:
>
> Hi,
>
> I've been attempting to build PySide 1.1.1 for android, with python2.7
> from https://github.com/kivy/python-for-android
> and using Necessita's bundled NDK r6b with Linaro's toolchain 4.6.2.
>
> I'm using adapted versions of Thomas Perl's patches.
>
> So far, I've been able to build libshiboken, but i has been built as
> libshiboken.so while PySide looks for libshiboken-python27.so.
> A symlink solved that.
> Then PySide would complain about missing shiboken binary... then a symlink
> against the host machine shiboken binary solved that too.
> And now I'm stuck trying to generate the bindings for QtCore:
>
> Linking CXX shared library libpyside.so
> [ 3%] Built target pyside
> [ 4%] Running generator for QtCore...
> Fatal error: line=22, column=71, message=Failed to parse:
> 'typesystem_core_android.xml'
>
> Cannot parse file:
> /home/ssorgatem/pyside-android/BuildScripts/pyside/build/PySide/QtCore/typesystem_core.xmlmake[2]:
> *** [PySide/QtCore/PySide/QtCore/qabstracteventdispatcher_wrapper.cpp]
> Error 1
> make[1]: *** [PySide/QtCore/CMakeFiles/QtCore.dir/all] Error 2
> make: *** [all] Error 2
>
> The relevant contents on typesystem_core.xml are:
>
> <typesystem package="PySide.QtCore">
>> <load-typesystem name="typesystem_core_android.xml" generate="yes"/>
>> <load-typesystem name="typesystem_core_common.xml" generate="yes"/>
>> </typesystem>
>>
>
> But typesystem_core_android.xml does not exist. If I write it by hand it
> disappears again, so it's being removed, and
> therefore I guess it should be generated in some way... but how?
> Any ideas?
>
> Thank you,
>
> Adrià
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120508/7a292307/attachment.html>
More information about the PySide
mailing list