godotengine / godotengine/godot-cpp

4.0 RC2 mac-universal: Unable to run test project Mac Universal

Open
#1,049 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.7k
Forks
809
Avg merge
1d 3h
Merged PRs (30d)
8

Description

After building the plugin and opening the test project the console gets the following errors:

```
Godot Engine v4.0.rc2.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started ---
--- GDScript language server started ---
Can't open dynamic library: /Users/admin/Documents/godot-cpp-python/test/demo/bin/libgdexample.macos.template_debug.framework, error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework, 0x0002): tried: '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework' (no such file), '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework' (no such file).
core/extension/gdextension.cpp:400 - GDExtension dynamic library not found: /Users/admin/Documents/godot-cpp-python/test/demo/bin/libgdexample.macos.template_debug.framework
Failed loading resource: res://example.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
res://main.gd:17 - Parse Error: Identifier "Example" not declared in the current scope.
res://main.gd:18 - Parse Error: Identifier "Example" not declared in the current scope.
res://main.gd:28 - Parse Error: "Example" was not found in the current scope.
res://main.gd:39 - Parse Error: Identifier "ExampleRef" not declared in the current scope.
res://main.gd:74 - Parse Error: Identifier "Example" not declared in the current scope.
res://main.gd:75 - Parse Error: Identifier "Example" not declared in the current scope.
res://main.gd:77 - Parse Error: Identifier "Example" not declared in the current scope.
res://main.gd:77 - Parse Error: Identifier "Example" not declared in the current scope.
Cannot get class 'Example'.
Cannot get class 'ExampleMin'.
Can't open dynamic library: /Users/admin/Documents/godot-cpp-python/test/demo/bin/libgdexample.macos.template_debug.framework, error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework, 0x0002): tried: '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework' (no such file), '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework' (no such file).
core/extension/gdextension.cpp:400 - GDExtension dynamic library not found: /Users/admin/Documents/godot-cpp-python/test/demo/bin/libgdexample.macos.template_debug.framework
Failed loading resource: res://example.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
Can't open dynamic library: /Users/admin/Documents/godot-cpp-python/test/demo/bin/libgdexample.macos.template_debug.framework, error: dlopen(/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework, 0x0002): tried: '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework' (no such file), '/Applications/Godot.app/Contents/MacOS/../Frameworks/libgdexample.macos.template_debug.framework' (no such file).
core/extension/gdextension.cpp:400 - GDExtension dynamic library not found: /Users/admin/Documents/godot-cpp-python/test/demo/bin/libgdexample.macos.template_debug.framework
Failed loading resource: res://example.gdextension. Make sure resources have been imported by opening the project in the editor at least once.
```

It looks to me like there's a problem with where Godot is looking for files - it seems to be looking for them inside of it's own Application package in the applications folder, and not in the test project built by godot-cpp.

Has anyone got godot-cpp test extension building working on Godot 4 RC 2 mac?

Steps to reproduce:
- Install Godot 4 RC 2 Mac-universal & Clone godot-cpp
- cd into godot-cpp and run `scons target=editor` and `scons target=template_release` and `scons target=template_debug`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.