[Interest] Deploy Qt on windows with relative paths
Igor Mironchik
igor.mironchik at gmail.com
Tue Jan 19 19:00:17 CET 2016
On Windows you can try to set up working directory in the shortcut...
On 19.01.2016 20:56, Denis Shienkov wrote:
> Hi all.
>
> I want to launch my QML application, based on Qt 5.x, QtQuick 2 with
> following deployment tree:
>
> deploy
> |-> deploy-qt-runtime
> |-> deploy-my-app
>
> where
>
> 1) "deploy-qt-runtime" directory contains all required stuff, which is got
> by means of 'windeployqt.exe' (where I pass the --qmldir to my QML
> source files of application).
>
> 2) "deploy-my-app" contains my executable file
>
> I want to launch my application from the "deploy-my-app" directory by
> means of
> console. But it does nothing, and I got following error from console:
>
> "module "QtQuick" is not installed"
>
> it is strange, because I use QtQuick 2.0!
>
> I tried dofferent ways to launch my application:
>
> 1) Using qt.conf file
>
> [Paths]
> plugins = ../deploy-qt-runtime
> imports = ../deploy-qt-runtime
> bin = ../deploy-qt-runtime
> libexec = ../deploy-qt-runtime
> qml = ../deploy-qt-runtime
> translations = ../deploy-qt-runtime/translations
>
> 2) Using env variables:
>
> set QT_RUNTIME_DR=..\deploy-qt-runtime
> set QT_PLUGIN_PATH=%QT_RUNTIME_DR%
> set PATH=%QT_RUNTIME_DR%;%PATH%
>
> start my-app.exe
>
> but it is unsuccessfully!
>
> BUT: when I copy my executable file into "deploy-qt-runtime" directory,
> all works fine!!!
>
> Note: I do not want mixing my aplication with qt-runtime resources.
>
> So, is it possible to launch application with this "relative" way?
>
> BR,
> Denis
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160119/0110b7dd/attachment.html>
More information about the Interest
mailing list