-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Unable to build: requires compiler support for the ISO C++ 2011 standard #114
Labels
Comments
|
- // #cgo CFLAGS: -std=c++11
+ // #cgo CXXFLAGS: -std=c++11 |
summary from my side so far
|
Reproducible DockerfileFROM ubuntu:16.04
RUN apt-get update -qq
RUN apt-get install -yq git golang
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:alex-p/tesseract-ocr && apt-get update -qq
RUN apt-get install -y \
tesseract-ocr-dev \
libleptonica-dev
RUN apt-get install -y \
tesseract-ocr-eng \
tesseract-ocr-deu
RUN mkdir /gopath
ENV GOPATH=/gopath
ENV PATH=${PATH}:${GOROOT}/bin:${GOPATH}/bin
# Dependencies for tests
RUN go get github.com/otiai10/mint
RUN go get golang.org/x/net/html
# Mount source code of gosseract project
ADD . ${GOPATH}/src/github.com/otiai10/gosseract
ENTRYPOINT go test -v github.com/otiai10/gosseract Diff in the application
// #if __FreeBSD__ >= 10
// #cgo LDFLAGS: -L/usr/local/lib -llept -ltesseract
+// #elif true
+// #cgo CXXFLAGS: -std=c++11
+// #cgo LDFLAGS: -llept -ltesseract
// #else
// #cgo LDFLAGS: -llept -ltesseract
// #endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
I'm looking to use this with Tesseract 4.0 to take advantage of the new LSTM engine. I'm using the PPA recommended by the tesseract project: https://launchpad.net/~alex-p/+archive/ubuntu/tesseract-ocr
When I run
go get -t github.com/otiai10/gosseract
I get the following output:I tried adding
// #cgo CFLAGS: -std=c++11
and variations of that to the client.go based on the hints in the error messages.Reproducibility
Reproducility Frequency
apt-get install tesseract-ocr libtesseract-dev
go get -t github.com/otiai10/gosseract
Environment
The text was updated successfully, but these errors were encountered: