Last active
November 28, 2018 11:30
-
-
Save tungnk1993/e3d79da4ae0c1a2ee48752f3b29db1c8 to your computer and use it in GitHub Desktop.
Install pebby zmq4 on windows 64-bit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install http://zeromq.org/distro:microsoft-windows, choose 64-bit version | |
2. Install https://sourceforge.net/projects/mingw-w64/ | |
a. Choose Version = 8.1.0 | |
b. Choose Architecture = x86_64 | |
3. Add mingw64 to path | |
4. Open cmd, test gcc | |
5. Steps: | |
a. Copy C:\Program Files\ZeroMQ 4.0.4\include\zmq.h | |
b. Copy C:\Program Files\ZeroMQ 4.0.4\include\zmq_utils.h | |
to C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\lib\gcc\x86_64-w64-mingw32\8.1.0\include | |
6. Steps: | |
a. Copy C:\Program Files\ZeroMQ 4.0.4\lib\libzmq-v120-mt-4_0_4.lib | |
b. To C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\lib | |
c. Rename to zmq.lib | |
7. go get -t -v github.com/pebbe/zmq4 | |
8. Check compiled zmq4.a file in the %GOPATH%\pkg\windows_amd64\github.com\pebbe directory. | |
9. Install https://www.microsoft.com/en-sg/download/details.aspx?id=40760 | |
10. Steps: | |
a. Copy C:\Windows\SysWOW64\msvcp120.dll | |
b. Copy C:\Windows\SysWOW64\msvcr120.dll | |
c. C:\Program Files\ZeroMQ 4.0.4\bin\libzmq-v120-mt-4_0_4.dll | |
d. To C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin | |
11. Write and run some zmq4 unit test (hwserver, hwclient is quick example) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment