Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load test project: Attempt to get non-existent interface function: string_resize #1201

Closed
lowagner opened this issue Aug 7, 2023 · 4 comments
Labels

Comments

@lowagner
Copy link

lowagner commented Aug 7, 2023

Godot version

4.1.stable.official.970459615

godot-cpp version

5834e16

System information

ubuntu 22.04 linux 5.19

Issue description

tried to build godot-cpp with scons, but get this error when trying to open the test project:

ERROR: Attempt to get non-existent interface function: string_resize
   at: get_interface_function (core/extension/gdextension.cpp:448)
ERROR: Unable to load GDExtension interface function string_resize()
   at: init (/$PARENT_DIRECTORY/godot-cpp/src/godot.cpp:315)
ERROR: GDExtension initialization function 'example_library_init' returned an error.
   at: open_library (core/extension/gdextension.cpp:476)
ERROR: Failed loading resource: res://example.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:273)

Steps to reproduce

make linux64 in the root directory

then scons in the test directory

then godot project.godot in the test/project directory.

Minimal reproduction project

N/A

@AThousandShips
Copy link
Member

AThousandShips commented Aug 7, 2023

You're using the 4.2 version of godot-cpp, you need to use the 4.1.stable version for your godot branch version, they're not compatible, they need to match

@AThousandShips
Copy link
Member

See also (duplicate?):

@lowagner
Copy link
Author

lowagner commented Aug 7, 2023

yeah it's probably my fault:

i'll checkout the 4.1 branch.

@lowagner lowagner closed this as not planned Won't fix, can't repro, duplicate, stale Aug 7, 2023
@akriegman
Copy link

I had the same problem. It would be nice if this were reflected in the README. Right now it says:

Warning

This repository's master branch is only usable with the latest version of Godot's ([GDExtension](https://godotengine.org/article/introducing-gd-extensions)) API (Godot 4.1 and later).

For users of Godot 4.0.x, switch to the [4.0](https://github.com/godotengine/godot-cpp/tree/4.0) branch.

For GDNative users (Godot 3.x), switch to the [3.x](https://github.com/godotengine/godot-cpp/tree/3.x) or the [3.5](https://github.com/godotengine/godot-cpp/tree/3.5) branch.

Which makes it sound like I'm good to go to use the master branch with 4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants