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

M
Magnus Edenhill 已提交
2
Native win32 build instructions using Microsoft Visual Studio 2015 (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 8
 * OpenSSL-win32 must be installed in C:\OpenSSL-win32 and C:\OpenSSL-Win64
   depending on your architecture.
9
   Download and install the latest v1.0.2 non-light package from:
M
Magnus Edenhill 已提交
10
   https://slproweb.com/products/Win32OpenSSL.html
M
Magnus Edenhill 已提交
11 12
   (This would be using NuGet too but the current
    OpenSSL packages are outdated and with broken
13
    dependencies, so no luck)
M
Magnus Edenhill 已提交
14 15 16 17 18 19

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

Artifacts:
 - C library
 - C++ library
M
Magnus Edenhill 已提交
20
 - rdkafka_example, rdkafka_performance
M
Magnus Edenhill 已提交
21 22
 - tests

23 24 25 26

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