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. Unresolved external symbol "class QObject * __cdecl qt_plugin_instance_pnp_basictools(void)" (?qt_plugin_instance_pnp_basictools@@YAPAVQObject@@XZ) re

Unresolved external symbol "class QObject * __cdecl qt_plugin_instance_pnp_basictools(void)" (?qt_plugin_instance_pnp_basictools@@YAPAVQObject@@XZ) re

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

    I was compiling the examples in tools/plugandpaint, with vs2008 x86
    but things getting strange.
    This linkage error happens.
    I changed the plugandpaint.pro file to
    @
    symbian {
    LIBS = -lpnp_basictools.lib
    } else {
    QMAKE_LIBDIR += $$OUT_PWD/plugins
    LIBS = -lpnp_basictools
    }

    if(!debug_and_release|build_pass):CONFIG(debug, debug|release) {
    mac:LIBS = $$member(LIBS, 0)_debug
    win32:LIBS = $$member(LIBS, 0)d
    }
    @
    about LIBS, or it's can not found the pnp_basictools.
    So I want to know what's happening about the linkage error.

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

      Hi,

      You have to first build the basic tool example

      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
      • L Offline
        L Offline
        lygstate
        wrote on last edited by
        #3

        Yes, I build that first.
        And I found the binary that I build is less than the binary that QT-release
        provided, that's really confused me.
        Even in a rather simple staticLib-App demo,
        it's can not linkage the library. I don't know why,

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lygstate
          wrote on last edited by
          #4

          When I build the pnp_basictools, size of the debug version:pnp_basictoolsd.lib is 263kb.
          and the binary that provided in the QT release binary is 316kb,
          I want to know what kinds of things will affect the binary size?

          And now the linkage error is happens.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lygstate
            wrote on last edited by
            #5

            Indeed, I use MSVC dumpbin to output the binary information,
            the information provided by QT-released binary is:
            F468 ?qt_plugin_instance_pnp_basictools@@YAPAVQObject@@XZ
            and the information provided by the binary that compiled with the tools.pro project file by me is:
            DDA8 ?qt_plugin_instance_pnp_basictools@@YAPAVQObject@@XZ

            The only difference is F468 vs DDA8 and I really getting confused, and really mess me, I don't know why this happenning.

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

              Shot in the dark: is your Qt built with VS2008 ?

              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
              • L Offline
                L Offline
                lygstate
                wrote on last edited by
                #7

                Yes, My Qt is build with vs 2008. I want to know if the Qt is using VS2008 sp1?

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lygstate
                  wrote on last edited by
                  #8

                  http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-win-opensource-4.8.5-vs2008.exe

                  To be exact, I was using this version.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    lygstate
                    wrote on last edited by
                    #9

                    Now I found the reason to cause the issue,
                    When I configuration the QT Creator Tool Kits (Compilers ,QT version)

                    The name of the Tool Kits contains Chinese Characters,
                    such as the name "桌面", then that will cause the problem I mentioned here
                    and a another problem mentioned in
                    http://qt-project.org/forums/viewthread/30413/

                    So, the QT with Unicode support is not good enough under Win32.
                    Because MSVC support for Unicode path is good, So the reason should be caused by QT. (to be exact, qmake).
                    When I use qmake to genearte vs project file (qmake -tp vc)
                    when the path contains Chinese characters such as "桌面", it's comes with
                    the generated solution file with escape "??".
                    This is an issue, and hope be fixed in future releases.
                    I didn't test with QT 5.1.x yet, I'll try that latter.

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

                      In that case, you could take a look at the "bugreport":bugreports.qt-project.org/issues/ system and report it if someone didn't already do that.

                      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