README.win32 893 字节
Newer Older
M
Magnus Edenhill 已提交
1

2
Native win32 build instructions using Microsoft Visual Studio 2013 (MSVC).
M
Magnus Edenhill 已提交
3 4

Requirements:
M
Magnus Edenhill 已提交
5 6
 * zlib is installed automatically from NuGet,
   but probably requires the NuGet VS extension.
M
Magnus Edenhill 已提交
7
 * OpenSSL-win32 must be installed in C:\OpenSSL-win32.
8
   Download and install the latest v1.0.2 non-light package from:
M
Magnus Edenhill 已提交
9
   https://slproweb.com/products/Win32OpenSSL.html
M
Magnus Edenhill 已提交
10 11
   (This would be using NuGet too but the current
    OpenSSL packages are outdated and with broken
12
    dependencies, so no luck)
M
Magnus Edenhill 已提交
13 14 15 16 17 18 19 20 21 22 23

The Visual Studio solution file for librdkafka resides in win32/librdkafka.sln

Artifacts:
 - C library
 - C++ library
 - rdkafka_example
 - tests

 Missing:
  - remaining tools (rdkafka_performance, etc)
24 25 26 27

If you build librdkafka with an external tool (ie CMake) you can get rid of the 
__declspec(dllexport) / __declspec(dllimport) decorations by adding a define
-DLIBRDKAFKA_STATICLIB to your CFLAGS