Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. built project with ZERO MQ and windows msvc
Forum Updated to NodeBB v4.3 + New Features

built project with ZERO MQ and windows msvc

Scheduled Pinned Locked Moved Solved Mobile and Embedded
10 Posts 3 Posters 1.1k Views 3 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.
  • A Offline
    A Offline
    AMOL
    wrote on 14 Aug 2020, 10:02 last edited by
    #1

    Hello, all I am working on application in which it is compiled for both android as well as windows platform, this app includes zeroMQ for communicating with server
    Also I have built zero libraries and used in android compiling it works perfectly andI built for linux also that is alos wokring perfect.
    but I am not able build same application for windows MSVC platform, I tried to used libraries but is gives linker errors:
    mainwindow.obj:-1: error: LNK2019: unresolved external symbol __imp_zmq_errno referenced in function "public: __cdecl zmq::error_t::error_t(void)" (??0error_t@zmq@@QEAA@XZ)
    mainwindow.obj:-1: error: LNK2019: unresolved external symbol __imp_zmq_strerror referenced in function "public: virtual char const * __cdecl zmq::error_t::what(void)const " (?what@error_t@zmq@@UEBAPEBDXZ)

    can anyone suggest somthing on this , how to use zmq library with QT ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 14 Aug 2020, 15:33 last edited by
      #2

      Hi,

      Are you using the CPP API of ZMQ ?
      If so, did you compile it ?
      If not, do you know which version of Visual Studio was used for 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
      • A Offline
        A Offline
        AMOL
        wrote on 16 Aug 2020, 05:36 last edited by AMOL
        #3

        Hi SGaist,
        yes I am using CPP API of ZMQ.
        I am using visual studio 2017 for MSVC compiler
        Yes, I tried to compile but not able to use it, If you know how to compile can you please guide me
        I am using below library
        https://github.com/jonnydee/nzmqt

        P A 2 Replies Last reply 16 Aug 2020, 23:12
        0
        • A AMOL
          16 Aug 2020, 05:36

          Hi SGaist,
          yes I am using CPP API of ZMQ.
          I am using visual studio 2017 for MSVC compiler
          Yes, I tried to compile but not able to use it, If you know how to compile can you please guide me
          I am using below library
          https://github.com/jonnydee/nzmqt

          P Offline
          P Offline
          Pablo J. Rogina
          wrote on 16 Aug 2020, 23:12 last edited by
          #4

          @AMOL I see that you've opened an issue at nzmqt repo. That's good.
          And just in case, have you checked comment about msvc from issue 19?

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          A 1 Reply Last reply 17 Aug 2020, 04:58
          1
          • P Pablo J. Rogina
            16 Aug 2020, 23:12

            @AMOL I see that you've opened an issue at nzmqt repo. That's good.
            And just in case, have you checked comment about msvc from issue 19?

            A Offline
            A Offline
            AMOL
            wrote on 17 Aug 2020, 04:58 last edited by AMOL
            #5

            @Pablo-J-Rogina , Hey thank you for revert, I have check issue 19 in which it creates .dll libraries for windows, but when I used that build n crashed, I need .lib format or .a format, so that same way I used in android and linux

            1 Reply Last reply
            0
            • A AMOL
              16 Aug 2020, 05:36

              Hi SGaist,
              yes I am using CPP API of ZMQ.
              I am using visual studio 2017 for MSVC compiler
              Yes, I tried to compile but not able to use it, If you know how to compile can you please guide me
              I am using below library
              https://github.com/jonnydee/nzmqt

              A Offline
              A Offline
              AMOL
              wrote on 17 Aug 2020, 04:58 last edited by
              #6

              @SGaist Any suggestions...

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 17 Aug 2020, 18:52 last edited by
                #7

                Can you explain what exactly do you have right now ?

                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
                • A Offline
                  A Offline
                  AMOL
                  wrote on 18 Aug 2020, 06:15 last edited by
                  #8

                  @SGaist I have .lib and .dll files for zmq I added .lib files and application builds but when I run it crashed..

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 18 Aug 2020, 19:22 last edited by
                    #9

                    Are you sure you have all dependencies properly placed.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    A 1 Reply Last reply 20 Aug 2020, 04:51
                    0
                    • S SGaist
                      18 Aug 2020, 19:22

                      Are you sure you have all dependencies properly placed.

                      A Offline
                      A Offline
                      AMOL
                      wrote on 20 Aug 2020, 04:51 last edited by
                      #10

                      Hi all,
                      My issue is resovled it is because of .dll file which was corrupted.
                      Thanks you for your precious time.

                      1 Reply Last reply
                      1

                      1/10

                      14 Aug 2020, 10:02

                      • Login

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