Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build with MinGW #69

Closed
danielfazlijevic opened this issue Jul 17, 2017 · 3 comments
Closed

Can't build with MinGW #69

danielfazlijevic opened this issue Jul 17, 2017 · 3 comments

Comments

@danielfazlijevic
Copy link

I cannot build with go build nor I can go get github.com/otiai10/gosseract ,
I get error:
go build github.com/otiai10/gosseract/tesseract: C:\go\pkg\tool\windows_386\cgo.exe: exit status 2

I installed CGO, tried restarting my pc, nothing works.

@otiai10
Copy link
Owner

otiai10 commented Jul 18, 2017

How did you installed cgo? cgo is one of standard components included in initial golang installation itself. Plus, show me outputs of commands bellow

  • go version
  • go env

@danielfazlijevic
Copy link
Author


C:\Users\Dell>go version
go version go1.8.3 windows/386

C:\Users\Dell>go env
set GOARCH=386
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Dell\Desktop\GOLANG Development
set GORACE=
set GOROOT=C:\go
set GOTOOLDIR=C:\go\pkg\tool\windows_386
set GCCGO=gccgo
set GO386=
set CC=gcc
set GOGCCFLAGS=-m32 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
set PKG_CONFIG=pkg-config
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2

I used MinGW to install some components.

@otiai10 otiai10 assigned otiai10 and unassigned danielfazlijevic Aug 21, 2017
@otiai10 otiai10 removed their assignment Oct 3, 2017
@otiai10 otiai10 changed the title Can't build Can't build with MinGW Oct 3, 2017
@otiai10
Copy link
Owner

otiai10 commented Nov 5, 2017

it might be helpful mattn/go-sqlite3#168

otiai10 added a commit that referenced this issue Nov 5, 2017
Fix #69
But it's just a minimum GNU OS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants