【发布时间】:2019-06-20 16:14:07
【问题描述】:
https://pgmodeler.io/support/installation 说:
解决依赖关系
成功编译源代码并安装二进制文件后,我们需要将一些依赖项复制到 pgModeler 的安装文件夹以及运行一些命令以 使二进制文件正确定位它们。
GNU/Linux
1: cd $QT_ROOT/lib 2: cp libQt5DBus.so.5 libQt5PrintSupport.so.5 libQt5Widgets.so.5 libQt5Network.so.5 libQt5Gui.so.5 libQt5Core.so.5 libQt5XcbQpa.so.5 libQt5Svg.so.5 libicui18n.so.5* libicuuc.so.5* libicudata.so.5* $PGMODELER_ROOT/lib 3: cd $QT_ROOT/plugins 4: mkdir $PGMODELER_ROOT/lib/qtplugins 5: mkdir $PGMODELER_ROOT/lib/qtplugins/imageformats 6: mkdir $PGMODELER_ROOT/lib/qtplugins/printsupport 6: mkdir $PGMODELER_ROOT/lib/qtplugins/platforms 7: cp -r imageformats/libqgif.so imageformats/libqico.so imageformats/libqjpeg.so imageformats/libqsvg.so imageformats/libqtga.so imageformats/libqtiff.so imageformats/libqwbmp.so $PGMODELER_ROOT/lib/qtplugins/imageformats 8: cp -r printsupport/libcupsprintersupport.so $PGMODELER_ROOT/lib/qtplugins/printsupport 9: cp -r platforms/libqxcb.so $PGMODELER_ROOT/lib/qtplugins/platforms 10: echo -e "[Paths]\nPrefix=.\nPlugins=lib/qtplugins\nLibraries=lib" > $PGMODELER_ROOT/qt.conf 11: cp $PGMODELER_SOURCE/start-pgmodeler.sh $PGMODELER_SOURCE/pgmodeler.vars $PGMODELER_ROOT 12: chmod +x $PGMODELER_ROOT/start-pgmodeler.sh
在make和make install之后,程序运行时是否可以动态解析依赖关系(动态链接)?这样做的目的是什么?
如果我运行 sudo checkinstall 来创建 deb 文件,是否还需要像上面那样解析依赖关系?
谢谢!
【问题讨论】:
-
注意:经常在一台电脑上编译程序,再安装在另一台电脑上(或者只是在特殊环境下编译程序)。您也可以在构建路径上安装一个仅用于编译代码的库(因为该库会与系统中的库冲突)。尤其是现在我们使用包,首先需要考虑这些假设。
标签: c installation makefile compilation pgmodeler