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. Can't build QOCI driver
QtWS25 Last Chance

Can't build QOCI driver

Scheduled Pinned Locked Moved Solved General and Desktop
13 Posts 4 Posters 2.8k Views
  • 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.
  • O Offline
    O Offline
    OAmila
    wrote on last edited by
    #1

    When I try to connect my application with the Oracle database it gives an error saying
    "QOCI driver not loaded"
    So then I googled the error and found this answer in stackoverflow
    https://stackoverflow.com/questions/29508725/qt-connect-to-oracle-database-on-windows
    I followed every step in that answer but in the 5th step when I try to run command qmake oci.pro
    it gives an error like this
    0_1531732215807_6bfe35d9-0c86-4f5f-846c-d510e4243c93-image.png
    how can I solve this???

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi
      Check that
      set INCLUDE=%INCLUDE%;c:\app\user\product[version]\client_1\oci\include
      set LIB=%LIB%;c:\app\user\product[version]\client_1\oci\lib\msvc
      is 100% correct.
      paste the path part to explore and see it can open location.

      1 Reply Last reply
      4
      • O Offline
        O Offline
        OAmila
        wrote on last edited by
        #3

        @mrjj said in Can't build QOCI driver:

        c:\app\user\product[version]\client_1\oci\include

        Yes I have set both paths

        mrjjM 1 Reply Last reply
        0
        • O OAmila

          @mrjj said in Can't build QOCI driver:

          c:\app\user\product[version]\client_1\oci\include

          Yes I have set both paths

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @OAmila
          and check they are correct ? exists and can be opened?

          O 1 Reply Last reply
          0
          • mrjjM mrjj

            @OAmila
            and check they are correct ? exists and can be opened?

            O Offline
            O Offline
            OAmila
            wrote on last edited by
            #5

            @mrjj
            yes they are, when I tried this step using qt 5.20.0 it worked, but an error came in the next step where I had to run the command nmake

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

              Hi,

              The instructions for building the SQL modules have changed. See Qt's documentation about the OCI driver.

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

              O 1 Reply Last reply
              2
              • SGaistS SGaist

                Hi,

                The instructions for building the SQL modules have changed. See Qt's documentation about the OCI driver.

                O Offline
                O Offline
                OAmila
                wrote on last edited by OAmila
                #7

                @SGaist

                Thanks for pointing out the mistake, Now the qmake command runs without error, but when I run the nmake /oci command it prints many lines on the command prompt but nothing happens.

                0_1531911586523_bad97860-2b5b-4337-8013-a51b790de2d9-image.png

                aha_1980A 1 Reply Last reply
                0
                • O OAmila

                  @SGaist

                  Thanks for pointing out the mistake, Now the qmake command runs without error, but when I run the nmake /oci command it prints many lines on the command prompt but nothing happens.

                  0_1531911586523_bad97860-2b5b-4337-8013-a51b790de2d9-image.png

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @OAmila you have a MinGW command prompt and want to use the MSVC compiler?! that cannot work...

                  Qt has to stay free or it will die.

                  O 1 Reply Last reply
                  2
                  • aha_1980A aha_1980

                    @OAmila you have a MinGW command prompt and want to use the MSVC compiler?! that cannot work...

                    O Offline
                    O Offline
                    OAmila
                    wrote on last edited by
                    #9

                    @aha_1980 thanks for helping, when I use mingw32-make it gives following error
                    0_1531972361026_410ba27e-029d-449a-8115-0f37aba634f4-image.png

                    aha_1980A 1 Reply Last reply
                    0
                    • O OAmila

                      @aha_1980 thanks for helping, when I use mingw32-make it gives following error
                      0_1531972361026_410ba27e-029d-449a-8115-0f37aba634f4-image.png

                      aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      hi @OAmila,

                      just read the big warning message. MinGW seems not supported with Oracle.

                      Sorry

                      Qt has to stay free or it will die.

                      O 1 Reply Last reply
                      1
                      • aha_1980A aha_1980

                        hi @OAmila,

                        just read the big warning message. MinGW seems not supported with Oracle.

                        Sorry

                        O Offline
                        O Offline
                        OAmila
                        wrote on last edited by
                        #11

                        @aha_1980 So does that mean I can't connect my Qt application with an Oracle database? will I be able to do it if I use an older Qt version. Why don't they include it in the documentation :( :( I already spent around a week resolving this, anyway thanks a lot for helping

                        aha_1980A 1 Reply Last reply
                        0
                        • O OAmila

                          @aha_1980 So does that mean I can't connect my Qt application with an Oracle database? will I be able to do it if I use an older Qt version. Why don't they include it in the documentation :( :( I already spent around a week resolving this, anyway thanks a lot for helping

                          aha_1980A Offline
                          aha_1980A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @OAmila

                          It means, that it does not work with MinGW - you can ask Oracle to better support that compiler.

                          But it seems you can use the MSVC compiler with a suitable Qt for your app.

                          Regards

                          Qt has to stay free or it will die.

                          O 1 Reply Last reply
                          3
                          • aha_1980A aha_1980

                            @OAmila

                            It means, that it does not work with MinGW - you can ask Oracle to better support that compiler.

                            But it seems you can use the MSVC compiler with a suitable Qt for your app.

                            Regards

                            O Offline
                            O Offline
                            OAmila
                            wrote on last edited by
                            #13

                            @aha_1980 Ok thanks a lot for helping
                            Regards,

                            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