Re: [go-nuts] golang call c++ api by swig

2017-06-22 Thread Lee Rick
I had try it, but it didn't work with "Go bindings for OpenCV / 2.x API", macbookpro:gocv fredlee$ go build -x WORK=/var/folders/34/z2z_vp1573g5014m8k7wys10gn/T/go-build392930293 mkdir -p $WORK/github.com/lazywei/go-opencv/gocv/_obj/ mkdir -p $WORK/github.com/lazywei/go-opencv/ cd

Re: [go-nuts] golang call c++ api by swig

2017-06-22 Thread Justin Israel
What about referencing existing OpenCV bindings that are already using swig? https://github.com/lazywei/go-opencv/tree/master/gocv On Thu, Jun 22, 2017, 9:49 PM Lee Rick wrote: > hi,guys >I wanna wrap opencv2.4.x library to my project by swig, how to do > it? >

Re: [go-nuts] Facing issues while performing clean.bash

2017-06-22 Thread Ashish Kashinath
Okay, thanks. On Jun 22, 2017 15:43, "Dave Cheney" wrote: > Try without running clean.bash, I've never needed it. > > On Fri, 23 Jun 2017, 08:40 Ashish Kashinath wrote: > >> Sorry for not mentioning that. Actually, I had rebuilt the go binaries >> from

Re: [go-nuts] Facing issues while performing clean.bash

2017-06-22 Thread Dave Cheney
Try without running clean.bash, I've never needed it. On Fri, 23 Jun 2017, 08:40 Ashish Kashinath wrote: > Sorry for not mentioning that. Actually, I had rebuilt the go binaries > from source. (I had put some prints in the scheduler to trace the scheduler > codeflow ) >

Re: [go-nuts] Facing issues while performing clean.bash

2017-06-22 Thread Ashish Kashinath
* intermediary files generated during compilation are cleaned. This would then help me push just the required files to my remote repo. Thanks, On Jun 22, 2017 15:40, "Ashish Kashinath" wrote: Sorry for not mentioning that. Actually, I had rebuilt the go binaries from

Re: [go-nuts] Facing issues while performing clean.bash

2017-06-22 Thread Ashish Kashinath
Sorry for not mentioning that. Actually, I had rebuilt the go binaries from source. (I had put some prints in the scheduler to trace the scheduler codeflow ) So I wanted to do something like a make clean to ensure the intermediary files generated during compilation. This would then help me push

[go-nuts] Facing issues while performing clean.bash

2017-06-22 Thread Dave Cheney
What is the problem you are trying to solve? What problem does running clean.bash solve for you? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [go-nuts] go build for mips

2017-06-22 Thread ktye78
This can be related to issue #18162 If you compile a normal go program for mips32 with the current compiler and run it on hardware without FPU, this is the error message you see. The preferred solution is for the compiler to emmit soft float code. It has been implemented but did not make it into

[go-nuts] Facing issues while performing clean.bash

2017-06-22 Thread akashina
Hi folks. I am trying to execute clean.bash but it is giving me an error like go: open /home/ak7/go1.8/src/runtime/internal/sys/zversion.go: no such file or directory I am on a Linux-ubuntu desktop 16.04 with bash shell running go1.8.0.; On the other hand, make.bash does complete

Re: [go-nuts] go build for mips

2017-06-22 Thread Ian Lance Taylor
On Thu, Jun 22, 2017 at 9:19 AM, wrote: > I try to build a simple hello world with > cgo_enabled=1 goarch=mips goos=linux go build hello.go| Result: illegal > instruction > > file information: ELF 32-bit MSB executable, MIPS, MIPS32 version 1 (SYSV), > statically linked,

[go-nuts] Re: go get golang.org/x/tools asks for a go.googlesource.com password on osx??

2017-06-22 Thread Jason E. Aten
Nailed it: It turns out there was a ~/.gitcookies file, referenced from ~/.gitconfig, that was messing up git. The ~/.gitcookies file had a .googlesource.com cookie in it. I renamed the ~/.gitcookies file, effectively deleting it, and now things work as expected. -- You received this

[go-nuts] Re: go get golang.org/x/tools asks for a go.googlesource.com password on osx??

2017-06-22 Thread Jason E. Aten
It does work fine on linux, and on a different OSX 10.11.6 laptop with git 2.8.4 (Apple Git-73), so it is definitely a configuration on the OSX 10.12.5/git 2.11.0 (Apple Git-81) thing. I'd heard osx Sierra 10.12.5 was bad but I had no idea it was this bad... can anyone reproduce (or not) on

[go-nuts] go get golang.org/x/tools asks for a go.googlesource.com password on osx??

2017-06-22 Thread Jason E. Aten
go version go1.8.3 darwin/amd64 osx 10.12.5 $ *go get -t -u -v golang.org/x/tools* Fetching https://golang.org/x/tools?go-get=1 Parsing meta tags from https://golang.org/x/tools?go-get=1 (status code 200) get "golang.org/x/tools": found meta tag

Re: [go-nuts] go build for mips

2017-06-22 Thread lucasw
I'm building on linux amd64 system and want to execute the go binary on mips arch. Go1.8 The binary is successfully compiled, but when I execute it on my specific architecture (mips), I got an illegal instruction. The file information I provided is about the go binary compiled. It's a hello

Re: [go-nuts] go build for mips

2017-06-22 Thread Harmen
On Thu, Jun 22, 2017 at 11:32:27AM -0700, Nathan Kerr wrote: > > > > I try to build a simple hello world with > > cgo_enabled=1 goarch=mips goos=linux go build hello.go| Result: > > illegal instruction They need to be captitals: $ GOARCH=mips GOOS=linux go build > > > > file information:

Re: [go-nuts] go build for mips

2017-06-22 Thread Nathan Kerr
What system are you building on (OS and architecture)? What version of Go are you using? Is the result of running go build an illegal instruction? What file did you provide information for? What is in hello.go? On Thursday, June 22, 2017 at 6:19:47 PM UTC+2, luc...@kryptus.com wrote: > > I

Re: [go-nuts] go build for mips

2017-06-22 Thread lucasw
I try to build a simple hello world with cgo_enabled=1 goarch=mips goos=linux go build hello.go| Result: illegal instruction file information: ELF 32-bit MSB executable, MIPS, MIPS32 version 1 (SYSV), statically linked, not stripped Also, tried to build with another compile

Re: [go-nuts] Go get function improvements

2017-06-22 Thread Jan Mercl
Copy paste error eated jnml@mate1610-32:~$ go get -v github.com/kniren/gota/... -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [go-nuts] Go get function improvements

2017-06-22 Thread Jan Mercl
On Thu, Jun 22, 2017 at 4:44 PM Vickey Rawat wrote: > GITHUB/GOTA > Now when i use go get github/gota github/gota does not look like a valid import path. If you mean this: jnml@mate1610-32:~$ echo $GOPATH /home/jnml jnml@mate1610-32:~$ rm -rf $GOPATH/src $GOPATH/pkg

Re: [go-nuts] Go get function improvements

2017-06-22 Thread Vickey Rawat
A very simple example is i downloaded a package from github say GITHUB/GOTA Now when i use go get github/gota It installs the package in my src directory But it doesn't download Github/gonum And github/gonum/plots Too On which gota package is depended... That's what i expect it to do

Re: [go-nuts] Go get function improvements

2017-06-22 Thread Ian Lance Taylor
On Wed, Jun 21, 2017 at 6:39 PM, wrote: > > Go get function should import packages exponentially. > > Like the dependency of the package and the dependency of the dependent > package should all be downloaded at once when we download the package. > > It should check if

Re: [go-nuts] Goroutine error when running on load test.

2017-06-22 Thread Ian Lance Taylor
On Wed, Jun 21, 2017 at 10:49 PM, wrote: > > I am getting the following error when my services are being load tested. > I am new to goroutines and may be missing something in my implementation. > My service on being hit is running 2 goroutines that call an http

Re: [go-nuts] go build for mips

2017-06-22 Thread Ian Lance Taylor
On Wed, Jun 21, 2017 at 7:48 PM, lucas.wiechm...@gmail.com wrote: > > Since go1.8 added support for mips32, why can't build a simple hello world > for a mips architecture system? > > I successfully build programs for arm architecture, but could not do the > same for mips.

[go-nuts] Go get function improvements

2017-06-22 Thread vickey . coool
Go get function should import packages exponentially. Like the dependency of the package and the dependency of the dependent package should all be downloaded at once when we download the package. It should check if the package exist if not download all of the stuff. Its vry common in languages

[go-nuts] Goroutine error when running on load test.

2017-06-22 Thread nupur . bansal
I am getting the following error when my services are being load tested. I am new to goroutines and may be missing something in my implementation. My service on being hit is running 2 goroutines that call an http request. After both return , the response from both http requests is returned into a

[go-nuts] go build for mips

2017-06-22 Thread lucas.wiechm...@gmail.com
Since go1.8 added support for mips32, why can't build a simple hello world for a mips architecture system? I successfully build programs for arm architecture, but could not do the same for mips. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

[go-nuts] golang call c++ api by swig

2017-06-22 Thread Lee Rick
hi,guys I wanna wrap opencv2.4.x library to my project by swig, how to do it? anyone can give me a demo ? hope to reply. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

Re: [go-nuts] how can i build a golang system library of debug version

2017-06-22 Thread Dave Cheney
go {build,install} -gcflags="-l -N" $PKG -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit

Re: [go-nuts] how can i build a golang system library of debug version

2017-06-22 Thread Wen Hailong
but default system library do optimization, sometime I can not check local variable On Friday, February 17, 2017 at 1:40:27 AM UTC+8, Ian Lance Taylor wrote: > > On Wed, Feb 15, 2017 at 11:29 PM, Wen Hailong <723...@gmail.com > > wrote: > > i want to debug golang system library. can step code