D
D
Dmitry Kamaev2015-07-17 11:39:36
Qt
Dmitry Kamaev, 2015-07-17 11:39:36

How to build Qt project with Release libraries via console?

You need to build a Qt project with Release libraries.
I do

qmake ..\dir_name\file_name.pro
mingw32-make

The project is built, but with Debug libraries:
mingw32-make[1]: Leaving directory 'C:/Users/ozd_000/Documents/pos_driver/driver
s'
cd http_core\ && c:\Qt\4.8.6\bin\qmake c:\Users\ozd_000\Documents\upos_daemon \ht
tp_core\http_core.pro -o Makefile
cd http_core\ && mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'C:/Users/ozd_000/Documents/pos_driver/http_core
'
mingw32-make -f Makefile .Debug
mingw32-make[2]: Entering directory 'C:/Users/ozd_000/Documents/pos_driver/http_core
'

Where exactly do you need to specify what you need to build with Release libraries? Through Qt Creator, Release is perfectly assembled, but for some reason it hooks up the QtGui4.dll library, so I collect it through the console.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kamaev, 2015-07-17
@Kamaed

Problem solved. You just need to start compilation with the release parameter
mingw32-make release

V
Vladimir Martyanov, 2015-07-17
@vilgeforce

CONFIG += release в .pro?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question