Skip to content

lab49/go-windows-zmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go ZeroMQ Windows Demo

A small demo to show that running ZeroMQ on Windows using Go is not that hard.

Prerequisites

This demo requires that you have:

One-Time Setup

After installing vcpkg, go to the C:/dev/vcpkg path in gitbash and run the following install commands:

./vcpkg install zeromq[core,sodium]:x64-windows
./vcpkg install czmq[core]:x64-windows
cp installed/x64-windows/lib/libzmq-mt-4_3_4.lib installed/x64-windows/lib/zmq.lib

The cp step is necessary because libczmq expects libzmq to be referred to as zmq in lib. There should be no problems caused by copying the file.

These steps are billed as one-time, but really they are one-time per installing the c libraries. Meaning, that if we update versions here, we'll need to run these again.

Building the Demo

After all the prerequisites are installed, from demo project root, please run the following command:

scripts/build.sh

Keep in mind that we are using CGO here, so all guarantees of the speedy-Go-compile time are thrown out the window. Go will do its best to cache results when possible, but it is not guaranteed. We'll also have to keep in mind that, by using CGO, we necessarily opt-out of Go's cross-compilation features. We will require access to every OS and architecture for which we require support.

Running the Binary

bin/gozmqdemo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published