我为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 $@
有什么想法可以帮助我吗?
答案 0 :(得分:1)
显然,您正在尝试在i386主机系统上构建包含amd64二进制文件的软件包。
这就是混淆dh_shlibdeps。
如果这不是一个错误,你真的想在一个包中混合架构,我想你最好的解决方案是完全跳过这一步。 您可以通过在debian / rules中添加以下内容来实现:
override_dh_shlibdeps:
@echo "Skipping dh_shlibdeps"
如果这样做,则必须在debian / control中手动填充包依赖项,因为它们不会被自动检测。