I am trying to set icon for my Qt application following this link . When I run in release mode, this error appears:
No rule to make target 'release/projectname.o'/ Stop.
Here is my .pro
file:
#-------------------------------------------------
#
# Project created by QtCreator 2015-01-05T12:03:20
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = Muasaa
TEMPLATE = app
#CONFIG-=app_bundle
SOURCES += main.cpp\
mainwindow.cpp \
databasemanager.cpp
HEADERS += mainwindow.h \
databasemanager.h
FORMS += mainwindow.ui
QT += sql
OTHER_FILES +=
RESOURCES +=
RC_FILE = myapp.rc
Now I see a different error:
[release/qrc_myappicon.cpp] Error 1
What to do ?
This looks like build-time error. Are you sure you run in release mode? Maybe you only added
RC_FILE = myapp.rc
to debug section? Show me your .pro file here.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.