Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Android: error: cannot find -lqandroid
Forum Updated to NodeBB v4.3 + New Features

Android: error: cannot find -lqandroid

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 5 Posters 5.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kitten
    wrote on last edited by
    #1

    hi dears
    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???
    thanks alot

    www.kitten.mihanblog.com

    1 Reply Last reply
    0
    • frederikF Offline
      frederikF Offline
      frederik
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kitten
        wrote on last edited by
        #3

        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?

        www.kitten.mihanblog.com

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kitten
            wrote on last edited by
            #5

            no i mean where is lqandroid ?how can i find it?

            www.kitten.mihanblog.com

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bobik
              wrote on last edited by
              #6

              I added to the project file:
              @static
              {
              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.@

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pbsurf
                wrote on last edited by
                #7

                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

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved