我刚刚尝试将我的第一个 ubuntu 包上传到 ppa,并得到:
dh_strip debug symbol extraction: disabling for PPA build
dh_strip debug symbol extraction: not doing anything since NO_PKG_MANGLE is given
dh_makeshlibs
dh_shlibdeps
dpkg-shlibdeps: error: couldn't find library libgtk-3.so.0 needed by debian/mypackage/opt/mypackage/mypackage (ELF format: 'elf32-i386'; RPATH: '').
dpkg-shlibdeps: error: couldn't find library libgdk-3.so.0 needed by debian/mypackage/opt/mypackage/mypackage (ELF format: 'elf32-i386'; 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 set LD_LIBRARY_PATH.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/mypackage.substvars debian/mypackage/opt/mypackage/mypackage returned exit code 2
make: *** [binary] Error 2
dpkg-buildpackage:错误:/usr/bin/fakeroot debian/rules 二进制文件出现错误退出状态 2
我添加了依赖项:libgtk-3-0(> = 3.0.0),但没有帮助。
谢谢你的帮助。
答案1
您需要在 debian/control 文件中添加 libgtk-3-0 作为构建依赖项(Build-Depends)。