techknowlogick / xgo

Go CGO cross compiler
MIT License
467 stars 80 forks source link

/build.sh: line 114: cd: /go/src/: No such file or directory #229

Open liuyibox opened 10 months ago

liuyibox commented 10 months ago

Hi,

Thanks for maintaining this helpful repo. After I docker pull docker pull techknowlogick/xgo:latest, I can see the image being pulled down as "techknowlogick/xgo latest b3158d187afa 2 hours ago 7.52GB". However, I cannot run a container with this images on my ubuntu desktop as the picture shows.

  1. Can you let me how I should proceed?
  2. I was trying to use your xgo for cross-compiling blockchain repositories (e.g., Ethereum) for android platforms. Do you think that would work? Thanks.

techknowlogick_xgo

liuyibox commented 10 months ago

Can you add support of cross-compiling go repositories for Android and iOS platforms?

hansgylling commented 10 months ago

I'm not part of the xgo project, but we use xgo, so I can help out a bit. The normal way to use xgo is to run a command line program called xgo. You're not supposed to run the docker image directly. The xgo program will handle the docker image. How to install the xgo command line program is described in the documentation (just go install).

Mobile OSes are not listed among the supported targets right now. I guess it would be a substantial amount of work to support that.