项目分布 [英] Distribution of Projects
问题描述
我想在我的网站上发布我的项目的偷偷的高峰,在Windows中我知道如何正确分发所需的文件,如.dll等。但对于Linux(Ubuntu distro)我有麻烦在任何其他机器上运行我的程序,但我的开发机。我已能够静态链接所有依赖关系,但只有一个
I am looking to release a 'sneak peak' of my project on my website, in Windows I know how to properly distribute the required files, like .dll's and such. But for Linux (Ubuntu distro) I am having trouble running my program on any other machine but my development machine. I have been able to statically link all dependancies but one
-Tiny XML
-FreeType2
-SDL
-Lua
-LuaBind
-GLU
这些都有自己适当的.a静态库。然而OpenGL或lGL,因为我已经链接它,显然指向.so动态链接库。我无法找到OpenGL的静态库,我明白使用动态链接库的好处。所以我的问题是,什么是正确的过程设置客户端计算机来运行我的文件?即。如何安装依赖项(在这种情况下只有libGL.so)在他们的系统上?
我想我也将自动chmod + x的文件,它将运行它们之前。
-Tiny XML
-FreeType2
-SDL
-Lua
-LuaBind
-GLU
These all have their own appropriate .a static library's. However OpenGL or lGL as I have linked it, apparently points to a .so dynamically linked library. I am unable to find a static library for OpenGL, I do understand the benefits of using Dynamically linked library's. So my question is, what is the proper process to set up a client computer to run my file? ie. How to install the dependencies (In this case only libGL.so) on their system?
I imagine I will also have to automatically chmod +x the file before it will run for them also.
推荐答案
您应该创建一个具有适当依赖关系的.deb文件,所以像synaptic这样的工具可以自动满足依赖关系。
You should create a .deb file with appropriate dependencies, so a tool like synaptic can automatically take care of satisfying the dependencies.
这篇关于项目分布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!