ligi / IPFSDroid

Android App for the InterPlanetary File System(IPFS)
GNU General Public License v3.0
304 stars 73 forks source link

How to build ipfs daemon binaries? #28

Closed ido-ran closed 6 years ago

ido-ran commented 6 years ago

Can you please explain how you built the x86 and arm images of ipfs-daemon to run on Android devices?

ligi commented 6 years ago

this is the script I use:

mkdir /tmp/workspace
cd /tmp/workspace/
export GOPATH=/tmp/workspace/
export PATH=$GOPATH/bin:$PATH
go get -d github.com/ipfs/go-ipfs
cd $GOPATH/src/github.com/ipfs/go-ipfs
make toolkit_upgrade
make deps
xgo -go 1.8.3 -ldflags "-s -w" --targets=android-16/* ./cmd/ipfs
NatoBoram commented 6 years ago

In what environment did you build it?

ligi commented 6 years ago

Ubuntu 18.04.1