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 5.5 static psql

Qt 5.5 static psql

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 291 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.
  • M Offline
    M Offline
    Murzila
    wrote on last edited by
    #1

    Hello.
    I build psql like a static library with msvc 2015.
    After that i build qt with the next configuration:
    set QMAKESPEC=win32-msvc2015
    set QTSRC=F:\5.5.0rc
    set QtDir=C:\QT\5.5.0stEx
    set QT_INSTALL_PREFIX=%QtDir%
    set pre=-mp ^
    -qt-pcre ^
    -qt-harfbuzz ^
    -opengl dynamic ^
    -qt-zlib ^
    -static ^
    -static-runtime ^
    -developer-build ^
    -debug-and-release ^
    -force-debug-info ^
    -platform win32-msvc2015 ^
    -prefix %QtDir% ^
    -confirm-license ^
    -opensource ^
    -nomake examples ^
    -nomake tests ^
    -L "C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Lib/" ^
    -l Gdi32 ^
    -openssl ^
    -openssl-linked ^
    OPENSSL_LIBS_DEBUG="Dlibeay32.lib Dssleay32.lib" ^
    OPENSSL_LIBS_RELEASE="libeay32.lib ssleay32.lib" ^
    -I "D:\t1\dependencies\openssl\r\include" ^
    -L "D:\t1\dependencies\openssl\r\lib" ^
    -qt-sql-psql ^
    PSQL_LIBS="libpgcommon.lib libpgport.lib libpq.lib" ^
    -l "D:\t1\dependencies\PSQL\RELEASE_MT\lib\libpgcommon" ^
    -l "D:\t1\dependencies\PSQL\RELEASE_MT\lib\libpgport" ^
    -l "D:\t1\dependencies\PSQL\RELEASE_MT\lib\libpq" ^
    -L "D:\t1\dependencies\PSQL\RELEASE_MT\lib" ^
    -I "D:\t1\dependencies\PSQL\RELEASE_MT\include"

    cmd /c "%QTSRC%configure.bat %pre%"
    So, my question, why after that i must link libpq.lib???
    Why it's not a part of QtSql.lib?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Because a static lib can not contain another static lib.

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

      M 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Because a static lib can not contain another static lib.

        M Offline
        M Offline
        Murzila
        wrote on last edited by
        #3

        @Christian-Ehrlicher
        Thank you for answer.
        So, that's mean it's impossible have a static qt with a psql? I must have a psql libs ,and other plugins like a static libs and attach to my project?

        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