-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Windows MinGW Static Library #564
Conversation
@confluentinc It looks like @neptoess just signed our Contributor License Agreement. 👍 Always at your service, clabot |
@edenhill , |
@edenhill
Since it seems intentional that PLAIN and GSSAPI are the only SASL options on Windows, should this test be skipped on Windows builds? |
|
Restore OATHBEARER testing on Windows
…GINS and WITH_ZLIB
@edenhill |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't do the actual import here, we'll do that for the upcoming 1.7.0 release, just update the tooling as needed. Thanks
… allow them to persist once the script returns
This is done, but note that this will make the Travis Windows jobs fail (since build_windows.go and librdkafka_windows.a are missing) |
@edenhill |
Thanks alot for this! |
@neptoess Hey, I just pushed an RC branch with your new Windows builds, can you try it out on Windows? (this RC branch will not be merged, to keep the repo size down). |
@edenhill |
Superb! Thank you for all your hard work on getting this done! |
This PR sounds like Windows is now supported but the README still says "confluent-kafka-go is not supported on Windows." - can you clarify if and how I can get it to run on Windows? |
It’s not officially supported, but, as of v1.7.0, a static bundle is being shipped. If you have a working cgo toolchain (the bundle is built with MSYS2 MinGW 64-bit, and is what I’d recommend), it should “just work” |
Very bizarre. The Travis build and tests worked perfectly fine with this bundle https://travis-ci.org/github/confluentinc/confluent-kafka-go/jobs/770559600 __imp_wassert is defined in the C runtime library. What version of Windows are you running on? What gcc version? |
I saw that that is why I'm kind of confused
|
Hmm. Gcc v8.1.0 is a little outdated. Per https://travis-ci.org/github/edenhill/librdkafka/jobs/770444016#L2714, the v1.7.0 bundle was built with v10.3. Maybe try upgrading? |
I upgraded to v11.1 and it's working! ty so much ❤ |
Co-authored-by: neptoess <[email protected]>
for anyone that trying to build without too much background in C++, here is what i did : |
If you have C:\msys64\mingw64\bin in your PATH, you shouldn’t need to define all these environment variables. I just do plain old go build |
I'm getting error
when trying to install with mingw v12.2.0-rt_v10-rev2 installed via Scoop: is this supported or is there another way to install? |
Not sure about Scoop. The MinGW install I was using was via MSYS2 |
Thanks for the response, I believe the versions should be the same according to gcc --version:
|
So as you say, what got this to work was installing MSYS2 version of gcc, via pacman: update pacman
uninstall 32 target gcc if installed
install gcc on x64 targeting x64
Add to PATH:
|
Re-opening #555
Resolves #128