Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Build Rust Qml project on Android Error: ToolNotFound: Failed to find tool. Is `arm-linux-androideabi-clang++` installed?

    Mobile and Embedded
    1
    1
    228
    Loading More Posts
    • 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.
    • O
      oleh997 last edited by

      I'm trying to build a project for Android written in Rust and using QML, for communication of Qml and Rust I use library qmetaobject 0.1.4, but I get the following error:

      Task :app:cargoBuildArm FAILED
      Compiling qmetaobject v0.1.4
      error: failed to run custom build command for qmetaobject v0.1.4

      Caused by:
      process didn't exit successfully: /home/oleh/Projects/OriannaAndroid/target/debug/build/qmetaobject-4a0dd2a129ba0234/build-script-build (exit code: 1)
      --- stdout
      TARGET = Some("armv7-linux-androideabi")
      OPT_LEVEL = Some("0")
      HOST = Some("x86_64-unknown-linux-gnu")
      CXX_armv7-linux-androideabi = None
      CXX_armv7_linux_androideabi = None
      TARGET_CXX = None
      CXX = None
      CXXFLAGS_armv7-linux-androideabi = None
      CXXFLAGS_armv7_linux_androideabi = None
      TARGET_CXXFLAGS = None
      CXXFLAGS = None
      CRATE_CC_NO_DEFAULTS = None
      DEBUG = Some("true")
      CXX_armv7-linux-androideabi = None
      CXX_armv7_linux_androideabi = None
      TARGET_CXX = None
      CXX = None
      CXXFLAGS_armv7-linux-androideabi = None
      CXXFLAGS_armv7_linux_androideabi = None
      TARGET_CXXFLAGS = None
      CXXFLAGS = None
      CRATE_CC_NO_DEFAULTS = None
      running: "arm-linux-androideabi-clang++" "-O0" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/home/oleh/.cargo/registry/src/github.com-1ecc6299db9ec823/qmetaobject-0.1.4" "-I" "/home/oleh/Qt/5.15.2/android/include" "-Wall" "-Wextra" "-o" "/home/oleh/Projects/OriannaAndroid/target/armv7-linux-androideabi/debug/build/qmetaobject-6918175926495e5f/out/rust_cpp/cpp_closures.o" "-c" "/home/oleh/Projects/OriannaAndroid/target/armv7-linux-androideabi/debug/build/qmetaobject-6918175926495e5f/out/rust_cpp/cpp_closures.cpp"

      --- stderr

      And I understand that they can't find this file (arm-linux-androideabi-clang++). It is nowhere in the NDK folder, and in google about it only a few pages that are not related to what I need.

      This my project: https://gitlab.com/Fivlao/oriannaandroid
      My QT version 15.2
      build on ubuntu 20

      Maybe someone knows how to solve this problem?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post