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 4.00.00dev #73

Closed
DeadNumbers opened this issue Oct 10, 2017 · 1 comment
Closed

Can't build with 4.00.00dev #73

DeadNumbers opened this issue Oct 10, 2017 · 1 comment

Comments

@DeadNumbers
Copy link

go version go1.9.1 linux/amd64

# github.com/otiai10/gosseract/tesseract
In file included from /usr/include/tesseract/ltrresultiterator.h:26:0,
                 from /usr/include/tesseract/resultiterator.h:26,
                 from /usr/include/tesseract/baseapi.h:31,
                 from tess.cpp:1:
/usr/include/tesseract/unichar.h:164:10: ошибка: «string» does not name a type; did you mean «stdin»?
   static string UTF32ToUTF8(const std::vector<char32>& str32);
          ^~~~~~
          stdin
@DeadNumbers
Copy link
Author

@otiai10 anyway, can't build. Tesseract version 4.00.00dev.r690.g1b0379c2-1,

$ g++ -v
Используются внутренние спецификации.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/lto-wrapper
Целевая архитектура: x86_64-pc-linux-gnu
Параметры конфигурации: /build/gcc-multilib/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Модель многопоточности: posix
gcc версия 7.1.1 20170630 (GCC)```


``` $ go get -u -v -x github.com/otiai10/gosseract
cd /home/user/go/src/github.com/otiai10/gosseract
git config remote.origin.url
github.com/otiai10/gosseract (download)
cd /home/user/go/src/github.com/otiai10/gosseract
git pull --ff-only
cd /home/user/go/src/github.com/otiai10/gosseract
git submodule update --init --recursive
cd /home/user/go/src/github.com/otiai10/gosseract
git show-ref
cd /home/user/go/src/github.com/otiai10/gosseract
git submodule update --init --recursive
cd /home/user/go/src/github.com/otiai10/gosseract
git config remote.origin.url
WORK=/tmp/go-build507722304
github.com/otiai10/gosseract/tesseract
mkdir -p $WORK/github.com/otiai10/gosseract/tesseract/_obj/
mkdir -p $WORK/github.com/otiai10/gosseract/
cd /home/user/go/src/github.com/otiai10/gosseract/tesseract
CGO_LDFLAGS="-g" "-O2" "-llept" "-ltesseract" /usr/lib/go/pkg/tool/linux_amd64/cgo -objdir $WORK/github.com/otiai10/gosseract/tesseract/_obj/ -importpath github.com/otiai10/gosseract/tesseract -- -I $WORK/github.com/otiai10/gosseract/tesseract/_obj/ -g -O2 wrapper.go
cd $WORK
gcc -fdebug-prefix-map=a=b -c trivial.c
gcc -gno-record-gcc-switches -c trivial.c
cd $WORK/github.com/otiai10/gosseract/tesseract/_obj
gcc -I /home/user/go/src/github.com/otiai10/gosseract/tesseract -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -I ./ -g -O2 -o ./_cgo_export.o -c _cgo_export.c
gcc -I /home/user/go/src/github.com/otiai10/gosseract/tesseract -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -I ./ -g -O2 -o ./wrapper.cgo2.o -c wrapper.cgo2.c
cd /home/user/go/src/github.com/otiai10/gosseract/tesseract
g++ -I . -fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -I $WORK/github.com/otiai10/gosseract/tesseract/_obj/ -g -O2 -o $WORK/github.com/otiai10/gosseract/tesseract/_obj/tess.cpp.o -c tess.cpp
# github.com/otiai10/gosseract/tesseract
In file included from /usr/include/tesseract/ltrresultiterator.h:26:0,
                 from /usr/include/tesseract/resultiterator.h:26,
                 from /usr/include/tesseract/baseapi.h:31,
                 from tess.cpp:1:
/usr/include/tesseract/unichar.h:164:10: ошибка: «string» does not name a type; did you mean «stdin»?
   static string UTF32ToUTF8(const std::vector<char32>& str32);
          ^~~~~~
          stdin

@otiai10 otiai10 reopened this Oct 11, 2017
@otiai10 otiai10 changed the title Can't build with 1.9.1 Can't build with 4.00.00dev Oct 11, 2017
otiai10 added a commit that referenced this issue Oct 12, 2017
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