Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setup SUBDIRS template failed in QtCreator

The project is application(.pro) with a static library(.pro), so I am going to use TEMPLATE = SUBDIRS to manage it.

my workspace.pro

TEMPLATE = SUBDIRS
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

SUBDIRS += \
    MY_LIB \
    MY_APP1

MY_LIB.file=/Users/username/MYLIB/mylib.pro
MY_APP1.file=/Users/username/MYAPP/App1/App1.pro

The workspace.pro file is in /Users/username/MYAPP/ directory.

When I tried to build it, QtCreator gave error WARNING: Unable to generate output for: /Users/username/MYAPP/build-workspace_Qt_5_1_0_clang_64bit-Debug/Makefile [TEMPLATE SUBDIRS]

May I know how to solve it? and why it happen? Thanks.

like image 389
CCC Avatar asked Aug 23 '13 03:08

CCC


1 Answers

It should be TEMPLATE = subdirs, not SUBDIR.

like image 149
CCC Avatar answered Nov 15 '22 05:11

CCC