zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.53k stars 2.34k forks source link

libzmq.dll cannot be used for Hololens2, which is UWP platform #4566

Open cz2011301070 opened 1 year ago

cz2011301070 commented 1 year ago

Please use this template for reporting suspected bugs or requests for help.

Issue description

I cloned the libzmq repo to my computer and successfully built the project. And I cloned the MRTK unity project to my desktop https://github.com/microsoft/MixedRealityToolkit-Unity.git The MRTK worked well and could be successfully build and deploy to my Hololens 2 headset (UWP).

Then I copied the generated libzmq dll to Unity Plugins folder. And I downloaded the Zeromq.dll from nuget. I wrote test code to test the zmq sending message between a python code and the unity MRTK. It worked well.

However, when I tried to build the Unity project to my Hololens2(UWP). There were many LNK2019 errors (e.g., LNK2019 unresolved external symbol zmq_close referenced in function zmq_zmq_close__Internal_m5A797A0D1FC0179BD1B699A9F87848CBF88723E1)

Environment