godot_arcore icon indicating copy to clipboard operation
godot_arcore copied to clipboard

Failed to set up Camera Feed

Open KogdatoDavno opened this issue 11 months ago • 3 comments

> Task :plugin:buildCMakeDebug[arm64-v8a] FAILED
C/C++: ninja: Entering directory `C:\Users\kogdato\godot_arcore\plugin\.cxx\Debug\4x6f3p33\arm64-v8a'
C/C++: C:/Users/kogdato/godot_arcore/plugin/src/main/cpp/background_renderer.cpp:21:11: error: no member named 'set_name' in 'godot::CameraFeed'
C/C++: C:/Users/kogdato/godot_arcore/plugin/src/main/cpp/background_renderer.cpp:38:11: error: no member named 'set_external' in 'godot::CameraFeed'
C/C++: C:/Users/kogdato/godot_arcore/plugin/src/main/cpp/background_renderer.cpp:40:33: error: no member named 'get_texture_tex_id' in 'godot::CameraFeed'

Just tried with console and Android Studio, result is the same, IDE always asks to rename the references in background_renderer.cpp:

  • m_feed->set_name("ARCore");
  • m_feed->set_external(p_width, p_height);
  • m_camera_texture_id = m_feed->get_texture_tex_id(CameraServer::FEED_YCBCR_IMAGE);

KogdatoDavno avatar Jan 02 '25 13:01 KogdatoDavno

Also experiencing the same error, I am using Godot 4.2

SueChetty avatar Jan 06 '25 08:01 SueChetty

I found that it works properly if you clone the godot-cpp repository separately and move its folder into the godot-arcore folder

CatotheCat11 avatar Jan 15 '25 11:01 CatotheCat11

The plugin seems to be written with 4.4 in mind (where CameraFeed has been significantly changed) make sure to (as the answer from @CatotheCat11 implied) use the master branch of godot-cpp, otherwise you won't have the right symbols

tGautot avatar Feb 08 '25 15:02 tGautot