Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt app with static odbc plugin can only work in the developer machine.
Forum Updated to NodeBB v4.3 + New Features

Qt app with static odbc plugin can only work in the developer machine.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    benkwan
    wrote on 10 Dec 2012, 02:09 last edited by
    #1

    I static built the Qt source codes with VS2010, the command is:
    configure.exe -platform win32-msvc2010 -opensource -debug-and-release -static -fast -qt-sql-sqlite -plugin-sql-sqlite -qt-sql-odbc -plugin-sql-odbc -qt-zlib -no-qt3support -webkit -nomake docs -nomake demos -nomake examples

    And i create an app which access the MS Access database. In My app's main.cpp, I add:
    #include <QtPlugin>
    Q_IMPORT_PLUGIN(qsqlodbc)

    In my app's project file, I add :
    QTPLUGIN += qsqlodbc

    then I build the app, it works. But when I copy the exe file and the *.mdb file to a customer PC, the app can execute, but fail to access the database, the error is :
    QSqlError(-1056, "QODBC3: Unable to connect", "[Microsoft][ODBC Microsoft Access Driver] Could not find installable ISAM.")

    Is there anybody has met this before?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      benkwan
      wrote on 10 Dec 2012, 03:37 last edited by
      #2

      It works, I just deployed the app in the place without write permission.

      1 Reply Last reply
      0

      1/2

      10 Dec 2012, 02:09

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved