Skip to content

Error when building in the gradle. #23

@AbhijitL

Description

@AbhijitL

I got this error when building, can any one know how to fixed it?
This is i got after i run this command

./gradlew assemble

> Task :plugin:buildCMakeDebug[arm64-v8a] FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':plugin:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `C:\Users\labhi\Documents\GodotProjects\godot_arcore\plugin\.cxx\Debug\4x6f3p33\arm64-v8a'
  [1/9] Building CXX object CMakeFiles/ARCorePlugin.dir/src/main/cpp/arcore_wrapper.cpp.o
  [2/9] Building CXX object CMakeFiles/ARCorePlugin.dir/src/main/cpp/plugin_jni.cpp.o
  [3/9] Building CXX object CMakeFiles/ARCorePlugin.dir/src/main/cpp/background_renderer.cpp.o
  FAILED: CMakeFiles/ARCorePlugin.dir/src/main/cpp/background_renderer.cpp.o
  C:\Users\labhi\AppData\Local\Android\Sdk\ndk\23.2.8568313\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android24 --gcc-toolchain=C:/Users/labhi/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=C:/Users/labhi/AppData/Local/Android/Sdk/ndk/23.2.8568313/toolchains/llvm/prebuilt/windows-x86_64/sysroot -DARCorePlugin_EXPORTS -D_DEBUG -isystem C:/Users/labhi/Documents/GodotProjects/godot_arcore/plugin/../godot-cpp/include -isystem C:/Users/labhi/Documents/GodotProjects/godot_arcore/plugin/../godot-cpp/gen/include -isystem C:/Users/labhi/Documents/GodotProjects/godot_arcore/plugin/../godot-cpp/gdextension -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security  -std=c++17 -Wall -fno-limit-debug-info  -fPIC -fPIC -g -Wwrite-strings -Wchar-subscripts -Wcomment -Wdisabled-optimization -Wformat -Wformat=2 -Wformat-security -Wformat-y2k -Wimport -Winit-self -Winline -Winvalid-pch -Wlong-long -Wmissing-braces -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wreturn-type -Wsequence-point -Wswitch -Wswitch-enum -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunreachable-code -Wunused-label -Wunused-value -Wvariadic-macros -Wvolatile-register-var -Wno-error=attributes -fno-omit-frame-pointer -O0 -std=c++17 -MD -MT CMakeFiles/ARCorePlugin.dir/src/main/cpp/background_renderer.cpp.o -MF CMakeFiles\ARCorePlugin.dir\src\main\cpp\background_renderer.cpp.o.d -o CMakeFiles/ARCorePlugin.dir/src/main/cpp/background_renderer.cpp.o -c C:/Users/labhi/Documents/GodotProjects/godot_arcore/plugin/src/main/cpp/background_renderer.cpp
  C:/Users/labhi/Documents/GodotProjects/godot_arcore/plugin/src/main/cpp/background_renderer.cpp:21:11: error: no member named 'set_name' in 'godot::CameraFeed'
                  m_feed->set_name("ARCore");
                  ~~~~~~~~^
  C:/Users/labhi/Documents/GodotProjects/godot_arcore/plugin/src/main/cpp/background_renderer.cpp:38:11: error: no member named 'set_external' in 'godot::CameraFeed'
                  m_feed->set_external(p_width, p_height);
                  ~~~~~~~~^
  C:/Users/labhi/Documents/GodotProjects/godot_arcore/plugin/src/main/cpp/background_renderer.cpp:40:33: error: no member named 'get_texture_tex_id' in 'godot::CameraFeed'
                  m_camera_texture_id = m_feed->get_texture_tex_id(CameraServer::FEED_YCBCR_IMAGE);
                                        ~~~~~~~~^
  3 errors generated.
  [4/9] Building CXX object CMakeFiles/ARCorePlugin.dir/src/main/cpp/point_cloud_renderer.cpp.o
  [5/9] Building CXX object CMakeFiles/ARCorePlugin.dir/src/main/cpp/instances_renderer.cpp.o
  [6/9] Building CXX object CMakeFiles/ARCorePlugin.dir/src/main/cpp/plane_renderer.cpp.o
  [7/9] Building CXX object CMakeFiles/ARCorePlugin.dir/src/main/cpp/arcore_interface.cpp.o
  [8/9] Building CXX object CMakeFiles/ARCorePlugin.dir/src/main/cpp/register_types.cpp.o
  ninja: build stopped: subcommand failed.

  C++ build system [build] failed while executing:
      @echo off
      "C:\\Users\\labhi\\AppData\\Local\\Android\\Sdk\\cmake\\3.22.1\\bin\\ninja.exe" ^
        -C ^
        "C:\\Users\\labhi\\Documents\\GodotProjects\\godot_arcore\\plugin\\.cxx\\Debug\\4x6f3p33\\arm64-v8a" ^
        ARCorePlugin
    from C:\Users\labhi\Documents\GodotProjects\godot_arcore\plugin

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.9/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 2m 49s
4 actionable tasks: 4 executed
PS C:\Users\labhi\Documents\GodotProjects\godot_arcore>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions