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 Plugins problem
Forum Updated to NodeBB v4.3 + New Features

Static Plugins problem

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 2.4k 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.
  • J Offline
    J Offline
    jaskmar
    wrote on last edited by
    #1

    Hello,
    I am writing a desktop Linux application using PostgreSQL. I wanted to add static plugin like here: http://doc.qt.digia.com/qt/plugins-howto.html#static-plugins . I received an error:
    @/bla/bla/main.cpp:-1: error:undefined reference to `qt_plugin_instance_qsqlpsql()'@

    I foun a lot of similar errors on the internet but i haven't found any solution. Can You help me?

    PS: Sorry for my english :D

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      Did you Q_IMPORT_PLUGIN and have you added the plugin to QTPLUGIN?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jaskmar
        wrote on last edited by
        #3

        Here's what have I done:
        @
        QTPLUGIN += qsqlpsql
        @
        in my .pro file

        @
        #include <QtPlugin>

        Q_IMPORT_PLUGIN(qsqlpsql)
        @

        in main.cpp at the begining.

        EDIT: I don't know if the libqt4-sql-psql package is enought for static plugin to work.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jaskmar
          wrote on last edited by
          #4

          I found topic:
          https://bugreports.qt-project.org/browse/QTBUG-26850

          And a guy wrote like this:

          @After configure, manually clean mkspecs/qmodule.pri: Remove -L/usr/lib64 or -L/usr/lib from QT_LFLAGS_PSQL and QT_LFLAGS_MYSQL.@

          I use QtCreator and I connot localize mkspecs/qmodule.pri

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jaskmar
            wrote on last edited by
            #5

            Is there anyone who don't receive such error?

            My colleagues do receive it on Windows and on Linux 32 and 64bit. That's why I don't understand why there is no even notice (in documentation) about such error can appear and why. Maybe it's because we are all from Poland... :/

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pol102
              wrote on last edited by
              #6

              It is forum, it means that you have to wait. We are one. We have a lot of personal things to do so wait for answer more than 16 hours.

              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