[英]Can a project created with qmake be compiled without using qmake?
I have some source code that was built with qmake. 我有一些用qmake构建的源代码。 Compiling it is supposed to be done with
qmake qmakefile.pro
. 应该使用
qmake qmakefile.pro
。
I'd like to compile it without using qmake. 我想不使用qmake进行编译。 Is that even possible?
那有可能吗? What would the steps be?
将采取什么步骤?
Edit: Here's the .pro file . 编辑: 这是.pro文件 。
Yes, you can compile files without qmake
. 是的,您可以不使用
qmake
来编译文件。
You need to get any specific compiler settings from qmake
and convert them to the other compiler as necessary. 您需要从
qmake
获取任何特定的编译器设置,并根据需要将它们转换为其他编译器。
Or you can convert the contents of the qmake.pro
file into a makefile or your IDE's project settings. 或者,您可以将
qmake.pro
文件的内容转换为makefile或IDE的项目设置。
If the qmake.pro
is not a human readable text file, you will have to launch qmake
and retrieve the settings. 如果
qmake.pro
不是人类可读的文本文件,则必须启动qmake
并检索设置。 Otherwise search for a conversion tool. 否则,请搜索转换工具。
While it is technically possible to translate the .pro file into something else, I would not advise it. 虽然从技术上讲可以将.pro文件转换为其他文件,但我不建议这样做。
Why? 为什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.