-
Notifications
You must be signed in to change notification settings - Fork 708
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
[Unity] Linux Build DLL NotFound #941
Comments
|
root@ecs-metaverse:~/game/39/build_Data/Plugins# objdump -x libpuerts.so | grep NEEDED
您好,这是我命令运行的结果 |
给了libpuerts.so执行权限就可以了 |
相同的问题,给 |
按这里安装下依赖库试试?#1220 |
@chexiongsheng 我使用的是 Arch Linux 发行版, 已经安装提及的库还是相同的报错 sudo pacman -S libc++ libc++abi libunwind 如果是依赖缺失的话 unity 如何查看详细日志,看缺的是哪个符号吗? |
ldd -r libpuerts.so |
$ ldd -r libpuerts.so
linux-vdso.so.1 (0x00007ffd2dda0000)
libc++.so.1 => /usr/lib/libc++.so.1 (0x00007f10096fa000)
libc++abi.so.1 => /usr/lib/libc++abi.so.1 (0x00007f10096b6000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f10095ce000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f10095ae000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f10093c7000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007f100a751000) |
那应该和文件依赖没关把,那你看看平台设置有没设置好,对应的meta文件有没提交 |
@chexiongsheng 确实是 meta 文件没配置好 |
记录一下,从 github 中下载到的文件中缺失了 这是我调整后能正常运行的文件fileFormatVersion: 2
guid: 63a90f754f15d9c05b5d40e970d77afb
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 1
Exclude Win: 0
Exclude Win64: 0
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
CPU: x86_64
DefaultValueInitialized: true
OS: Linux
- first:
Standalone: Linux64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: x86_64
- first:
Standalone: Win
second:
enabled: 1
settings:
CPU: None
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: x86_64
userData:
assetBundleName:
assetBundleVariant: |
导入的时候 Android 的库也会报错,查看了一下,不仅仅缺失了 Linux 库的 meta |
这里的第二步其实就是检查meta的意思。。 这个问题问得比较频繁,准备在GetLibVersion处加trycatch统一提供这个提示 |
为什么不提供配置好的 meta 文件呢? |
这里记录一下
Arch Linux 安装 libunwind 后并没有
我在Arch Linux 下手动从源码编译的 libpuerts.so 的依赖项中并没有 libunwind
|
upm安装是会带的。2.0开始release上下的也带了 |
github上release是在Ubuntu下编译的,如果是其它版本的linux,最好是自己编译一下(包括v8也是)。 |
error log | 日志或报错信息
context | 编译/运行环境
编译环境:Win10,Unity 2021.3.1f1c1
运行环境:Ubuntu
how to reproduce | 复现步骤
1.Unity build平台选择 standalone 或 Dedicated Server
2.编译时出现dll重复错误,临时删除Android文件夹解决
3.把build结果放在 ubuntu 里,无论是运行 Standalone Build 还是 Dedicated Server Build 都会出现如上的DLL缺失日志
more | 其他
仅仅出现在 Linux Build 里,不知道什么原因
The text was updated successfully, but these errors were encountered: