qtbuildexe

Build program with QT 5.0.2 on Windows


I want to build my program(developed with QT 5.0.2) and give it to some friends.

How can I process?

I tried qmake -project and qmake in my folder with the *.cpp files, but it didn't create any exe.

This is my .pro file

#-------------------------------------------------
#
# Project created by QtCreator 2013-08-03T18:53:41
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = target
TEMPLATE = app


SOURCES += main.cpp\
        class1.cpp\
        class2.cpp\
        class3.cpp\
        class4.cpp

HEADERS  += class1.h\
            class2.h\
            class3.h\
            class4.h

FORMS    += class1.ui\
            class3.ui

Solution

  • Tutorial for building project on Windows