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. OCI driver in static build[solved]
QtWS25 Last Chance

OCI driver in static build[solved]

Scheduled Pinned Locked Moved General and Desktop
static buildqt5.5oci
7 Posts 2 Posters 3.1k 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.
  • G Offline
    G Offline
    Giorgi
    wrote on 24 Sept 2015, 15:13 last edited by Giorgi
    #1

    Hi all. I want to compile my application in static build. I compiled source using

          configure.bat -static -debug-and-release -platform win32-g++ -prefix $QtDir 
          -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -qt-sql-sqlite -no-openssl 
          -opensource -confirm-license  -make libs -nomake tools -nomake examples -nomake tests
    

    this code. It works ok but I OCI driver was not loaded. how can I compile all supported(this time OCI) to work in static build.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Sept 2015, 15:33 last edited by
      #2

      Hi,

      You need to add -qt-sql-XXX for all the drivers you want to support

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

      G 1 Reply Last reply 25 Sept 2015, 17:49
      1
      • G Offline
        G Offline
        Giorgi
        wrote on 24 Sept 2015, 16:48 last edited by
        #3

        Thank you. I will try

        1 Reply Last reply
        0
        • S SGaist
          24 Sept 2015, 15:33

          Hi,

          You need to add -qt-sql-XXX for all the drivers you want to support

          G Offline
          G Offline
          Giorgi
          wrote on 25 Sept 2015, 17:49 last edited by
          #4

          @SGaist I added this line and I got following error in power shell

          Out-File : Could not find a part of the path 'C:\Qt\Static\5.5.0\mkspecs\win32-g++\qmake.conf'.
          At C:\Users\user_name\Desktop\windows-build-qt-static.ps1:178 char:6
          + "@ | Out-File -Append $File -Encoding Ascii
          +      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              + CategoryInfo          : OpenError: (:) [Out-File], DirectoryNotFoundException
              + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
          

          even if i add -qt-sql-qoci I have same error

          what I am missing? can you help me?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 25 Sept 2015, 20:09 last edited by
            #5

            I've never used PowerShell so I don't know what is happening.

            In any case, when modifying a configuration option like that you have to clean before rebuilding

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

            G 1 Reply Last reply 25 Sept 2015, 20:38
            1
            • S SGaist
              25 Sept 2015, 20:09

              I've never used PowerShell so I don't know what is happening.

              In any case, when modifying a configuration option like that you have to clean before rebuilding

              G Offline
              G Offline
              Giorgi
              wrote on 25 Sept 2015, 20:38 last edited by
              #6

              @SGaist said:

              -qt-sql-XXX

              for me this line didn't work
              -qt-sql-XXX
              but when i added
              -qt-sql-sqlite -qt-sql-oci -qt-sql-db2 -qt-sql-mysql -qt-sql-psql -qt-sql-odbc
              to configure.bat it works perfectly.

              anyway thank you for your attention.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 25 Sept 2015, 20:44 last edited by
                #7

                The XXX was meant to be replaced with whatever sql plugin you wanted to have built-in

                Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

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

                24 Sept 2015, 15:13

                • Login

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