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. How to build Oracle driver - Windows with MinGW-ERROR
Forum Updated to NodeBB v4.3 + New Features

How to build Oracle driver - Windows with MinGW-ERROR

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 3 Posters 7.1k Views 3 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.
  • J Offline
    J Offline
    jacekkozik
    wrote on 9 Jan 2017, 08:55 last edited by jacekkozik 1 Sept 2017, 09:12
    #1

    At the start, I want to apologize for my english.

    I have installed: qt 5.7.1 mingw on windows 10.
    I downloaded instantclient from oracle page: instantclient-sdk-win32-10.2.0.5 and I unpacked to C:\app\instantclient_10_2

    set INCLUDE=%INCLUDE%;C:\app\instantclient_10_2\sdk\include
    set LIB=%LIB%;C:\app\instantclient_10_2\sdk\lib\msvc
    cd %QTDIR%\src\plugins\sqldrivers\oci
    qmake oci.pro
    mingw32-make
    

    I get the message:

    C:\Qt\Qt5.7.1\5.7\Src\qtbase\src\plugins\sqldrivers\oci>mingw32-make
    mingw32-make -f Makefile.Release all
    mingw32-make[1]: Entering directory 'C:/Qt/Qt5.7.1/5.7/Src/qtbase/src/plugins/sqldrivers/oci'
    g++ -Wl,-s -shared -Wl,-subsystem,windows -Wl,--out-implib,C:\Qt\Qt5.7.1\5.7\Src\qtbase\plugins\sqldrivers\libqsqloci.a -o ..\..\..\..\plugins\sqldrivers\qsqloci.dll .obj/release/main.o .obj/release/qsql_oci.o .obj/release/moc_qsql_oci_p.o  -loci -LC:\Qt\Qt5.7.1\5.7\mingw53_32\lib C:\Qt\Qt5.7.1\5.7\mingw53_32\lib\libQt5Sql.a C:\Qt\Qt5.7.1\5.7\mingw53_32\lib\libQt5Core.a -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib .obj\release\qsqloci_resource_res.o
    C:/Qt/Qt5.7.1/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -loci
    collect2.exe: error: ld returned 1 exit status
    Makefile.Release:65: recipe for target '..\..\..\..\plugins\sqldrivers\qsqloci.dll' failed
    mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqloci.dll] Error 1
    mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.7.1/5.7/Src/qtbase/src/plugins/sqldrivers/oci'
    Makefile:38: recipe for target 'release-all' failed
    mingw32-make: *** [release-all] Error 2
    

    Please help, I don't know what I'm doing wrong It

    R 1 Reply Last reply 9 Jan 2017, 09:51
    0
    • J jacekkozik
      9 Jan 2017, 08:55

      At the start, I want to apologize for my english.

      I have installed: qt 5.7.1 mingw on windows 10.
      I downloaded instantclient from oracle page: instantclient-sdk-win32-10.2.0.5 and I unpacked to C:\app\instantclient_10_2

      set INCLUDE=%INCLUDE%;C:\app\instantclient_10_2\sdk\include
      set LIB=%LIB%;C:\app\instantclient_10_2\sdk\lib\msvc
      cd %QTDIR%\src\plugins\sqldrivers\oci
      qmake oci.pro
      mingw32-make
      

      I get the message:

      C:\Qt\Qt5.7.1\5.7\Src\qtbase\src\plugins\sqldrivers\oci>mingw32-make
      mingw32-make -f Makefile.Release all
      mingw32-make[1]: Entering directory 'C:/Qt/Qt5.7.1/5.7/Src/qtbase/src/plugins/sqldrivers/oci'
      g++ -Wl,-s -shared -Wl,-subsystem,windows -Wl,--out-implib,C:\Qt\Qt5.7.1\5.7\Src\qtbase\plugins\sqldrivers\libqsqloci.a -o ..\..\..\..\plugins\sqldrivers\qsqloci.dll .obj/release/main.o .obj/release/qsql_oci.o .obj/release/moc_qsql_oci_p.o  -loci -LC:\Qt\Qt5.7.1\5.7\mingw53_32\lib C:\Qt\Qt5.7.1\5.7\mingw53_32\lib\libQt5Sql.a C:\Qt\Qt5.7.1\5.7\mingw53_32\lib\libQt5Core.a -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib .obj\release\qsqloci_resource_res.o
      C:/Qt/Qt5.7.1/Tools/mingw530_32/bin/../lib/gcc/i686-w64-mingw32/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -loci
      collect2.exe: error: ld returned 1 exit status
      Makefile.Release:65: recipe for target '..\..\..\..\plugins\sqldrivers\qsqloci.dll' failed
      mingw32-make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqloci.dll] Error 1
      mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.7.1/5.7/Src/qtbase/src/plugins/sqldrivers/oci'
      Makefile:38: recipe for target 'release-all' failed
      mingw32-make: *** [release-all] Error 2
      

      Please help, I don't know what I'm doing wrong It

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 9 Jan 2017, 09:51 last edited by raven-worx 1 Sept 2017, 11:34
      #2

      @jacekkozik said in How to build Oracle driver - Windows with MinGW-ERROR:

      ld.exe: cannot find -loci

      Your issue is that the linker can't find the Oracle lib you must link against.
      You provided the mysql and psql paths (-LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib), but not the oci lib path?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      2
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 9 Jan 2017, 12:29 last edited by
        #3

        Hi,

        To add to @raven-worx, you are using a MinGW version of Qt while you are pointing to a MSVC build in your instant client_10_2 SDK.

        That won't work, you can't mix and match compilers like that on Windows when using C++ libraries.

        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
        • J Offline
          J Offline
          jacekkozik
          wrote on 10 Jan 2017, 17:38 last edited by jacekkozik 1 Oct 2017, 17:47
          #4

          Thank you for the quick reply.
          Raven-worx, My mistake, but I corrected makefile and is still a problem.
          SGaist you're right, but I've always used the version of MinGW. In Qt msvc I have error. When I compile, I get this message:

          In Polish

          Błąd budowania / instalowania projektu nienazwany (zestaw narzędzi: Desktop Qt 5.7.1 MSVC2015 32bit)
          Podczas wykonywania kroku "qmake"
          

          English translation:

          Error building / installing project unnamed (Toolkit: Qt 5.7.1 Desktop MSVC2015 32bit)
          When performing step "qmake"
          

          Do I need to install Microsoft Visual Studio Community 2015 and configure it on the QT?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 10 Jan 2017, 21:15 last edited by
            #5

            If you want to use the MSVC version of the driver then yes, you have to install the VS2015 C++ compiler, You don't need to install the whole Visual Studio stuff, they have now a separate package for the build tools.

            Note that you should also check which version of VS was used to build the Oracle driver, you must ensure all matches. Microsoft VS compilers are not compatible one with the other.

            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
            • J Offline
              J Offline
              jacekkozik
              wrote on 13 Jan 2017, 21:56 last edited by jacekkozik
              #6

              It worked, QT compiles and runs applications :)
              But after running nmake:

              C:\Qt\Qt5.7.1\5.7\Src\qtbase\src\plugins\sqldrivers\oci>nmake
              
              Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
              Copyright (C) Microsoft Corporation.  All rights reserved.
              
                      "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" -f Makefile.Release all
              
              Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
              Copyright (C) Microsoft Corporation.  All rights reserved.
              
                      rc -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DNDEBUG -D_W
              INDLL -fo .obj\release\qsqloci_resource.res qsqloci_resource.rc
              Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
              Copyright (C) Microsoft Corporation.  All rights reserved.
              
              qsqloci_resource.rc(4) : fatal error RC1015: cannot open include file 'windows.h'.
              NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\rc.EXE"' : return code '0x1'
              Stop.
              NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
              Stop.
              

              windosw.h is in C:\Program Files (x86)\Windows Kits\8.1\Include\um, I added in Makefile.Debug and Makefile.Release to INCPATH C:\Program Files (x86)\Windows Kits\8.1\Include and has not changed.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 13 Jan 2017, 21:59 last edited by
                #7

                How did you setup your command line ?

                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
                • J Offline
                  J Offline
                  jacekkozik
                  wrote on 15 Jan 2017, 21:50 last edited by
                  #8
                  set INCLUDE=%INCLUDE%;C:\app\instantclient_10_2\sdk\include
                  set LIB=%LIB%;C:\app\instantclient_10_2\sdk\lib\msvc
                  cd %QTDIR%\src\plugins\sqldrivers\oci
                  qmake oci.pro
                  nmake
                  

                  Let You See, I write like this.
                  Thanks for your help:-)

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 15 Jan 2017, 21:52 last edited by
                    #9

                    From a standard command line or from a VS command line ?

                    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
                    • J Offline
                      J Offline
                      jacekkozik
                      wrote on 16 Jan 2017, 12:10 last edited by jacekkozik
                      #10

                      I tried from VS. Is OK!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                      Now, I have:

                      2017-01-16  23:53            75˙776 qsqloci.dll
                      2017-01-16  23:53               828 qsqloci.exp
                      2017-01-16  23:53             1˙998 qsqloci.lib
                      2017-01-16  23:53           164˙352 qsqlocid.dll
                      2017-01-16  23:53               831 qsqlocid.exp
                      2017-01-16  23:53         1˙041˙428 qsqlocid.ilk
                      2017-01-16  23:53             2˙014 qsqlocid.lib
                      2017-01-16  23:53         1˙716˙224 qsqlocid.pdb
                      

                      Now, I should copy them to:
                      C: \ Qt \ Qt5.7.1 \ 5.7 \ msvc2015 \ plugins \ sqldrivers

                      But how do I get oci.dll, which is the best and correct?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 16 Jan 2017, 22:55 last edited by
                        #11

                        Did you re-run qmake before building from that VS cmd line ?

                        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
                        • J Offline
                          J Offline
                          jacekkozik
                          wrote on 17 Jan 2017, 11:27 last edited by
                          #12

                          It is Everything I do:

                          C:\Program Files (x86)\Microsoft Visual C++ Build Tools>set INCLUDE=%INCLUDE%;c:\app\instantclient_12_1\sdk\include
                          
                          C:\Program Files (x86)\Microsoft Visual C++ Build Tools>set LIB=%LIB%;c:
                          
                          C:\Program Files (x86)\Microsoft Visual C++ Build Tools>set LIB=%LIB%;c:\app\instantclient_12_1\sdk\lib\msvc
                          
                          C:\Program Files (x86)\Microsoft Visual C++ Build Tools>cd c:\Qt\Qt5.7.1_msvc2015\5.7\Src\qtbase\src\plugins\sqldrivers\oci
                          
                          c:\Qt\Qt5.7.1_msvc2015\5.7\Src\qtbase\src\plugins\sqldrivers\oci>c:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\bin\qmake.exe oci.pro
                          
                          c:\Qt\Qt5.7.1_msvc2015\5.7\Src\qtbase\src\plugins\sqldrivers\oci>nmake
                          
                          Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
                          Copyright (C) Microsoft Corporation.  All rights reserved.
                          
                                  "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -f Makefile.Release all
                          
                          Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
                          Copyright (C) Microsoft Corporation.  All rights reserved.
                          
                                  C:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\bin\moc.exe -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL -D_MSC_VER=1900 -D_WIN32 -IC:/Qt/Qt5.7.1_msvc2015/5.7/Src/qtbase/mkspecs/win32-msvc2015 -IC:/Qt/Qt5.7.1_msvc2015/5.7/Src/qtbase/src/plugins/sqldrivers/oci -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql/5.7.1 -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql/5.7.1/QtSql -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore/5.7.1 -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore/5.7.1/QtCore -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore main.cpp -o .moc\release\main.moc
                                  C:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\bin\moc.exe -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL -D_MSC_VER=1900 -D_WIN32 -IC:/Qt/Qt5.7.1_msvc2015/5.7/Src/qtbase/mkspecs/win32-msvc2015 -IC:/Qt/Qt5.7.1_msvc2015/5.7/Src/qtbase/src/plugins/sqldrivers/oci -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql/5.7.1 -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql/5.7.1/QtSql -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore/5.7.1 -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore/5.7.1/QtCore -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore ..\..\..\sql\drivers\oci\qsql_oci_p.h -o .moc\release\moc_qsql_oci_p.cpp
                                  rc -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL -fo .obj\release\qsqloci_resource.res qsqloci_resource.rc
                          Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
                          Copyright (C) Microsoft Corporation.  All rights reserved.
                          
                                  cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -O2 -MD -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL -I. -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1\QtCore -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore -I.moc\release -IC:/utils/my_sql/my_sql/include -IC:/utils/postgresql/pgsql/include -I..\..\..\..\mkspecs\win32-msvc2015 -Fo.obj\release\ @C:\Users\jkozik\AppData\Local\Temp\nmC868.tmp
                          main.cpp
                                  cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -O2 -MD -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL -I. -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1\QtCore -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore -I.moc\release -IC:/utils/my_sql/my_sql/include -IC:/utils/postgresql/pgsql/include -I..\..\..\..\mkspecs\win32-msvc2015 -Fo.obj\release\ @C:\Users\jkozik\AppData\Local\Temp\nmCA6D.tmp
                          qsql_oci.cpp
                                  cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -O2 -MD -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DNDEBUG -D_WINDLL -I. -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1\QtCore -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore -I.moc\release -IC:/utils/my_sql/my_sql/include -IC:/utils/postgresql/pgsql/include -I..\..\..\..\mkspecs\win32-msvc2015 -Fo.obj\release\ @C:\Users\jkozik\AppData\Local\Temp\nmCE56.tmp
                          moc_qsql_oci_p.cpp
                                  link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:5.7 /OUT:..\..\..\..\plugins\sqldrivers\qsqloci.dll @C:\Users\jkozik\AppData\Local\Temp\nmD02B.tmp
                             Creating library ..\..\..\..\plugins\sqldrivers\qsqloci.lib and object ..\..\..\..\plugins\sqldrivers\qsqloci.exp
                                  "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.exe" -f Makefile.Debug all
                          
                          Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
                          Copyright (C) Microsoft Corporation.  All rights reserved.
                          
                                  C:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\bin\moc.exe -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_WINDLL -D_MSC_VER=1900 -D_WIN32 -IC:/Qt/Qt5.7.1_msvc2015/5.7/Src/qtbase/mkspecs/win32-msvc2015 -IC:/Qt/Qt5.7.1_msvc2015/5.7/Src/qtbase/src/plugins/sqldrivers/oci -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql/5.7.1 -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql/5.7.1/QtSql -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore/5.7.1 -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore/5.7.1/QtCore -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore main.cpp -o .moc\debug\main.moc
                                  C:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\bin\moc.exe -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_WINDLL -D_MSC_VER=1900 -D_WIN32 -IC:/Qt/Qt5.7.1_msvc2015/5.7/Src/qtbase/mkspecs/win32-msvc2015 -IC:/Qt/Qt5.7.1_msvc2015/5.7/Src/qtbase/src/plugins/sqldrivers/oci -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql/5.7.1 -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql/5.7.1/QtSql -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore/5.7.1 -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore/5.7.1/QtCore -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtSql -IC:/Qt/Qt5.7.1_msvc2015/5.7/msvc2015/include/QtCore ..\..\..\sql\drivers\oci\qsql_oci_p.h -o .moc\debug\moc_qsql_oci_p.cpp
                                  rc -D_DEBUG -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_WINDLL -fo .obj\debug\qsqlocid_resource.res qsqlocid_resource.rc
                          Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.17336
                          Copyright (C) Microsoft Corporation.  All rights reserved.
                          
                                  cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\debug\qsqlocid.vc.pdb -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_WINDLL -I. -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1\QtCore -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore -I.moc\debug -IC:/utils/my_sql/my_sql/include -IC:/utils/postgresql/pgsql/include -I..\..\..\..\mkspecs\win32-msvc2015 -Fo.obj\debug\ @C:\Users\jkozik\AppData\Local\Temp\nmD1BF.tmp
                          main.cpp
                                  cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\debug\qsqlocid.vc.pdb -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_WINDLL -I. -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1\QtCore -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore -I.moc\debug -IC:/utils/my_sql/my_sql/include -IC:/utils/postgresql/pgsql/include -I..\..\..\..\mkspecs\win32-msvc2015 -Fo.obj\debug\ @C:\Users\jkozik\AppData\Local\Temp\nmD47F.tmp
                          qsql_oci.cpp
                                  cl -c -nologo -Zc:wchar_t -FS -Zc:strictStrings -Zc:throwingNew -Zi -MDd -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 /Fd.obj\debug\qsqlocid.vc.pdb -DUNICODE -DWIN32 -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_WINDLL -I. -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql\5.7.1\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1 -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore\5.7.1\QtCore -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtSql -IC:\Qt\Qt5.7.1_msvc2015\5.7\msvc2015\include\QtCore -I.moc\debug -IC:/utils/my_sql/my_sql/include -IC:/utils/postgresql/pgsql/include -I..\..\..\..\mkspecs\win32-msvc2015 -Fo.obj\debug\ @C:\Users\jkozik\AppData\Local\Temp\nmD8B6.tmp
                          moc_qsql_oci_p.cpp
                                  link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.7 /OUT:..\..\..\..\plugins\sqldrivers\qsqlocid.dll @C:\Users\jkozik\AppData\Local\Temp\nmDB47.tmp
                             Creating library ..\..\..\..\plugins\sqldrivers\qsqlocid.lib and object ..\..\..\..\plugins\sqldrivers\qsqlocid.exp
                          
                          c:\Qt\Qt5.7.1_msvc2015\5.7\Src\qtbase\src\plugins\sqldrivers\oci>
                          

                          But I don't know where is oci.dll

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 17 Jan 2017, 19:01 last edited by
                            #13

                            Looks like the build is successful, no ?

                            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
                            • J Offline
                              J Offline
                              jacekkozik
                              wrote on 18 Jan 2017, 06:40 last edited by jacekkozik
                              #14

                              Yes, so I'm happy.
                              But I copied dll files and displays the message:

                              QSqlDatabase: QOCI driver not loaded
                              QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QOCI QOCI8 QODBC QODBC3 QPSQL QPSQL7
                              

                              Libraries are loaded, because in the message is:
                              QOCI QOCI8
                              I think there is a problem with oci.dll, I do not know where I can find this file.

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

                                You should also take a look at the error returned by QSqlDatabase, it might contain additional informations.

                                As for the potential missing .dll they are likely in the somewhere in c:\app\instantclient_12_1

                                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
                                • J Offline
                                  J Offline
                                  jacekkozik
                                  wrote on 19 Jan 2017, 09:53 last edited by
                                  #16

                                  Thank you for your help, I close the topic because I was able to build a plug. THANK YOU VERY MUCH.

                                  1 Reply Last reply
                                  0

                                  1/16

                                  9 Jan 2017, 08:55

                                  • Login

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