Comments (10)
I dont have access to Visual Studio so I cant verify this, but a quick search suggests that pthreads-win32 could be used.
from librdkafka.
http://web.cs.du.edu/~sturtevant/pthread.html
from librdkafka.
Did a quick attempt to build. There are lots of includes to 'unix only' header files like 'unistd.h', 'sys/socket.h', etc which fail the build (before even getting to the pthread stuff).
from librdkafka.
I suggest you use cygwin, it should be easier to get going.
2014/1/2 winbatch [email protected]
Did a quick attempt to build. There are lots of includes to 'unix only'
header files like 'unistd.h', 'sys/socket.h', etc which fail the build
(before even getting to the pthread stuff).—
Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-31449073
.
from librdkafka.
Yeah, was hoping to avoid that (in a corporate environment with many
thousands of desktops). If that's my only option hopefully I can
statically link with Cygwin.
On Thursday, January 2, 2014, Magnus Edenhill wrote:
I suggest you use cygwin, it should be easier to get going.
2014/1/2 winbatch <[email protected] <javascript:_e({}, 'cvml',
'[email protected]');>>Did a quick attempt to build. There are lots of includes to 'unix only'
header files like 'unistd.h', 'sys/socket.h', etc which fail the build
(before even getting to the pthread stuff).—
Reply to this email directly or view it on GitHub<
https://github.com/edenhill/librdkafka/issues/45#issuecomment-31449073>
.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-31449512
.
from librdkafka.
Trying cygwin per your suggestion but running into warnings (I had more but removed -Wall and -Werror for now)
$ make
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka_broker.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka_msg.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka_topic.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdkafka_defaultconf.c
rdkafka_defaultconf.c: In function ‘rd_kafka_anyconf_set_prop0’:
rdkafka_defaultconf.c:242:0: warning: "_PTR" redefined [enabled by default]
#define _PTR(TYPE,BASE,OFFSET) (TYPE)(((char *)(BASE))+(OFFSET))
^
In file included from /usr/include/string.h:10:0,
from rdkafka_defaultconf.c:29:
/usr/include/_ansi.h:50:0: note: this is the location of the previous definition
#define _PTR void *
^
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdcrc32.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdgz.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdaddr.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdrand.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdthread.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdqueue.c
cc -MD -MP -O2 -Wfloat-equal -Wpointer-arith -I. -g -DSG -c rdlog.c
rdlog.c: In function ‘rdputs0’:
rdlog.c:100:5: warning: cast from pointer to integer of different size -Wpointer-to-int-castpthread_self());
from librdkafka.
librdkafka now builds and operates correctly under Cygwin
from librdkafka.
Apparently there is a free version of visual studio express. If you could get it to build there that would help immensely. I tried here but there are lots of unix specific includes (unistd.h, etc)
from librdkafka.
This is unfortunately not something I'm likely to do in my free time, but I could do it as a contracting job.
from librdkafka.
Fair enough
from librdkafka.
Related Issues (20)
- Consumer segfaults if broker doesn't support OffsetFetch
- Increased number of `rd_kafka_cgrp_terminated` with 2.5.0 and shutdown stability degradation HOT 4
- Unable to build without SSL since #4721 HOT 3
- Not switching to a leader without leader epochs while doing a cluster roll to upgrade the cluster HOT 1
- Issue whie getting librdkafka from Nuget.org via V3 API HOT 1
- Build Failure: unknown type name 'rd_kafka_broker_t' in rdkafka_op.h HOT 2
- Fail to recover a partition which was temporarily delegated to the internal broker HOT 1
- ThreadSanitizer: data race + hang in rd_kafka_destroy (or rd_kafka_destroy_flags) HOT 1
- How to create a librdkafka.so file?
- Incorrect version of zlib packaged with windows version
- X
- can not be used when making a shared object; recompile with -fPIC
- When I was to send the message to kafka's service, the message content was lost when I have found it by kafkatool
- compile issue with "Use STATIC_LIB_libzstd=/path/to/libzstd.a "
- After the connection with the broker times out, there is no reconnection HOT 2
- Topic {X} partition count changed from {Y} to {Z} - for already deleted topic
- Some partitions occasionally fail to be consumed when a single client consumes multiple partitions. HOT 1
- timeout issue with async commit , we want to commit every message after consuming HOT 3
- librdkafka 2.2.0 uses system to run kinit and hence can receive SIGCHLD
- Error "Disconnected while requesting ApiVersion: might be caused by incorrect security.protocol configuration..." connecting to kafka broker 3.8.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librdkafka.