gpt4 book ai didi

linux - 尝试在 Ubuntu Linux debian 中打包 Unity 游戏

转载 作者:太空宇宙 更新时间:2023-11-04 10:55:35 59 4
gpt4 key购买 nike

我为 Linux 创建了一个 Unity 游戏,现在我正尝试将它打包到 debian 中,以便之后我可以将它上传到 Ubuntu 软件中心。我已准备好一切,当我使用此命令 debuild -d -us -uc 时,出现此错误:

dpkg-buildpackage -rfakeroot -d -us -uc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package rainingcoins
dpkg-buildpackage: source version 109.0
dpkg-buildpackage: source distribution precise
dpkg-buildpackage: source changed by CrazySoft Limited <info@crazysoft.gr>
dpkg-source --before-build rainingcoins-109.0
dpkg-buildpackage: host architecture i386
fakeroot debian/rules clean
dh clean
dh_testdir
dh_auto_clean
dh_clean
dpkg-source -b rainingcoins-109.0
dpkg-source: info: using source format `3.0 (native)'
dpkg-source: info: building rainingcoins in rainingcoins_109.0.tar.gz
dpkg-source: info: building rainingcoins in rainingcoins_109.0.dsc
debian/rules build
dh build
dh_testdir
dh_auto_configure
dh_auto_build
dh_auto_test
fakeroot debian/rules binary
dh binary
dh_testroot
dh_prep
dh_auto_install
dh_install
dh_installdocs
dh_installchangelogs
dh_pysupport
dh_pysupport: This program is deprecated, you should use dh_python2 instead. Migration guide: http://deb.li/dhs2p
dh_icons
dh_perl
dh_link
dh_compress
dh_fixperms
dh_strip
dh_makeshlibs
dh_shlibdeps
dpkg-shlibdeps: error: couldn't find library librt.so.1 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Mono/x86_64/libmono.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libdl.so.2 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Mono/x86_64/libmono.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libpthread.so.0 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Mono/x86_64/libmono.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libm.so.6 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Mono/x86_64/libmono.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libc.so.6 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Mono/x86_64/libmono.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library ld-linux-x86-64.so.2 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Mono/x86_64/libmono.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libgtk-x11-2.0.so.0 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86_64/ScreenSelector.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libgdk_pixbuf-2.0.so.0 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86_64/ScreenSelector.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libgobject-2.0.so.0 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86_64/ScreenSelector.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libglib-2.0.so.0 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86_64/ScreenSelector.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libdl.so.2 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86_64/ScreenSelector.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libgcc_s.so.1 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86_64/ScreenSelector.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library libc.so.6 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86_64/ScreenSelector.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: couldn't find library ld-linux-x86-64.so.2 needed by debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86_64/ScreenSelector.so (ELF format: 'elf64-x86-64'; RPATH: '')
dpkg-shlibdeps: error: cannot continue due to the errors listed above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/rainingcoins.substvars debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86/ScreenSelector.so debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Plugins/x86_64/ScreenSelector.so debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Mono/x86/libmono.so debian/rainingcoins/opt/rainingcoins/raining_coins_Data/Mono/x86_64/libmono.so debian/rainingcoins/opt/rainingcoins/raining_coins.x86 returned exit code 2
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -d -us -uc failed

我的规则文件是这样的:

#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
dh $@

有什么想法可以帮助我吗?

最佳答案

显然,您正在尝试在 i386 主机系统上构建包含 amd64 二进制文件的包。

这就是混淆dh_shlibdeps .

如果这不是一个错误并且您真的想在一个包中混合架构,我想您最好的解决方案是完全跳过这一步。你可以通过在你的 debian/rules 中添加类似下面的内容来做到这一点:

override_dh_shlibdeps:
@echo "Skipping dh_shlibdeps"

如果这样做,您将不得不在 debian/control 中手动填充您的软件包依赖项,因为它们不会被自动检测到。

关于linux - 尝试在 Ubuntu Linux debian 中打包 Unity 游戏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28949154/

59 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com