11

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
  • Please provide some details in your question, like the text of the .pro file, and what platform it's on. – Clare Macrae Dec 20 '11 at 08:35
  • On Linux it produces a Makefile in the same location as it puts all *.o files by default. – cmannett85 Dec 20 '11 at 15:16
  • Updated the question with the text of the pro file along with the platform –  Dec 20 '11 at 20:42
  • For Qt5.13, a complete list of mkspecs can be found in each platform's (build toolchain's) mkspecs directory, e.g. Qt\Qt5.13.1\5.13.1\mingw73_64\mkspecs or Qt\Qt5.13.1\5.13.1\msvc2017_64\mkspecs. – StndFish Jan 24 '20 at 15:40

1 Answers1

22

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

Calvin1602
  • 9,413
  • 2
  • 44
  • 55
Kamil Klimek
  • 12,884
  • 2
  • 43
  • 58
  • Consider also setting the environment variable QMAKESPEC to macx-g++. That would save time. – macetw Jul 02 '16 at 03:15