Build project including all libs
-
Hi,
What do you mean by include all lib and files ?
-
That's what windeployqt is for.
-
You can add this to your pro file to run it automatically
https://stackoverflow.com/questions/6771039/automatic-copy-of-dependent-files-in-qt-creator -
@VRonin Great thanks it's a begining lol
Could you explain me litle bit more how to use that?
DLLDESTDIR = ../../myproject/bin (... some dir's struct ...)
QMAKE_POST_LINK = windeployqt --compiler-runtime $$DLLDESTDIR
DLLDESTDIR -- full path with file name TARGET (dll and exe).
I don't really see what I have to complete or replace in that..
Sorry I'm litle bit stupid lol
-
You chose the only answer with negative votes, I was referring to:
isEmpty(TARGET_EXT) { win32 { TARGET_CUSTOM_EXT = .exe } macx { TARGET_CUSTOM_EXT = .app } } else { TARGET_CUSTOM_EXT = $${TARGET_EXT} } win32 { DEPLOY_COMMAND = windeployqt } macx { DEPLOY_COMMAND = macdeployqt } CONFIG( debug, debug|release ) { # debug DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/debug/$${TARGET}$${TARGET_CUSTOM_EXT})) } else { # release DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/release/$${TARGET}$${TARGET_CUSTOM_EXT})) } # # Uncomment the following line to help debug the deploy command when running qmake # warning($${DEPLOY_COMMAND} $${DEPLOY_TARGET}) # Use += instead of = if you use multiple QMAKE_POST_LINKs QMAKE_POST_LINK = $${DEPLOY_COMMAND} $${DEPLOY_TARGET}
-
-
@VRonin here my original pro file:
TEMPLATE = app QT += qml quick widgets CONFIG += c++11 HEADERS += \ radialbar.h SOURCES += main.cpp\ radialbar.cpp RESOURCES += qml.qrc \ ../shared/shared.qrc # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = # The following define makes your compiler emit warnings if you use # any feature of Qt which as been marked deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target
What do you mean with Did you rmember to build->re-run qmake?
Thank very much again for your help!!
-
@filipdns said in Build project including all libs:
What do you mean with Did you rmember to build->re-run qmake?
You need to rerun qmake each time you change pro file. Go to "Build/Run qmake" menu.