English 中文(简体)
创立 用于不同含水层的电离层
原标题:Creating Qt app targeted to different Linux distros
  • 时间:2012-05-07 15:38:38
  •  标签:
  • linux
  • qt

I've的任务是把我们的Qt(目前使用Windows和Mac)用在Centos 5 &6。 做到这一点的最佳途径是什么? 我曾试图在Centos 5的基础上再接再厉,但Qt isn至今没有。 因此,我喜欢使用Centos 6,但我能否建立一个单一的双筒,使用Qt v4.8及其制版的Qt造物。 当然,如果这一双亲也像乌兰巴托那样,在其他动乱中运行,这是理想的。

问题回答

我有同样的问题,这里我想到的是:

  • link staticly against the Qt libraries. First of all, only feasible if your application is open source OR you have a commercial license for Qt - otherwise you ll run into the LGPL linking exceptions. In order to have static libraries to link against, you will have to build Qt yourself and configure it to generate static libs. Of course, you build Qt on the lowest denominator (i.e. CentOS 5) and pray that it works on CentOS 6 (it will).
  • link dynamically against Qt libraries that you provide. You will have to make sure that the application takes the libraries that you provide, so don t forget to set the library search path for the application to start with the directory your libs are in. Again, you will have to build the Qt libraries yourself (on CentOS 5) and distribute them alongside your app.




相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签