Results 1 to 8 of 8

Thread: deployment problem: msvc++ 2008 Express, Qt 4.4.3

  1. #1
    Join Date
    Apr 2007
    Location
    Rakovnik, Czech Republic
    Posts
    175
    Thanks
    43
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default deployment problem: msvc++ 2008 Express, Qt 4.4.3

    I recently got a new laptop and upgraded to MSVC++ 2008 Express and Qt 4.4.3. I built Qt using this same MSVC++ 2008. I'm experiencing a deployment problem, however, that I didn't have with Qt 4.1.x and msvc++ 2005 Express... that I hope someone can help me with.

    I'm doing the open source/shared libraries route. I've followed the instructions here:

    http://doc.trolltech.com/4.2/deploym...ared-libraries

    with the "hellogl" program. My deployment directory contains:

    hellogl.exe
    hellogl.intermediate.manifest
    Microsoft.VC90.CRT.manifest
    msvcm90.dll
    msvcp90.dll
    msvcr90.dll
    QtCore4.dll
    QtGui4.dll
    QtOpenGL4.dll

    This is how I pretty much did stuff before, without problem. There are 2 differences between this deployment directory and my old ones:

    the microsoft stuff is all "90" instead of "80" (as expected: express 2008 is also called msvc 9.0)

    and

    the executable manifest file is now named: "hellogl.intermediate.manifest" instead of "hellogl.exe.manifest". I'm not sure why this is the case, but this seems to be the way either Qt or msvc++ 2008 names them now.

    Anyway, when I copy the deployment directory to another computer (without Qt/MSVC++ installed) and double-click "hellogl.exe", it get the following error message:

    C:\hellogl\hellogl.exe This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.


    When I open it in dependency walker on this deployment computer, an error message pops up:

    Dependency Walker Errors were detected when processing c:\hellogl\hellogl.exe". See the log for details.

    There are 4 errors:

    "Error: The Side-by-Side configuration information for "c:\hellogl\hellogl.exe" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (140001)." (see "hellogl_on_deployed.png")

    this same error is given for:

    qtopengl4.dll
    qtgui4.dll
    qtcore4.dll

    By the way, if I open *just* the qtcore4.dll in dependency walker, I get the same error message for just that DLL. However, if I open the qtcore4.dll that I built a 18 months ago (qt 4.1.1, i think) with msvc++ 2005, I don't get this error.

    Any ideas? When i built Qt 4.4.3 last week, everything built ok. If I open qtcore4.dll in dependency walker on my development computer, I think it's ok (see "qtcore4_on_devel_computer.png"). There's a DWMAPI.DLL error, but I think that should not be a problem.
    Attached Images Attached Images

  2. #2
    Join Date
    Oct 2008
    Posts
    70
    Thanks
    1
    Thanked 9 Times in 9 Posts

    Default Re: deployment problem: msvc++ 2008 Express, Qt 4.4.3

    What OS (XP, Vista, etc) are you using on "development" and "another" machines?

  3. #3
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    33
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: deployment problem: msvc++ 2008 Express, Qt 4.4.3

    Did u check the manifest file ' Microsoft.VC90.CRT.manifest'
    make sure all the 8's are 9 for the new version.

  4. #4
    Join Date
    Apr 2007
    Location
    Rakovnik, Czech Republic
    Posts
    175
    Thanks
    43
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: deployment problem: msvc++ 2008 Express, Qt 4.4.3

    Quote Originally Posted by pastor View Post
    What OS (XP, Vista, etc) are you using on "development" and "another" machines?
    my bad: winXP all around, 32-bit.

    Though I built/tested my older (msvc++ 2005 Express) projects on XP, a couple folks ran them on Vista with no problem.

  5. #5
    Join Date
    Apr 2007
    Location
    Rakovnik, Czech Republic
    Posts
    175
    Thanks
    43
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: deployment problem: msvc++ 2008 Express, Qt 4.4.3

    Quote Originally Posted by kingslee View Post
    Did u check the manifest file ' Microsoft.VC90.CRT.manifest'
    make sure all the 8's are 9 for the new version.
    As far as I can tell, not a problem:

    <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" version="9.0.30729.1" processorArchitecture="x86" etc...
    <file name="msvcr90.dll" hashalg="SHA1" etc...

  6. #6
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    33
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: deployment problem: msvc++ 2008 Express, Qt 4.4.3

    Because .. I too had the same problem some time back ..
    But i had the wrong version of visual studio in the manifest, intermediate and embedded manifest file.

    So do check the visual studio correct complete version number.

  7. #7
    Join Date
    Apr 2007
    Location
    Rakovnik, Czech Republic
    Posts
    175
    Thanks
    43
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: deployment problem: msvc++ 2008 Express, Qt 4.4.3

    Quote Originally Posted by kingslee View Post
    Because .. I too had the same problem some time back ..
    But i had the wrong version of visual studio in the manifest, intermediate and embedded manifest file.

    So do check the visual studio correct complete version number.
    this checks out correct: when I do

    Help | About Visual C++ Express Edition


    the version # is the same as in the manifest, above. Any other ideas?

  8. #8
    Join Date
    Apr 2007
    Location
    Rakovnik, Czech Republic
    Posts
    175
    Thanks
    43
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: deployment problem: msvc++ 2008 Express, Qt 4.4.3

    note: if I copy two different versions of the QtCore4.dll I built into a directory with just those 2 DLLs:

    QtCore4.4.dll (msvc++ 2008)
    QtCore4.1.dll (msvc++ 2005)

    and run them through Dependency Walker, I get the following expected error message with both:

    Error: at least one required implicit or forwarded dependency was not found.

    BUT with the one built recently with 2008, I get the additional error message:

    Error: The Side-by-Side configuration information for "c:\qtcoreTest\QTCORE4.4.dll" contains errors. This application has failed to start..."

    Is there thus a problem with my Qt*.dll's???

Similar Threads

  1. Qt 4.4 OSE and MSVC 2008 problem
    By The Storm in forum Installation and Deployment
    Replies: 1
    Last Post: 26th June 2008, 22:55
  2. Problem installing Qt 4.2.3 with MSVC 2005 express edition
    By jjhenjj in forum Installation and Deployment
    Replies: 8
    Last Post: 12th July 2007, 13:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.