godot_arcore
godot_arcore copied to clipboard
Failed to set up Camera Feed
> 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);
Also experiencing the same error, I am using Godot 4.2
I found that it works properly if you clone the godot-cpp repository separately and move its folder into the godot-arcore folder
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