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. Error while building the OCI Plugin in widows 7

Error while building the OCI Plugin in widows 7

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.3k 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.
  • F Offline
    F Offline
    foxgod
    wrote on last edited by
    #1

    I am trying to bulild the OCI Plugin. I have written the below code and save it as batch file and ran it.

    set INCLUDE=%include%;C:\oracle\product\10.2.0\db_1\OCI\include;C:\Qt\Qt5.0.2\Tools\MinGW\include
    set LIB=%lib%;C:\oracle\product\10.2.0\db_1\OCI\lib\MSVC
    cd C:\Qt\Qt5.0.2\5.0.2\Src\qtbase\src\plugins\sqldrivers\oci
    qmake oci.pro
    mingw32-make

    However While running the above code in batch mode I’m facing below error

    .obj/release/qsql_oci.o:qsql_oci.cpp:(.text+0xb464): undefined reference to OCI NumberToInt' .obj/release/qsql_oci.o:qsql_oci.cpp:(.text+0xb520): undefined reference to OCI
    NumberToInt'
    .obj/release/qsql_oci.o:qsql_oci.cpp:(.text+0xb638): undefined reference to OCI HandleFree' .obj/release/qsql_oci.o:qsql_oci.cpp:(.text+0xb691): undefined reference to OCI
    HandleAlloc'
    .obj/release/qsql_oci.o:qsql_oci.cpp:(.text+0xb6e2): undefined reference to OCI StmtPrepare' C:/Qt5.3.0/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i 686-w64-mingw32/bin/ld.exe: .obj/release/qsql_oci.o: bad reloc address 0x1 in se ction .text$_ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIP7OCIStmtLb1EE6Dele
    teEPv[__ZN17QtMetaTypePrivate23QMetaTypeFunctionHelperIP7OCIStmtLb1EE6DeleteEPv]
    '
    collect2.exe: error: ld returned 1 exit status
    Makefile.Release:80: recipe for target '........\plugins\sqldrivers\qsqloci.d
    ll' failed
    mingw32-make[1]: *** [........\plugins\sqldrivers\qsqloci.dll] Error 1
    mingw32-make[1]: Leaving directory 'C:/qt-everywhere-opensource-src-5.2.1/qtbase
    /src/plugins/sqldrivers/oci'

    how to slove it ? 3Q

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

      Hi,

      Is it me or are you trying to link a Visual Studio built library with a MinGW built Qt ?

      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
      • R Offline
        R Offline
        RocioMartinez13
        wrote on last edited by
        #3

        This person has the same problem as I do. Is getting the same errors.

        My question is posted here: https://forum.qt.io/topic/80928/problem-building-oci-plugin-for-qt-5-9-1/10

        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