[英]Qt static library doesn't output any files after build
I create a new project and select Library->C++ Library . 我创建一个新项目,然后选择Library-> C ++ Library 。 then select Statically Linked Library and simply next other pages in wizard.
然后选择“ 静态链接库” ,然后选择向导中的其他下一页。 After this when i try to build this new project, no output files (like .a) are produced.
此后,当我尝试构建此新项目时,将不生成任何输出文件(如.a)。
This is my .pro file content: 这是我的.pro文件内容:
#-------------------------------------------------
#
# Project created by QtCreator 2015-11-23T03:48:12
#
#-------------------------------------------------
QT -= gui
TARGET = ssss
TEMPLATE = lib
CONFIG += staticlib
SOURCES += ssss.cpp
HEADERS += ssss.h
unix {
target.path = /usr/lib
INSTALLS += target
}
I am using Qt 5.4.2 and Qt Creator 3.4.1 我正在使用Qt 5.4.2和Qt Creator 3.4.1
In order to change the output path to a specific path use: 为了将输出路径更改为特定路径,请使用:
DESTDIR = /your/output/path/
for example if you want your output to be created in your current project directory use: 例如,如果要在当前项目目录中创建输出,请使用:
DESTDIR = $$PWD
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.