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. Qt Oracle databbase plugin registration
Qt 6.11 is out! See what's new in the release blog

Qt Oracle databbase plugin registration

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 2.6k 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.
  • L Offline
    L Offline
    link2007
    wrote on last edited by
    #1

    Hello everyone :),

    I built the plug-in for oracle database and have been working very happily with my qt app and Oracle 10g XE.

    When the plug-in was built, the files qsqlocid4.dll and qsqlocid4.lib were created; and I simply copied these files to this location:

    C:\QtSDK\Desktop\Qt\4.7.4\msvc2008\plugins\sqldrivers; all works perfect.

    However I have a Qt and Oracle installation on other computer; I thought that it was only necessary to copy the *.lib and *.dll files to the plug-ins folder of the Qt installation in this new machine to make it work (it also has VS2008 installed, so the compiler that generated the plug-in is the same for both machines).

    Unfortunately when I execute my program, in this second machine, it tells me it can´t load the Oracle plugin...

    I think it is because I only copied the driver and not created it in this second machine and because of this, I suppose that in the process of creating the plugin, Qt enables it for future use or something.

    Is there a way I can register my already created plugin, so I don´t have to build it over and over in every machine that needs it?

    Thanks in advance.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      g76r
      wrote on last edited by
      #2

      Hi.

      You must package the main Qt DLL you are using (unless you are using a statically linked version of Qt), see this link:
      http://developer.qt.nokia.com/doc/qt-4.7/deployment-windows.html

      Then if you use Qt plugins (in your case you use at less one: the Oracle plugin), you will have to deploy a qt.conf file with reference to the directory in which you deploy the plugins libraries, see this link:
      http://developer.qt.nokia.com/doc/qt-4.7/qt-conf.html
      For instance you can use "." as "Prefix" and have a "plugins" directory next to the exe.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        link2007
        wrote on last edited by
        #3

        Thanks for your answer Greg.

        As I understand the links and references that you provide are for deploying Qt applications.

        My situation is that in the second machine I mention, I don´t want to deploy. What I want to do is re-compile my program in this machine, that's why I only copied the plug-in to:

        C:\QtSDK\Desktop\Qt\4.7.4\msvc2008\plugins\sqldrivers

        I hoped QtCreator was able to find them in that location but it didn't ...

        You think that the *.conf file can help me with this issue too?

        Thanks.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          g76r
          wrote on last edited by
          #4

          Sorry I did not understand your problem, I don't think qt.conf may help.

          1 Reply Last reply
          0

          • Login

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