简体   繁体   中英

Qt Android Extras installation

I am developing an app that need to access the image gallery of the OS in iOS and Android .

I have seen that I must develop one way to Android using QAndroidJniObject Class and another way to iOS using the UIKit and UIImagePickerController from nativa iOS API.

So I decided to start with Android and I am facing a problem. When I include in my .pro file the line QT += androidextras it returns my the following error: Project ERROR: Unknown module(s) in QT: androidextras

Now I am trying to find out from where I can download it because the repositories at Qt site leads me to web pages that don't exist. How can I download that module?

Thanks?

  1. To avoid that error when building for iOS, use a condition: android: QT += androidextras
  2. Make sure that you are actually building for Android
  3. Run qmake

That should fix it. If not, check if the files exist in your Qt-Install-Directory (eg libQt5AndroidExtras.so ). If not, your installation of Qt is probably broken.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM