You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.
I’m working on go project that implmenting C code !
I can build the project on linux/amd64, and we now that go don’t cross compile if we use “IMPORT C”. So i work with XGO that maybe help me to cross compiling for ARM.
i check XGO by cross compiling version of my go project without C code and it’s work like cross compil of go.
src/github.com/brocaar/lora-app-server/cmd/lora-app-server
Checking docker installation... Client: Version: 18.09.7 API version: 1.39 Go version: go1.10.4 Git
commit: 2d0083d Built: Fri Aug 16 14:19:38 2019 OS/Arch: linux/amd64 Experimental: false
Server:
Engine:
Version: 18.09.7
API version: 1.39 (minimum version 1.12)
Go version: go1.10.4
Git commit: 2d0083d
Built: Thu Aug 15 15:12:41 2019
OS/Arch: linux/amd64
Experimental: false
Checking for required docker image karalabe/xgo-1.13.3... found.
Cross compiling github.com/brocaar/lora-app-server/cmd/lora-app-server...
Building locally github.com/brocaar/lora-app-server/cmd/lora-app-server...
Bootstrapping linux/arm-7...
go: github.com/brocaar/[email protected]: parsing
/opt/go/src/github.com/brocaar/lorawan/go.mod: open
/opt/go/src/github.com/brocaar/lorawan/go.mod: no such file or directory
2019/12/03 16:02:37 Failed to cross compile package: exit status 1.
the C code that my lorwan package use are in =>
/usr/local/go/src/crypto/lilliput
I already building the project with this configuration with go for amd64, i'm beginner on cross-compile, maybe there are some dependency i must configure or something like that.
I really don’t now why he say “no such file or directory”, because there are go.mod in folder lorawan ! can some one help me ? thanks
The text was updated successfully, but these errors were encountered:
If your code is reachable somewhere (e.g. a zip bundle or something) I can try to repro. With no code to see what you're doing, I cannot repro and thus cannot figure out what might be off. Go modules are weird. In general xgo should work, but there's no explicit support, so might depend on your code base.
HI ,
I’m working on go project that implmenting C code !
I can build the project on linux/amd64, and we now that go don’t cross compile if we use “IMPORT C”. So i work with XGO that maybe help me to cross compiling for ARM.
i check XGO by cross compiling version of my go project without C code and it’s work like cross compil of go.
my environement :
Go env :
My project is on =>
My package that include c code is on =>
the go.mode of my project :
the go.mode of my lorawan package :
My command to cross-compil is:
The result error are :
the C code that my lorwan package use are in =>
I already building the project with this configuration with go for amd64, i'm beginner on cross-compile, maybe there are some dependency i must configure or something like that.
I really don’t now why he say “no such file or directory”, because there are go.mod in folder lorawan ! can some one help me ? thanks
The text was updated successfully, but these errors were encountered: