Open herrysoto opened 7 years ago
Are you sure cross-compiling with CGO is possible? At least a C cross-compiler is needed - mingw32-c is not that...
herrysoto notifications@github.com ezt írta (időpont: 2017. márc. 29., Sze, 18:47):
get an error when execute go build
SET GOOS=linux SET GOARCH=386 SET CGO_ENABLED=1 SET CXX=mingw32-g++ SET CC=mingw32-c++ gopkg.in/rana/ora.v3
..\gopkg.in\rana\ora.v3\conn.go:51: undefined: Env ..\gopkg.in\rana\ora.v3\conn.go:52: undefined: Ses ..\gopkg.in\rana\ora.v3\pool.go:63: undefined: Env ..\gopkg.in\rana\ora.v3\pool.go:64: undefined: SrvCfg ..\gopkg.in\rana\ora.v3\pool.go:65: undefined: SesCfg
[image: 001] https://cloud.githubusercontent.com/assets/23138458/24466091/35fd661c-1475-11e7-932a-b70edcf9e1f3.png
[image: 002] https://cloud.githubusercontent.com/assets/23138458/24466138/661388e0-1475-11e7-91a3-991667d89ec1.png
pls help
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rana/ora/issues/179, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPoSlIWjJPNKgmNmjefUofHmMRm6kfKks5rqosngaJpZM4MtQJu .
You will have a help article out there, I am trying to do the opposite of this article -> Https://groups.google.com/forum/#!msg/golang-nuts/AlQvxD7wv30/dNNDUuSyTgoJ
i try again, whitout setting variable CGO_ENABLED , CXX,CC . SET GOOS=linux SET GOARCH=386
gopkg.in/rana/ora.v3/num crypto/elliptic encoding/asn1 crypto/rand crypto/dsa text/template gopkg.in/rana/ora.v3 encoding/xml crypto/rsa golang.org/x/crypto/ed25519
..\gopkg.in\rana\ora.v3\conn.go:51: undefined: Env ..\gopkg.in\rana\ora.v3\conn.go:52: undefined: Ses ..\gopkg.in\rana\ora.v3\pool.go:63: undefined: Env ..\gopkg.in\rana\ora.v3\pool.go:64: undefined: SrvCfg ..\gopkg.in\rana\ora.v3\pool.go:65: undefined: SesCfg github.com/golang/protobuf/proto crypto/ecdsa crypto/x509/pkix net/textproto net/http/httptrace github.com/spf13/pflag crypto/x509 gopkg.in/go-playground/validator.v8 golang.org/x/net/context html/template mime/multipart crypto/tls golang.org/x/crypto/ssh github.com/spf13/cast net/http github.com/pkg/sftp github.com/spf13/afero/sftp github.com/magiconair/properties github.com/spf13/afero github.com/gin-gonic/gin/binding github.com/gin-gonic/gin/render github.com/manucorporat/sse net/http/httputil github.com/gin-gonic/gin github.com/spf13/viper
The ..._FOR_TARGET env vars what I missed - you have to use a special cross compiler for cross compiling C programs - and cgo produces that! Wouldn't that be easier, just use a native Linux host?
herrysoto notifications@github.com ezt írta (időpont: 2017. márc. 29., Sze, 21:54):
[image: image] https://cloud.githubusercontent.com/assets/23138458/24473424/d7648f8a-148e-11e7-9389-faca33dbe0ff.png
You will have a help article out there, I am trying to do the opposite of this article -> Https://groups.google.com/forum/#!msg/golang-nuts/AlQvxD7wv30/dNNDUuSyTgoJ
i try again, whitout setting variable CGO_ENABLED , CXX,CC . SET GOOS=linux SET GOARCH=386
gopkg.in/rana/ora.v3/num crypto/elliptic encoding/asn1 crypto/rand crypto/dsa text/template gopkg.in/rana/ora.v3 encoding/xml crypto/rsa golang.org/x/crypto/ed25519 gopkg.in/rana/ora.v3
..\gopkg.in\rana\ora.v3\conn.go:51: undefined: Env ..\gopkg.in\rana\ora.v3\conn.go:52: undefined: Ses ..\gopkg.in\rana\ora.v3\pool.go:63: undefined: Env ..\gopkg.in\rana\ora.v3\pool.go:64: undefined: SrvCfg ..\gopkg.in\rana\ora.v3\pool.go:65: undefined: SesCfg
github.com/golang/protobuf/proto crypto/ecdsa crypto/x509/pkix net/textproto net/http/httptrace github.com/spf13/pflag crypto/x509 gopkg.in/go-playground/validator.v8 golang.org/x/net/context html/template mime/multipart crypto/tls golang.org/x/crypto/ssh github.com/spf13/cast net/http github.com/pkg/sftp github.com/spf13/afero/sftp github.com/magiconair/properties github.com/spf13/afero github.com/gin-gonic/gin/binding github.com/gin-gonic/gin/render github.com/manucorporat/sse net/http/httputil github.com/gin-gonic/gin github.com/spf13/viper
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/rana/ora/issues/179#issuecomment-290206008, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPoSthwcRlfvXgddmbFz4sgUmPjBmgLks5rqrbggaJpZM4MtQJu .
thank you I will used a native Linux host
2017-03-29 15:02 GMT-05:00 Tamás Gulácsi notifications@github.com:
The ..._FOR_TARGET env vars what I missed - you have to use a special cross compiler for cross compiling C programs - and cgo produces that! Wouldn't that be easier, just use a native Linux host?
herrysoto notifications@github.com ezt írta (időpont: 2017. márc. 29., Sze, 21:54):
[image: image] https://cloud.githubusercontent.com/assets/23138458/24473424/d7648f8a- 148e-11e7-9389-faca33dbe0ff.png
You will have a help article out there, I am trying to do the opposite of this article -> Https://groups.google.com/forum/#!msg/golang-nuts/ AlQvxD7wv30/dNNDUuSyTgoJ
i try again, whitout setting variable CGO_ENABLED , CXX,CC . SET GOOS=linux SET GOARCH=386
gopkg.in/rana/ora.v3/num crypto/elliptic encoding/asn1 crypto/rand crypto/dsa text/template gopkg.in/rana/ora.v3 encoding/xml crypto/rsa golang.org/x/crypto/ed25519 gopkg.in/rana/ora.v3
..\gopkg.in\rana\ora.v3\conn.go:51: undefined: Env ..\gopkg.in\rana\ora.v3\conn.go:52: undefined: Ses ..\gopkg.in\rana\ora.v3\pool.go:63: undefined: Env ..\gopkg.in\rana\ora.v3\pool.go:64: undefined: SrvCfg ..\gopkg.in\rana\ora.v3\pool.go:65: undefined: SesCfg
github.com/golang/protobuf/proto crypto/ecdsa crypto/x509/pkix net/textproto net/http/httptrace github.com/spf13/pflag crypto/x509 gopkg.in/go-playground/validator.v8 golang.org/x/net/context html/template mime/multipart crypto/tls golang.org/x/crypto/ssh github.com/spf13/cast net/http github.com/pkg/sftp github.com/spf13/afero/sftp github.com/magiconair/properties github.com/spf13/afero github.com/gin-gonic/gin/binding github.com/gin-gonic/gin/render github.com/manucorporat/sse net/http/httputil github.com/gin-gonic/gin github.com/spf13/viper
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/rana/ora/issues/179#issuecomment-290206008, or mute the thread https://github.com/notifications/unsubscribe-auth/ AAPoSthwcRlfvXgddmbFz4sgUmPjBmgLks5rqrbggaJpZM4MtQJu
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rana/ora/issues/179#issuecomment-290208434, or mute the thread https://github.com/notifications/unsubscribe-auth/AWEQmg4cX5fgW8n9s8NbPwpEJnbAtE4Qks5rqrjZgaJpZM4MtQJu .
--
HERRY ANTHONY SOTO MONTALVO
get an error when execute go build
SET GOOS=linux SET GOARCH=386 SET CGO_ENABLED=1 SET CXX=mingw32-g++ SET CC=mingw32-c++
gopkg.in/rana/ora.v3
..\gopkg.in\rana\ora.v3\conn.go:51: undefined: Env ..\gopkg.in\rana\ora.v3\conn.go:52: undefined: Ses ..\gopkg.in\rana\ora.v3\pool.go:63: undefined: Env ..\gopkg.in\rana\ora.v3\pool.go:64: undefined: SrvCfg ..\gopkg.in\rana\ora.v3\pool.go:65: undefined: SesCfg
pls help