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

Does not have libary for the current platform (PCRE) #82

Closed
zwrawr opened this issue Oct 2, 2021 · 16 comments
Closed

Does not have libary for the current platform (PCRE) #82

zwrawr opened this issue Oct 2, 2021 · 16 comments
Labels

Comments

@zwrawr
Copy link

zwrawr commented Oct 2, 2021

OS: Ubuntu 20.04 LTS

Unable to load addon script from path: 'res://addons/godot-git-plugin-v1.2.2/godot-git-plugin/git_api.gdns'. This might be due to a code error in that script.
Disabling the addon at 'res://addons/godot-git-plugin-v1.2.2/godot-git-plugin/plugin.cfg' to prevent further errors.
 GDScript language server started ---
  does not have a library for the current platform.
 Failed to get modified time for: res://addons/godot-git-plugin/git_api.gdnlib.
  does not have a library for the current platform.
 core/project_settings.cpp:209 - Property not found: editor_plugins/enabled
@twaritwaikar
Copy link
Contributor

The error is probably because of the contents of the release .zip file being present one level deeper than they need to be.

In your case, try just copying res://addons/godot-git-plugin-v1.2.2/godot-git-plugin to res://addons/godot-git-plugin and then you can delete res://addons/godot-git-plugin-v1.2.2.

@twaritwaikar
Copy link
Contributor

Just added a note of this in the wiki

@twaritwaikar
Copy link
Contributor

Could you confirm that you have downloaded the plugin through the Asset Library?

@zwrawr
Copy link
Author

zwrawr commented Oct 4, 2021

I wasn't installing from the Asset Library but from the GitHub releases. When I install the Asset library version I get this error.

Godot Engine v3.3.4.stable.mono.official (c) 2007-2021 Juan Linietsky, Ariel Manzur & Godot Contributors.
--- GDScript language server started ---
 Can't open dynamic library: /mnt/slowssd/Repos/godot/LD49/addons/godot-git-plugin/x11/release/libgitapi.so. Error: /mnt/slowssd/Repos/godot/LD49/addons/godot-git-plugin/x11/release/libgitapi.so: undefined symbol: pcre_free
 modules/gdnative/gdnative.cpp:502 - No valid library handle, can't get symbol from GDNative object
 modules/gdnative/nativescript/nativescript.cpp:1482 - No nativescript_init in "res://addons/godot-git-plugin/x11/release/libgitapi.so" found

@twaritwaikar
Copy link
Contributor

twaritwaikar commented Oct 4, 2021

@zwrawr That looks like the same issue as #83

Could you try the workaround mentioned therein?

@zwrawr
Copy link
Author

zwrawr commented Oct 4, 2021

Looks like I already have it installed

sudo apt-get install libpcre3
...
libpcre3 is already the newest version (2:8.39-12build1).

@twaritwaikar
Copy link
Contributor

Thanks for confirming. I am marking this as a bug. The fix should be simple because this is now identified as a regression due to missing an option in our compilation flags.

@Calinou Calinou changed the title Does not have libary for the current platform Does not have libary for the current platform (PCRE) Oct 27, 2021
@eeclarkjr
Copy link

Zip file downloaded and saved into addons folder (path shown below)
Get the follow error when trying to enable.

Unable to load addon script from path: 'res://addons/godot-git-plugin/git_api.gdns' There seems to be an error in the code, please check the syntax.

@twaritwaikar
Copy link
Contributor

@eeclarkjr Any chance you are using the mono build of Godot?

@PixsaOJ
Copy link

PixsaOJ commented Dec 16, 2021

Godot 3.4 came up.

I used to fall back to version 1.2.1, and it worked, but now that's not even an option. So I can't really use this plugin anymore. Hopefully will be fixed soon. If you need any debugging or assistance from me, I am glad to help. I am starting new project and don't want to use other GitHub plugin (I use GitLab).

The problem with 1.2.1 is that when I reopen the project, it's gone.

@twaritwaikar
Copy link
Contributor

@PixsaOJ Godot 3.4 should be working with v1.2.1. The behaviour you see that the VCS needs to be initialized every time you open the project in Godot is actually the correct behaviour from this plugin and has been the behaviour in all v1.x.

However, we have built a way to fix that in the upcoming v2 with godotengine/godot#53900 and #84 along with new features including network-related ones.

@twaritwaikar
Copy link
Contributor

The Godot 3.5 beta1 is now live. And along with it, we released a v2.0.0 of this plugin which should fix this issue.

@twaritwaikar
Copy link
Contributor

While v2.x fixes this issue, the fix was backported to v1.x as well. The new v1.2.3 should not show any PCRE undefined symbol errors.

@fenamori
Copy link

fenamori commented Jan 9, 2023

I'm getting the same error as #90 on Godot v3.5.1.stable with plugin version 2.1.0 running on EndeavourOS (Linux kernel 6.1.4-arch1-1).

Can't open dynamic library: /(project path)/addons/godot-git-plugin/linux/libgitapi.so. Error: /(project path)/addons/godot-git-plugin/linux/libgitapi.so: failed to map segment from shared object
 
modules/gdnative/gdnative.cpp:510 - No valid library handle, can't get symbol from GDNative object
 
modules/gdnative/nativescript/nativescript.cpp:1503 - No nativescript_init in "res://addons/godot-git-plugin/linux/libgitapi.so" found

image

@View-my-Git-Lab-krafi

This comment was marked as off-topic.

@Calinou
Copy link
Member

Calinou commented Nov 5, 2023

@View-my-Git-Lab-krafi This issue is unrelated to the Godot Git plugin.

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

7 participants