April 13, 2011

fredaw fredaw
Lab Rat
1 posts

Installing Qt-built apps on Windows 7

 

Don’t know if this is the right forum – if “Installation” covers this. I have Qt version 4.7.0
on my Windows XP machine. I’ve configured and built it successfully, and build the examples.

Using Microsoft Visual Studio 2008, I can compile and run the Qt programs. When I use
Visual Studio to create a “setup and deployment” project (an installer), it works, and installs
the app on my machine. When I give the client using Windows 7 an installer, can’t successfully
install and run the app.

Message:
Activation context generation failed for “C:\Program\MyQtApp.exe”. Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture=“x86”,publicKeyToken=“xxxxxxxxxxxxxx”,type=“win32”,version=“9.0.21022.8” could not be found. Please use sxstrace.exe for detailed diagnosis

2 replies

April 13, 2011

florent.revelut florent.reve..
Lab Rat
103 posts

You need to redistribute visual 2008 runtime in addition to your application. And when distributing, you want to compile in release, so that end-user don’t have to deal with debug / release runtimes.

Simplest way : add the files found in

  1. C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT

to your installer and deploys them in the same folder as your app

April 13, 2011

Gerolf Gerolf
Area 51 Engineer
3213 posts

If you deliver, you must use release, as the debug dll of microsoft (msvcrt*) are not for distribution in debug version.

 Signature 

Nokia Certified Qt Specialist.
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

 
  ‹‹ How to make a Symbian sis file NOT to require 4.7.3 with Qt SDK 1.1 RC?      Qt configure & build problem using ubuntu 10.10 ››

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