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. [SOLVED] Problem with compiling driver for oracle database (oci)
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Problem with compiling driver for oracle database (oci)

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 2.5k 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.
  • A Offline
    A Offline
    adrian1987
    wrote on 4 Apr 2014, 23:54 last edited by
    #1

    Hi, I have big problem with compiling driver for oracle database. I read the "documentation":http://qt-project.org/doc/qt-5/sql-driver.html#qoci and I don't know what I do wrong...

    I would like build oci for ubuntu, I download from oracle Instant Client Package - Basic and Instant Client Package - SDK. I unpack this zips to dir /usr/local/oracleinstantclient/. Sdk is in /usr/local/oracleinstantclient/sdk. In next step I create symlink in /usr/local/oracleinstantclient/libclntsh.so (links to libclntsh.so -> libclntsh.so.12.1) and libocci.so -> libocci.so.12.1...
    Next I create configuration for dynamic linker /etc/ld.so.conf.d/oracle.conf with path:
    /usr/local/oracleinstantclient
    and run sudo ldconfig. I set also variable ORACLE_HOME=/usr/local/oracleinstantclient

    When I am in directory ~/Qt5.2.1/5.2.1/Src/qtbase/src/plugins/sqldrivers/oci and run
    qmake "INCLUDEPATH+=/usr/local/oracleinstantclient/sdk/include" "LIBS+=-L/usr/local/oracleinstantclient" oci.pro
    I got Project ERROR: addExclusiveBuilds() requires at least two arguments and I don't know what is wrong...
    Could you help me? :)

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 5 Apr 2014, 21:07 last edited by
      #2

      Hi and welcome to devnet,

      Are you sure you are using the correct qmake ?

      Please check with qmake --version

      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
      • A Offline
        A Offline
        adrian1987
        wrote on 6 Apr 2014, 21:07 last edited by
        #3

        Hi and thanks for your answer :) I checked qmake version:

        QMake version 3.0
        Using Qt version 5.0.2 in /usr/lib/i386-linux-gnu

        It's right version?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 6 Apr 2014, 21:37 last edited by
          #4

          No it's not, you are using the qmake installed on your system and not the 5.2.1 you installed yourself.

          Use the full path to the Qt 5.2.1 qmake and you should be good to go

          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
          • A Offline
            A Offline
            adrian1987
            wrote on 10 Apr 2014, 15:07 last edited by
            #5

            You're right, thanks :)

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

              You're welcome !

              Happy coding :)

              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/6

              4 Apr 2014, 23:54

              • Login

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