Qt - 4.7.3 - 如何使静态构建 [英] Qt - 4.7.3 - How to make static build
问题描述
我过去几个月使用了4.7.2。现在我下载了4.7.3。现在我正在搜索键入configure -static。但我不知道在哪里地狱qt路径。
-
下载源码包此处。下载并安装您最喜欢的perl发行版。我必须警告你,草莓perl有自己的工具链,可能会使用,而不是你下载的MinGW。
-
解压缩它说:
C:\ Qt -source
,以便在C:\ Qt-source
configure.exe
$ b
b)如果您使用MinGW,请使用随附的
mingwvars.cmd
,或打开命令提示符(运行 - >cmd.exe)并键入set PATH = C:\path\to\mingw\bin;%PATH% code>。尝试
gcc -v
以查看是否可以找到它。 -
如
C:\ Qt
。 Doset QTPATH = C:\Qt
和set PATH = C:\Qt\bin;%PATH%
和cd C:\ Qt
,然后键入:
.. \Qt-source\configure -static
-
配置完成后,您必须键入
nmake
mingw32-make
。 -
去做其他事情,因为需要一段时间。
I used 4.7.2 for the past months. Now I downloaded 4.7.3. Now I am searching to type "configure -static". But I don't know where the hell "the qt path". Can anybody shed a light on this issue.
Download the source package here. Download and install your favorite perl distribution. I must warn you that Strawberry perl comes with its own toolchain and that may get used instead of the MinGW you downloaded. Use ActivePerl if you don't want any trouble, or build it yourself.
Unzip it to say,
C:\Qt-source
so that there is aconfigure.exe
inC:\Qt-source
Open the toolchain's command prompt
a) If you're using the Visual Studio compiler, search in the "start" menu for a CMD shortcut in the Visual Studio folder. The Windows SDK also has this shortcut.
b) If you're using MinGW, either use the accompanying
mingwvars.cmd
, or open a command prompt, (Run->"cmd.exe") and typeset PATH=C:\path\to\mingw\bin;%PATH%
. Trygcc -v
to see if it can be found.Make a build directory, preferable something like
C:\Qt
. Doset QTPATH=C:\Qt
andset PATH=C:\Qt\bin;%PATH%
andcd C:\Qt
, and type:..\Qt-source\configure -static
After configure finishes, you'll either have to type
nmake
(Visual Studio) ormingw32-make
.Go do something else, because it will take a while.
这篇关于Qt - 4.7.3 - 如何使静态构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!