Problems Compiling QML app in Visual Studio

Page  
2

December 6, 2010

kyleplattner kyleplattner
Lab Rat
242 posts

All of my QML files are in the same directory as my main.cpp along with the release and debug folders.

December 6, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

kyleplattner, place them in one folder with .exe.

December 6, 2010

kyleplattner kyleplattner
Lab Rat
242 posts

Dennis, I followed your advice and it worked. Everything is in the same folder and it runs. Now how can I send the .exe off to management and get it to run on their machines.

December 6, 2010

Volker Volker
Ant Farmer
5428 posts

Or, better, embed it in a resource file (.qrc).

December 6, 2010

kyleplattner kyleplattner
Lab Rat
242 posts

How do I embed it in a .qrc, what will that do for me?

December 6, 2010

Volker Volker
Ant Farmer
5428 posts
kyleplattner wrote:
Dennis, I followed your advice and it worked. Everything is in the same folder and it runs. Now how can I send the .exe off to management and get it to run on their machines.

Unfortunately, this might not work on non-development machines. It could be that the C/C++ runtimes for your particular version of Visual Studio must be installed on the client’s computer. If you have to install it depends, if it was previously installed by some other software or not. Anyways, it does not harm, if you run that vcredist_x86.exe again, it does not install the libs twice.

December 6, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

If you will have qml files in resource then you will not need to copy them with your exe, they will be inside it.

December 6, 2010

kyleplattner kyleplattner
Lab Rat
242 posts

How can I package everything up into an installer. What is the easiest way to do this?

December 6, 2010

Volker Volker
Ant Farmer
5428 posts
kyleplattner wrote:
How do I embed it in a .qrc, what will that do for me?

A .qrc file is a Qt resource. It’s a means of embedding various kinds of resources (images/icons, sounds, your qml, etc.) into your application exe. In that way you need not ship all that little files on their own.

Have a look at http://doc.qt.nokia.com/latest/resources.html for an introduction on how to use it. As far as I know the visual studio add in support resources.

December 6, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

You can simply push all needed libraries (together with msvc ones) in zip file and send it to your management. If you need installer then you can use something like BitRock tool to create one.

December 6, 2010

Volker Volker
Ant Farmer
5428 posts
kyleplattner wrote:
How can I package everything up into an installer. What is the easiest way to do this?

There is an overview page on Building Qt Installers [developer.qt.nokia.com] in the wiki. Good starting point.

I personally use InnoSetup for Windows.

Page  
2

  ‹‹ How to Achieve Scrolling marquee using qml      [solved] QML app asks for internet connection on maemo device ››

You must log in to post a reply. Not a member yet? Register here!