Android: error: cannot find -lqandroid
i am trying to compile qt for android statically
i compiled qt for android 5.2.0 without any problem
after that when i want to build my project with static qt i got this warning first:
@Project WARNING: Plugin class name could not be determined for qandroid plugin.@
and after this
i got this error :
@Android: error: cannot find -lqandroid@
do you know what should i do to solve this problem???
For static builds you need to link plugins in a different way, see for example http://qt-project.org/doc/qt-5.0/qtcore/plugins-howto.html - static plugins section.
thanks dear for replying
but what do you mean?i have an android application and i want to build it statically how can i add my plugins to load statically?
Like frederik wrote, it's explained in the "static plugins":http://qt-project.org/doc/qt-5.0/qtcore/plugins-howto.html#static-plugins section of the document.
The plugins are not loaded externally in this case, they are linked in your application
no i mean where is lqandroid ?how can i find it?
I added to the project file:
CONFIG -= import_qpa_plugin
LIBS += -L$$[QT_INSTALL_PLUGINS]/platforms/android
QTPLUGIN += qtforandroid
Library now compiles fine, but at deployment:
@No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so, included in package. Please include one.
03:07:27: The process «E:\dev\cpp\lib\qt\android-armeabi\bin\androiddeployqt.exe» exited with code 12.@
Were you ever able to get it working? Only clue I found was a comment here that static build isn't supported yet for Qt Android: https://bugreports.qt-project.org/browse/QTBUG-36097