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. Static linking of postgresql drivers
Forum Updated to NodeBB v4.3 + New Features

Static linking of postgresql drivers

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 997 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.
  • DAnieD Offline
    DAnieD Offline
    DAnie
    wrote on last edited by
    #1

    when trying to link my linux (CentOS 7) application against static qt 5 libraries I get the following error:

    debug/app_debug_plugin_import.o: In function `StaticQPSQLDriverPluginPluginInstance::StaticQPSQLDriverPluginPluginInstance()':
    <src>/app_debug_plugin_import.cpp:24: undefined reference to `qt_static_plugin_QPSQLDriverPlugin
    

    linking to the mysql plugin works.
    I followed the tutorial here: http://doc.qt.io/qt-5/sql-driver.html#qpsql
    And I have both plugins (libqsqlpsql.a and libqsqlmysql.a) But the mysql plugin defines the function: qt_static_plugin_QMYSQLDriverPlugin()
    While the psql plugin has no equivalend function.

    What am I missing.

    Thanks in advance

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

      Hi and welcome to devnet,

      What parameters did you pass to configure ?

      Did you also follow the static plugin documentation ?

      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

      • Login

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