Giter VIP home page Giter VIP logo

Comments (3)

plfiorini avatar plfiorini commented on August 26, 2024 1

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

from fluid.

timsueberkrueb avatar timsueberkrueb commented on August 26, 2024

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.

from fluid.

plfiorini avatar plfiorini commented on August 26, 2024

Closing, no longer an issue with current develop branch.

from fluid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.