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. Compile Oracle 64 bit plugin on Windows 64 bit with Qt4.3
Forum Updated to NodeBB v4.3 + New Features

Compile Oracle 64 bit plugin on Windows 64 bit with Qt4.3

Scheduled Pinned Locked Moved General and Desktop
12 Posts 2 Posters 3.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.
  • M Offline
    M Offline
    mourad_bilog
    wrote on 17 Jan 2014, 14:57 last edited by
    #1

    Hello everyone,Compile Oracle 64 bit plugin on Windows 64 bit with Qt4.3

    I've an application which must connect to an Oracle database. It works well on Windows x32 bit. But recently, I've encoutred a problem with Oracle 11g 64 bit installed on Windows 64 bit and I'm receveing the error message "Driver not loaded".
    I've tried to compile a new qsqlOci plugin but I've some link errors like " error LNK2019: symbole externe non résolu _OCIDescriptorAlloc référencé dans la fonction "public: __thiscall QOCIRowId::QOCIRowId(struct OCIEnv *)" (??0QOCIRowId@@QAE@PAUOCIEnv@@@Z)"
    Note that I'm using Qt 4.3 with VS 2005
    Does anyone have an idea about this problem and can help me to resolve it ?
    Many thank in advance.
    Best regards.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 Jan 2014, 21:50 last edited by
      #2

      Hi,

      The loading failure can be because the Oracle dlls cannot be found, adjust the PATH environment variable in QtCreator's run panel and add the path to these dlls.

      The link failure might indicate a missing library to link to

      On a side, are you locked to this pretty old version of Qt ? The latest in the 4 edition is 4.8.5

      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
      0
      • M Offline
        M Offline
        mourad_bilog
        wrote on 20 Jan 2014, 06:59 last edited by
        #3

        Hi,

        Thanks for your reply.

        Exacetly, there are some dlls who are not found but I've added the Oracle bin to Environement Paths, I've added to oci.dll with to the Qt source plungins.

        I've tried a lot of manipulation but none have resolved the problem.

        For the Qt 4.3, it is our licenced Qt and it Works well until now :)

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 20 Jan 2014, 08:47 last edited by
          #4

          When you build your plugin you also need to give the path to the corresponding OCI lib files that might not be in the same folder as the dlls.

          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
          0
          • M Offline
            M Offline
            mourad_bilog
            wrote on 20 Jan 2014, 10:39 last edited by
            #5

            Of course I did that, I do like this "set LIB=%LIB%;c:\oracle\oci\lib\msvc"

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 20 Jan 2014, 12:10 last edited by
              #6

              Can you show me the steps you are using to build the plugin ?

              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
              0
              • M Offline
                M Offline
                mourad_bilog
                wrote on 20 Jan 2014, 13:41 last edited by
                #7

                I'm using the steps as follows in the Qt doc :

                set INCLUDE=%INCLUDE%;C:\Oracle11g\product\dbhome\OCI\include

                set LIB=%LIB%;C:\Oracle11g\product\dbhome\OCI\lib\MSVC

                cd %QTDIR%\src\plugins\sqldrivers\oci

                qmake -o Makefile oci.pro

                nmake

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 20 Jan 2014, 15:18 last edited by
                  #8

                  Strange… Looks correct. Does it also contain a VS2005 version of the library ?

                  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
                  0
                  • M Offline
                    M Offline
                    mourad_bilog
                    wrote on 20 Jan 2014, 16:32 last edited by
                    #9

                    .....i Haven't understund what do you mean...please can you explain more

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 20 Jan 2014, 16:52 last edited by
                      #10

                      Some enterprises have the good idea to provide their libs/dlls for various versions of Visual Studio. Is it the case here ? Or to you only have one lib file ?

                      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
                      0
                      • M Offline
                        M Offline
                        mourad_bilog
                        wrote on 21 Jan 2014, 07:45 last edited by
                        #11

                        .....No I've only one lib file

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 21 Jan 2014, 23:32 last edited by
                          #12

                          Then check whether it contains or not that missing symbol

                          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
                          0

                          1/12

                          17 Jan 2014, 14:57

                          • Login

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