Results 1 to 3 of 3

Thread: generating Visual Studio 2008 project files won't run, missing QtSqld4.dll

  1. #1
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Question generating Visual Studio 2008 project files won't run, missing QtSqld4.dll

    I started my project out in Visual Studio 2008 using Qt4 Visual Studio Add-in 1.1.4. I forgot to add support for OpenGL, so I just generated a pro file, tweaked it, and ran 'qmake -t vcapp <project>' to generate a new VS2008 project file.

    Everything compiles fine, but when I go to run it, I get an error about missing QtSqld4.dll.

    Here is my pro file:

    TEMPLATE = app
    TARGET = ImgCapture2
    QT += core gui sql opengl
    CONFIG += debug
    DEFINES += QT_LARGEFILE_SUPPORT QT_SQL_LIB _WINDOWS
    INCLUDEPATH += ./GeneratedFiles .
    LIBS += -lWinmm -lopengl32 -lglu32
    PRECOMPILED_HEADER = StdAfx.h
    DEPENDPATH += .
    UI_DIR += ./GeneratedFiles
    RCC_DIR += ./GeneratedFiles

    win32:RC_FILE = ImgCapture2.rc

    CONFIG(debug, debug|release) {
    OBJECTS_DIR += debug
    DESTDIR = ../Debug
    MOC_DIR += ./GeneratedFiles/debug
    INCLUDEPATH += ./GeneratedFiles/Debug
    } else {
    OBJECTS_DIR += release
    DESTDIR = ../Release
    MOC_DIR += ./GeneratedFiles/Release
    INCLUDEPATH += ./GeneratedFiles/Release
    }

    include(ImgCapture2.pri)

  2. #2
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: generating Visual Studio 2008 project files won't run, missing QtSqld4.dll

    don't know how I fixed it, but this pro file seems to work:

    # ----------------------------------------------------
    # This file is generated by the Qt Visual Studio Add-in.
    # ------------------------------------------------------

    TEMPLATE = vcapp
    TARGET = ImgCapture2
    QT += sql opengl
    CONFIG += debug_and_release
    DEFINES += QT_LARGEFILE_SUPPORT QT_SQL_LIB _WINDOWS
    QTPLUGIN += qjpeg qtiff
    INCLUDEPATH += ./GeneratedFiles .
    LIBS += -lopengl32 -lglu32
    PRECOMPILED_HEADER = StdAfx.h
    DEPENDPATH += .
    UI_DIR += ./GeneratedFiles
    RCC_DIR += ./GeneratedFiles

    win32:RC_FILE = ImgCapture2.rc

    CONFIG(debug, debug|release) {
    DESTDIR = ../Debug
    LIBS += -L../Debug
    OBJECTS_DIR += Debug
    MOC_DIR += ./GeneratedFiles/Debug
    INCLUDEPATH += ./GeneratedFiles/Debug
    } else {
    DESTDIR = ../Release
    LIBS += -L../Release
    OBJECTS_DIR += Release
    MOC_DIR += ./GeneratedFiles/Release
    INCLUDEPATH += ./GeneratedFiles/Release
    }

    include(ImgCapture2.pri)

  3. #3
    Join Date
    Jun 2010
    Location
    Cincinnati, Ohio, USA
    Posts
    92
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: generating Visual Studio 2008 project files won't run, missing QtSqld4.dll

    side note: I got a lot more Qt warning with the new project then I did with the old one, the big one is warning that variables where not being used, I got some other warnings, too. I fixed them all, fore I hate warning. The question is:

    Why didn't I get the warnings with the project file generated by the add in?

Similar Threads

  1. Replies: 8
    Last Post: 28th October 2013, 02:08
  2. Can't create project in Visual Studio 2008 After Qt Upgrade
    By Tamerz in forum Installation and Deployment
    Replies: 4
    Last Post: 5th May 2010, 18:37
  3. Visual Studio 2008 and Qt
    By konx in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd January 2010, 22:24
  4. How to use Qt with Visual Studio 2008?
    By N3wb in forum Installation and Deployment
    Replies: 2
    Last Post: 13th August 2009, 17:23
  5. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 22:05

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.