Skip to content

Guide to build the project and generate APK #1

@floviolleau

Description

@floviolleau

Hi,

I would like to compile the project and generate the final APK but I don't see any documentation.

Can you please write basic steps?
I'm familiar with compilation and linux tools but not so much with Qt and Android.

What I did:

  1. I'm under ubuntu x64 on a Latitude E7240
  2. I already downloaded:
  • Qt for Android 5.1.1 x64 (not able to find a 5.2 on their website and I saw in the code: private static final int QT_VERSION = 0x050100; // This app requires at least Qt version 5.1.0)
  • NDK r10e,
  • Android SDK,
  • Android Studio
  1. I cloned the official repository of OpenCPN (without doing anything // didn't compiled it)
  2. I cloned your repository
  3. Changed in the file OpenCPN-Android/app/build.gradle paths:
  • Qt_Base => to the place where I extracted Android Qt when running qt-linux-opensource-5.1.1-x86_64-offline.run
  • OCPN_Base => to the place where I cloned OpenCPN

And it is complaining in any places where there is an import to Qt:

error: cannot find symbol
import org.qtproject.qt5.android.QtNative

I don't know how to put all pieces together. I'm missing to plug Qt to Android Studio

Can you please help me?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions