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. qt compiling plugin for postgres in static
Forum Updated to NodeBB v4.3 + New Features

qt compiling plugin for postgres in static

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 543 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.
  • J Offline
    J Offline
    jchaviano
    wrote on last edited by
    #1

    i do this an work for dinamic
    "C:\Qt\6.6.0\mingw_32_dro\bin\qt-cmake.bat" -G Ninja "/D/qt_build/qt-everywhere-src-6.6.0/qtbase/src/plugins/sqldrivers" -DCMAKE_INCLUDE_PATH="/C/Qt/Tools/PostgreSQL16/16/include" -DCMAKE_LIBRARY_PATH="/C/Qt/Tools/PostgreSQL16/16/lib" -DCMAKE_INSTALL_PREFIX="/C/Qt/Tools/pgsqldrivers_dro" --log-level=STATUS -Wno-dev
    how to do this for static?

    Christian EhrlicherC 1 Reply Last reply
    0
    • J jchaviano

      i do this an work for dinamic
      "C:\Qt\6.6.0\mingw_32_dro\bin\qt-cmake.bat" -G Ninja "/D/qt_build/qt-everywhere-src-6.6.0/qtbase/src/plugins/sqldrivers" -DCMAKE_INCLUDE_PATH="/C/Qt/Tools/PostgreSQL16/16/include" -DCMAKE_LIBRARY_PATH="/C/Qt/Tools/PostgreSQL16/16/lib" -DCMAKE_INSTALL_PREFIX="/C/Qt/Tools/pgsqldrivers_dro" --log-level=STATUS -Wno-dev
      how to do this for static?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @jchaviano You have to compile Qt statically, then there will also be static plugins.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      J 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        @jchaviano You have to compile Qt statically, then there will also be static plugins.

        J Offline
        J Offline
        jchaviano
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        i use this por compiling
        ../configure.bat -static -platform win32-g++ -Wno-dev -prefix "/C/Qt/6.6.0/libs_32_static_dro" -Wno-dev -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgraphs -skip qtgrpc -skip qthttpserver -skip qtimageformats -skip qtlanguageserver -skip qtlocation -skip qtlottie -skip qtmqtt -skip qtmultimedia -skip qtnetworkauth -skip qtopcua -skip qtpositioning -skip qtquick3d -skip qtquick3dphysics -skip qtquickeffectmaker -skip qtquicktimeline -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtshadertools -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview

        How do I compile only the qt base plugins and not the entire qtbase library since it is a slow process and I only need to compile the plugins

        Christian EhrlicherC J 2 Replies Last reply
        0
        • J jchaviano

          @Christian-Ehrlicher
          i use this por compiling
          ../configure.bat -static -platform win32-g++ -Wno-dev -prefix "/C/Qt/6.6.0/libs_32_static_dro" -Wno-dev -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgraphs -skip qtgrpc -skip qthttpserver -skip qtimageformats -skip qtlanguageserver -skip qtlocation -skip qtlottie -skip qtmqtt -skip qtmultimedia -skip qtnetworkauth -skip qtopcua -skip qtpositioning -skip qtquick3d -skip qtquick3dphysics -skip qtquickeffectmaker -skip qtquicktimeline -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtshadertools -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview

          How do I compile only the qt base plugins and not the entire qtbase library since it is a slow process and I only need to compile the plugins

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          So when you compile Qt static already then you should execute the qt-cmake.bat as above from the install location of you static qt. But I don't understand what /C/Qt/6.6.0/libs_32_static_dro - why do you use msys here? It's not neded.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          J 2 Replies Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            So when you compile Qt static already then you should execute the qt-cmake.bat as above from the install location of you static qt. But I don't understand what /C/Qt/6.6.0/libs_32_static_dro - why do you use msys here? It's not neded.

            J Offline
            J Offline
            jchaviano
            wrote on last edited by
            #5

            @Christian-Ehrlicher

            this /C/Qt/6.6.0/libs_32_static_dro - is the output directory only that, i use the mysys2 is easy for my only that

            1 Reply Last reply
            0
            • J jchaviano

              @Christian-Ehrlicher
              i use this por compiling
              ../configure.bat -static -platform win32-g++ -Wno-dev -prefix "/C/Qt/6.6.0/libs_32_static_dro" -Wno-dev -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgraphs -skip qtgrpc -skip qthttpserver -skip qtimageformats -skip qtlanguageserver -skip qtlocation -skip qtlottie -skip qtmqtt -skip qtmultimedia -skip qtnetworkauth -skip qtopcua -skip qtpositioning -skip qtquick3d -skip qtquick3dphysics -skip qtquickeffectmaker -skip qtquicktimeline -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtshadertools -skip qtspeech -skip qtsvg -skip qttools -skip qttranslations -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview

              How do I compile only the qt base plugins and not the entire qtbase library since it is a slow process and I only need to compile the plugins

              J Offline
              J Offline
              jchaviano
              wrote on last edited by
              #6

              @jchaviano
              5fe4bfab-dfff-4e70-b055-d77a3a6f06d1-image.png
              In this photo I show how even though I have the lib libqsqlpsql.a and qsqlpsql.prl in the plugins directory, it still does not recognize the driver for static. tell you that in dynamic the dll works correctly for me but in static no way

              1 Reply Last reply
              0
              • Christian EhrlicherC Christian Ehrlicher

                So when you compile Qt static already then you should execute the qt-cmake.bat as above from the install location of you static qt. But I don't understand what /C/Qt/6.6.0/libs_32_static_dro - why do you use msys here? It's not neded.

                J Offline
                J Offline
                jchaviano
                wrote on last edited by
                #7

                @Christian-Ehrlicher
                in dinamic ok
                29d942f8-d3c7-446f-bf0a-99aaf50ad7a9-image.png
                the problem is in static

                Christian EhrlicherC 1 Reply Last reply
                0
                • J jchaviano

                  @Christian-Ehrlicher
                  in dinamic ok
                  29d942f8-d3c7-446f-bf0a-99aaf50ad7a9-image.png
                  the problem is in static

                  Christian EhrlicherC Offline
                  Christian EhrlicherC Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  I really wonder why there is a documentation when noone is reading it.

                  Static pluigins
                  Q_IMPORT_PLUGINS

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  1 Reply Last reply
                  1

                  • Login

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