Results 1 to 11 of 11

Thread: QtWebKit: compiles/builds fine but I cannot execute (.dll missing)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    142
    Thanks
    24
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QtWebKit: compiles/builds fine but I cannot execute (.dll missing)

    hi,
    I am using Qt 4.7.0 (32 bit) but I didn't use Visual Studio at all. I am actually a really newbie to windows architecture and libraries. I followed the instructions and installed Qt with MinGw. Then I tried to transfer my project from linux to windows. I had some troubles to install Qwt and Qxt but in the end I did it. Qt seemed to build, compile and execute flawlessly. Now some part of my project has QtWebKit. The classes and functions appear to work too, the project compiles fine, but when I try to execute the program I get errors having some .dll missing. Do I have to install VS to make QtWebKit work?

    About the d dll's you are absolutely right, they are not necessary for the release mode. However when I try to execute the release .exe I get something like:
    _ZN11WebElement12appendInsideERK7QString ,.... was not found in the QtWebKit4.dll
    Then I copy the QtWebKit4.dll in the folder and I get the similar error:
    _Z11qWinAppInstv.. was not found in QtCore4.dll
    Then I copy the QtCore4.dll in the release folder and I get:
    ??0QPointF@@QAE@NN@Z could not be found in QtCore4.dll

    My imagination stopped there because I could get through it.
    What is the diagnosis? Is it my Qt/windows installation? or should I do something else like adding a environmental variable, adding something to the .pro file, etc,etc?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QtWebKit: compiles/builds fine but I cannot execute (.dll missing)

    Make sure you are copying the correct set of DLLs from your installation for deployment. If you are using the Qt SDK bundle then you want the files from:
    Qt Code:
    1. {SDKDIR}/qt/bin
    2. e.g.
    3. C:/Qt/2010.02.1/qt/bin
    To copy to clipboard, switch view to plain text mode 
    which have been built the bundled MingW compiler. The files from:
    Qt Code:
    1. {SDKDIR}/bin
    2. e.g.
    3. C:/Qt/2010.02.1/bin
    To copy to clipboard, switch view to plain text mode 
    were built with MSVC to provide the runtime for Qt Creator and you do not want these.

  3. #3
    Join Date
    Nov 2010
    Posts
    142
    Thanks
    24
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QtWebKit: compiles/builds fine but I cannot execute (.dll missing)

    well, indeed, these
    _ZN11WebElement12appendInsideERK7QString .dll errors,
    were because wrong path was set to the environmental variables. The right one is
    Qt Code:
    1. C:/Qt/2010.02.1/bin
    To copy to clipboard, switch view to plain text mode 
    I don't have any more dll missing messages, BUT,
    I get a general runtime error
    Qt Code:
    1. "This application has requested the Runtime to terminate it in an unusual way,bla,bla"
    To copy to clipboard, switch view to plain text mode 

    I copied all the dll it asked but stil does not work.

    phonon4.dll
    QtWebKit4.dll
    QtNetwork.dll
    Qt4Core4.dll
    QtGui4.dll


    The thing is that if I remove the QtWebKit and all its class/function instances from the program, the executables works as a charm,

    what is the problem?!

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QtWebKit: compiles/builds fine but I cannot execute (.dll missing)

    Did you read my last post?

  5. #5
    Join Date
    Nov 2010
    Posts
    142
    Thanks
    24
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QtWebKit: compiles/builds fine but I cannot execute (.dll missing)

    it was a stupid typo of me!
    I meant to write that I set the path to:
    Qt Code:
    1. C:/Qt/2010.02.1/qt/bin
    To copy to clipboard, switch view to plain text mode 
    I copied these .dll files everywhere around the project but I get the error message of my previous post.
    It seems like the copied.dlls are correct but something crashes the execution of the program(runtime error).

  6. #6
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QtWebKit: compiles/builds fine but I cannot execute (.dll missing)

    Whatever code you are removing to disable the program's use of WebKit obviously contains the problem then. Probably a NULL/dangling pointer or a reference to a variable that goes out of scope. If you cannot reproduce it in a debugger (you should be able to) then it is time to add bits of the functionality back in until the break reappears.

Similar Threads

  1. Qt 4.7.0 compiles all tools and examples, but they all crash on running
    By prophetofreason in forum Installation and Deployment
    Replies: 0
    Last Post: 13th October 2010, 16:32
  2. Replies: 6
    Last Post: 11th October 2010, 12:16
  3. Replies: 4
    Last Post: 22nd July 2010, 15:46
  4. [SOLVED] 64 bit compiles under Visual Studio 2005
    By drescherjm in forum Installation and Deployment
    Replies: 1
    Last Post: 27th May 2009, 17:32

Tags for this Thread

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.