Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-14582

"Unable to establish a database connection" in cachetable example (release only)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.0
    • Examples and Demos
    • None
    • MS Windows Vista
      MS Visual C++ Express 2008

      Hello,

      I have the problem with sql/cachetable example which is the part of QT SDK LGPL. I compiled it on Windows Vista + MS Visual C++ Express 2008. There is no problem with debug version, but I am trying to execute application located in release directory I get following error message: "Unable to establish a database connection. This example needs SQLite support. Please read the Qt SQL driver documentation for information how to build it."

      It is quite strange that it fails with release but works with debug.

      I compiled this via MS C++ CLI with following configure flags:
      -platform
      win32-msvc2008
      -plugin-sql-sqlite
      -qt-sql-sqlite
      -opensource
      -developer-build
      -debug-and-release
      -no-script
      -no-scripttools
      -no-webkit
      and then execute nmake.

      I use version 2010.05, but I also spotted this issue with 2010.04.

      I found out one workaround. When I use static flag, there is no problem with neither in debug nor release, but it is hdd consuming solution.

      Do you know how I can get rid of this issue? I think there is some bug in the makefiles.

      BR,
      Nalesnil

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            docteam Qt Documentation Team
            xebord Bartosz Janowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes