How to get a Makefile from qmake

穿精又带淫゛_ 提交于 2020-01-11 04:38:05

问题


Given an x.pro file, how can I produce a makefile? Running qmake x.pro produces an x.pbproj directory without a Makefile.

Thanks

Edit: Adding info. about the pro file and platform. I am running this on Mac OS X (10.6). The same pro file used to produce a Makefile under OpenSUSE. Here is a snippet of the pro file:

TEMPLATE = lib
TARGET = x
DEPENDPATH +=
INCLUDEPATH +=
CONFIG += qt debug
QT = core network
# Input
LIBS += -lcryptopp
HEADERS += x.hpp
..... # rest of the header files

回答1:


I gues that you're using Mac OS X

qmake -spec macx-g++ x.pro on Mac OS X to generate Makefile

qmake x.pro on linux to generate Makefile (default behaviour)

qmake -spec win32-g++ x.pro on Windows to generate Makefile



来源:https://stackoverflow.com/questions/8571687/how-to-get-a-makefile-from-qmake

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!