-
Notifications
You must be signed in to change notification settings - Fork 163
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
Building zmq4 for arm architecture #119
Comments
You need CGO enabled. Run this:
If is says |
Yes, I am getting: |
I tried enabling CGO but got different errors:
|
Does anybody have a solution for this? Trying to avoid compling directly on ARM, |
@peterdeka You'd need to install a C cross-compiler. The reason this fails is that zmq4 is a wrapper over the C ZeroMQ library, which must also be compiled. Setting up a C cross-compiler is a serious pain and it would generally be easier to compile natively on ARM. |
I have found a solution that might help: indeed a cross-compiler for the target architecture is needed, and you should have also cross-compiled zmq before. I am currently using this script to compile (my target architecture is ARMv7):
Just be careful that the paths defined for |
I can confirm that @marcoreato's solution works. I've created a docker image for armv7 cross compilation with static linking. Source is here: https://github.com/farshidtz/zmq4-arm |
Hi @pebbe ,
I am trying to build my GO SDK which is written on the top of zmq4 for ARM architecture.
But I am getting the following error:
Also I tried for:
GOOS=linux
GOARCH=arm64 go buildBut I got the same error.
Machine Info: Linux 14.04 [64-bit]
GO version : go1.9 linux/amd64
Can you please let me know whether it is possible to build zmq4 for arm architecture. and what is the pre-requisites to do so.
The text was updated successfully, but these errors were encountered: