godotengine / godotengine/godot-cpp

Can't open dynamic library

Open
#1,800 2 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

### Godot version

master

### godot-cpp version

master

### System information

windows10

### Issue description

When I compiled the DLL using a multi-layer folder structure, an error occurred:
ERROR: Can't open dynamic library: E:/GDProject/project/bin/libgdgamecore.windows.template_debug.x86_64.dll. Error: Error 5: 拒绝访问。.
ERROR: Can't open GDExtension dynamic library: 'res://Bin/gamecore.gdextension'.

my sconstruct file wirte:

env.Append(CPPPATH=["cplugin/"])
sources = Glob("cplugin/Frameworks/*.cpp") + Glob("cplugin/Frameworks/Objects/*.cpp") + Glob("cplugin/*.cpp")

if i only use the : sources = Glob("cplugin/*.cpp") , then godot can load the dll

### Steps to reproduce

Folder
-- cplugin
    -- Frameworks
        xx.h
        xx.cpp
        -- Objects
            xx.h
            xx.cpp
-- godot-cpp
-- project (godot project files)

### Minimal reproduction project

none

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.