Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QODBC deployment
Forum Updated to NodeBB v4.3 + New Features

QODBC deployment

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 422 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.
  • A Offline
    A Offline
    AlexQT 0
    wrote on last edited by
    #1

    I compile my QT Project under Windows. That deals with database MDB by mean of ODBC using drivers QODBC. I put resultive exe-file to other Windows. When I run it, it dosn't find QODBC or any other drivers and don't open Datadase.
    All used qt dll-s, used by project, including of course Qt5Sql.dll, are already put into one directory with exe-module. And such an approach solved privious problems with deployment.
    Microsoft Access is installed on aim computer and opens mdb-files correctly.
    What I must install more on new windows to make my program work correctly?!
    9e6d8ec5-06aa-467d-a491-c3b8b7baa311-image.png

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #2

      Hi, you also need to copy the subdirectory sqldrivers from the Qt plugins. Inside that directory only qsqlodbc.dll needs to be present.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        In addition to what @hskoglund, you can use windeployqt to help create all what's necessary for your application to run.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • A Offline
          A Offline
          AlexQT 0
          wrote on last edited by
          #4

          Some important addition: I tried to act "from opposite". I found all examples of qsqlodbc.dll on my developers platform, rename and even replaced them all. To my wonder, my program remained working correctly. If not qsqlodbc.dll, what can contain needed drivers?

          1 Reply Last reply
          0
          • hskoglundH Online
            hskoglundH Online
            hskoglund
            wrote on last edited by
            #5

            If you rename qsqlodbc.dll to something else like banana.jpg, Qt doesn't care, it loads all files regardless of what names they have in the subdirectory sqldrivers. You have to remove all files from that subdirectory.

            Also sometimes ODBC can trip you up with you supplying having a 64-bit driver for a 32-bit WIndows installation. Make sure you compile your program with a 32-bit compiler kit.

            1 Reply Last reply
            2

            • Login

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