Results 1 to 6 of 6

Thread: Application seems not to be linked statically

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Application seems not to be linked statically

    Hi,
    my little application does not seem to be "completely" statically linked, although I configured it to be linked statically (the *.pro file is attached).

    I am using Qt-4.3.4 (opensource) under Windows XP, with MS Visual Studio 2005 Pro Edition (SP1 is installed).
    I used qmake to generate project files for Visual Studio, which worked fine. I can compile and debug in VS, or alternatively in the console with nmake.

    When taking the executable to another PC (no VS and no Qt installed) I get the error message (I apologize for the german language, but the message is displayed in german ): "Diese Anwendung konnte nicht gestartet werden, weil die Andwendungskonfiguration nicht korrekt ist. Zur Problembehandlung sollten Sie die Anwendung neu installieren."

    When using the Dependency Walker (http://www.dependencywalker.com/ A fine tool, by the way), it tells me the app is missing the following dll files: msvcp80d.dll and msvcr80d.dll. So I copied the files to the same directory as the exe.
    But there is somthing wrong with a third dll: mpr.dll. It is not missing, but an exported function does not seem to be in the dll.

    Anyway, I always though, that linking statically makes the exe independent of installed dlls (yes, I read the Wiki articles about building static Qt and building static apps).
    What is wrong with my application or build process?
    Attached Files Attached Files

Similar Threads

  1. Please Help-->have few doubts with Static build in Windows !
    By Krish in forum Installation and Deployment
    Replies: 1
    Last Post: 17th March 2008, 14:37
  2. Statically linked QtSql modules
    By runderwo in forum Qt Programming
    Replies: 5
    Last Post: 10th September 2007, 22:43
  3. Replies: 1
    Last Post: 18th April 2007, 20:48
  4. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52
  5. statically linked executable
    By smalls in forum Qt Programming
    Replies: 8
    Last Post: 11th February 2006, 02:09

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.