Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to build for Android as Standalone mode because of unavailable dependency #48

Closed
DmitrySboychakov opened this issue Jan 9, 2017 · 3 comments
Milestone

Comments

@DmitrySboychakov
Copy link

I mean that I can't build an Android build, becouce CMake files uses a lot of ECM and KDE macros.
This is issue.

@timsueberkrueb
Copy link
Contributor

Hey @SboichakovDmitriy.

If you're using Ubuntu, you can try this script to setup Fluid for Android.

If not:
You need an CMake toolchain for Android:
e.g. this one: https://github.com/taka-no-me/android-cmake
If you are using Qt 5.7 you need to patch your Qt installation:
https://gist.github.com/tim-sueberkrueb/b59d50a80744d446754c8ca57f2f18ad

patch "$qt_install_dir/$qt_platform/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake" cmake_android.patch

See the relevant Qt bug for more information.

Specify the options to cmake:

  cmake -DCMAKE_TOOLCHAIN_FILE=../android-cmake/android.toolchain.cmake \
        -DANDROID_NDK="$ndk_path" \
        -DANDROID_ABI="$android_abi" \
        -DCMAKE_PREFIX_PATH=$qt_install_dir/$qt_platform/lib/cmake \
        -DCMAKE_BUILD_TYPE=$build_type \
        -DKDE_INSTALL_QMLDIR=$qt_install_dir/$qt_platform/qml \
        "$fluid_source_path"

Alternatively, you can use the QMake per-project installation which is probably more hassle-free.

@plfiorini
Copy link
Member

With the new qmake build system I managed to build fluid.pro from QtCreator and deploy fluid-demo to Nexus 5 with Android 6 :D

@plfiorini plfiorini added this to the 0.11.0 milestone Mar 18, 2017
@plfiorini
Copy link
Member

Closing, no longer an issue with current develop branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants