Kafka integration in unity3d throwing Win32Exception error

前端 未结 2 1177
清酒与你
清酒与你 2020-12-21 08:58

I am trying to run a code sample of Kafka in unity environment and for this reason, I created a consumer client (Code given below).

2条回答
  •  离开以前
    2020-12-21 09:54

    If you review the source: https://github.com/confluentinc/confluent-kafka-dotnet/blob/master/src/Confluent.Kafka/Impl/LibRdKafka.cs#L323-L374, confluent.kafka will load librdkafka dynamically, which these dlls:

    1. libeay32.dll
    2. librdkafka.dll
    3. librdkafkacpp.dll
    4. libzstd.dll
    5. msvcp120.dll
    6. msvcr120.dll
    7. ssleay32.dll
    8. zlib.dll

    Either needs to be copied to the same folder where Confluent.Kafka.dll stays or create a librdkafka folder like this to the same folder:

    \---librdkafka
        +---x64
        |       libeay32.dll
        |       librdkafka.dll
        |       librdkafkacpp.dll
        |       libzstd.dll
        |       msvcp120.dll
        |       msvcr120.dll
        |       ssleay32.dll
        |       zlib.dll
        |
        \---x86
                libeay32.dll
                librdkafka.dll
                librdkafkacpp.dll
                libzstd.dll
                msvcp120.dll
                msvcr120.dll
                ssleay32.dll
                zlib.dll
    

提交回复
热议问题