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. Link ZeroMq and Qt 32bits
Forum Updated to NodeBB v4.3 + New Features

Link ZeroMq and Qt 32bits

Scheduled Pinned Locked Moved Solved Installation and Deployment
32bitszeromqlinker errors
3 Posts 2 Posters 697 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.
  • T Offline
    T Offline
    Thombou
    wrote on 21 Mar 2023, 22:11 last edited by
    #1

    Hi
    I want to build an application with ZeroMq.
    I have a constraint that I need to use 32bits on windows.

    I downloaded a lib file from the github repository of ZMQ https://github.com/zeromq/libzmq/releases/tag/v4.3.4. I downloaded the v140 version, which is with x86 architecture (I checked with dumpbin command).
    To add this lib to my project, I use the wizard. I select the file and I get the following lines

    win32: LIBS += -L$$PWD/../../../Softwares/ZMQ/libzmq-v140-4_3_4/ -llibzmq-v140-mt-s-4_3_4
    
    INCLUDEPATH += $$PWD/../../../Softwares/ZMQ/libzmq-v140-4_3_4
    DEPENDPATH += $$PWD/../../../Softwares/ZMQ/libzmq-v140-4_3_4
    

    Then I run clean, run qmake and finally build.
    No matter what I try, I always get the error as shown in the picture below. unresolved external symbol which for me means that the library is nto properly linked.
    How can I debug this and find out what is wrong?

    23b963e2-88e3-4c6e-9942-e51280456fe6-image.png

    I use: Qt 5.12.2 MSVC 2019 32bits

    Thank you very much!

    J 1 Reply Last reply 22 Mar 2023, 05:31
    0
    • J jsulm
      22 Mar 2023, 05:31

      @Thombou said in Link ZeroMq and Qt 32bits:

      -llibzmq-v140-mt-s-4_3_4

      That should be

      -lzmq-v140-mt-s-4_3_4
      
      T Offline
      T Offline
      Thombou
      wrote on 25 Mar 2023, 17:45 last edited by Thombou
      #3

      @jsulm
      Since I'm on Windows, it should still be -llibzmq-v140-mt-s-4_3_4. However for this library to work, a preprocessor directive ZMQ_STATIC needs to be added

      1 Reply Last reply
      0
      • T Thombou
        21 Mar 2023, 22:11

        Hi
        I want to build an application with ZeroMq.
        I have a constraint that I need to use 32bits on windows.

        I downloaded a lib file from the github repository of ZMQ https://github.com/zeromq/libzmq/releases/tag/v4.3.4. I downloaded the v140 version, which is with x86 architecture (I checked with dumpbin command).
        To add this lib to my project, I use the wizard. I select the file and I get the following lines

        win32: LIBS += -L$$PWD/../../../Softwares/ZMQ/libzmq-v140-4_3_4/ -llibzmq-v140-mt-s-4_3_4
        
        INCLUDEPATH += $$PWD/../../../Softwares/ZMQ/libzmq-v140-4_3_4
        DEPENDPATH += $$PWD/../../../Softwares/ZMQ/libzmq-v140-4_3_4
        

        Then I run clean, run qmake and finally build.
        No matter what I try, I always get the error as shown in the picture below. unresolved external symbol which for me means that the library is nto properly linked.
        How can I debug this and find out what is wrong?

        23b963e2-88e3-4c6e-9942-e51280456fe6-image.png

        I use: Qt 5.12.2 MSVC 2019 32bits

        Thank you very much!

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 22 Mar 2023, 05:31 last edited by
        #2

        @Thombou said in Link ZeroMq and Qt 32bits:

        -llibzmq-v140-mt-s-4_3_4

        That should be

        -lzmq-v140-mt-s-4_3_4
        

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        T 1 Reply Last reply 25 Mar 2023, 17:45
        1
        • J jsulm
          22 Mar 2023, 05:31

          @Thombou said in Link ZeroMq and Qt 32bits:

          -llibzmq-v140-mt-s-4_3_4

          That should be

          -lzmq-v140-mt-s-4_3_4
          
          T Offline
          T Offline
          Thombou
          wrote on 25 Mar 2023, 17:45 last edited by Thombou
          #3

          @jsulm
          Since I'm on Windows, it should still be -llibzmq-v140-mt-s-4_3_4. However for this library to work, a preprocessor directive ZMQ_STATIC needs to be added

          1 Reply Last reply
          0
          • T Thombou has marked this topic as solved on 25 Mar 2023, 17:47

          1/3

          21 Mar 2023, 22:11

          • Login

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