約 3,135,161 件
https://w.atwiki.jp/asterisk99/pages/575.html
original (2019/05/14 付) Google 翻訳 (2019/05/21 付) # Compilation guide for various platforms #さまざまなプラットフォーム用のコンパイルガイド Note This wiki expects you to be familiar with compiling software on your operation system. 注意 このウィキはあなたがあなたのオペレーションシステム上でソフトウェアをコンパイルすることに精通していることを期待しています。 Use the same tools for building tesseract as you used for building leptonica. * [leptonicaの構築]で使用したのと同じツールを使用して、tesseractを構築します(https //github.com/DanBloomberg/leptonica/issues/410)。 ## Table of contents ## 目次 * Linux * Linux * Windows * Windows * macOS * macOS * Common Errors * よくあるエラー * Miscellaneous * その他 ## Linux ## Linux To install Tesseract 4.x you can simply run the following command on your Ubuntu 18.xx bionic Tesseract 4.x をインストールするには、Ubuntu 18.xx bionic で以下のコマンドを実行するだけです。 ` | ` sudo apt install tesseract-ocr sudo aptインストールtesseract-ocr ` | ` If you wish to install the Developer Tools which can be used for training, run the following command トレーニングに使用できるDeveloper Toolsをインストールしたい場合は、次のコマンドを実行してください。 ` | ` sudo apt install libtesseract-dev sudo aptインストールlibtesseract-dev ` | ` The following instructions are for building on Linux, which also can be applied to other UNIX like operating systems. 以下の手順はLinux上で構築するためのものです。これは他のUNIXのようなオペレーティングシステムにも適用できます。 ### Dependencies ###依存関係 * A compiler for C and C++ GCC or Clang * CおよびC ++用のコンパイラ GCCまたはClang * GNU Autotools autoconf, automake, libtool * GNU Autotools autoconf、automake、libtool * pkg-config * pkg-config * Leptonica * レプトニカ * libpng, libjpeg, libtiff * libpng、libjpeg、libtiff ### Ubuntu ### Ubuntu If they are not already installed, you need the following libraries (Ubuntu 16.04/14.04) まだインストールされていない場合は、次のライブラリが必要です(Ubuntu 16.04 / 14.04)。 ` | ` sudo apt-get install g++ # or clang++ (presumably) sudo apt-get g ++#またはclang ++(たぶん) sudo apt-get install autoconf automake libtool sudo apt-get install autoconf automake libtool sudo apt-get install pkg-config sudo apt-get install pkg-config sudo apt-get install libpng-dev sudo apt-get libpng-devのインストール sudo apt-get install libjpeg8-dev sudo apt-get libjpeg8-devをインストールしてください。 sudo apt-get install libtiff5-dev sudo apt-get libtiff5-devをインストールする sudo apt-get install zlib1g-dev sudo apt-get install zlib1g-dev ` | ` if you plan to install the training tools, you also need the following libraries トレーニングツールをインストールする予定の場合は、次のライブラリも必要です。 ` | ` sudo apt-get install libicu-dev sudo apt-get install libicu-dev sudo apt-get install libpango1.0-dev sudo apt-get install libpango1.0-dev sudo apt-get install libcairo2-dev sudo apt-get libcairo2-devをインストールする ` | ` ### Leptonica ###レプトニカ You also need to install Leptonica. Ensure that the development headers for Leptonica are installed before compiling Tesseract. またLeptonicaをインストールする必要があります。 Tesseractをコンパイルする前に、Leptonicaの開発用ヘッダーがインストールされていることを確認してください。 Tesseract versions and the minimum version of Leptonica required TesseractのバージョンとLeptonicaの最小バージョンが必要です Tesseract Leptonica Ubuntu Tesseract レプトニカ Ubuntu ------------------- --------------------------------------- --------- ------------------- --------------------------------------- --------- 4.00 1.74.2 Ubuntu 18.04 4.00 1.74.2 Ubuntu 18.04 3.05 1.74.0 Must build from source 3.05 1.74.0 ソースからビルドする必要があります 3.04 1.71 Ubuntu 16.04 3.04 1.71 Ubuntu 16.04 3.03 1.70 Ubuntu 14.04 3.03 1.70 Ubuntu 14.04 3.02 1.69 Ubuntu 12.04 3.02 1.69 Ubuntu 12.04 3.01 1.67 3.01 1.67 One option is to install the distro s Leptonica package 1つの選択肢はディストリビューションのLeptonicaパッケージをインストールすることです。 ` | ` sudo apt-get install libleptonica-dev sudo apt-getインストールlibleptonica-dev ` | ` but if you are using an oldish version of Linux, the Leptonica version may be too old, so you will need to build from source. しかし、あなたが古いバージョンのLinuxを使っているなら、Leptonicaバージョンは古すぎるかもしれないので、ソースからビルドする必要があるでしょう The sources are at https //github.com/DanBloomberg/leptonica . The instructions for building are given in Leptonica README. ソースはhttps //github.com/DanBloomberg/leptonicaにあります。構築方法はLeptonica READMEにあります。 Note that if building Leptonica from source, you may need to ensure that /usr/local/lib is in your library path. This is a standard Linux bug, and the information at Stackoverflow is very helpful. ソースからLeptonicaをビルドする場合、/ usr / local / libがあなたのライブラリパスにあることを確認する必要があるかもしれないことに注意してください。これはLinuxの標準的なバグです。Stackoverflowの情報は非常に役に立ちます。 ## Installing Tesseract from Git ## GitからTesseractをインストールする Please follow instructions in https //github.com/tesseract-ocr/tesseract/wiki/Compiling--GitInstallation [https //github.com/tesseract-ocr/tesseract/wiki/Compiling--GitInstallation](https //github.com/tesseract-ocr/tesseract/wiki/Compiling-%E2%80%]の手順に従ってください。 93-GitInstallation) Also read Install Instructions インストール方法も読んでください。 ## Install elsewhere / without root ##他の場所に/ rootなしでインストール Tesseract can be configured to install anywhere, which makes it possible to install it without root access. Tesseractはどこにでもインストールできるように設定できるため、rootアクセスなしでインストールできます。 To install it in $HOME/local $ HOME / localにインストールするには ` | ` ./autogen.sh ./autogen.sh ./configure --prefix=$HOME/local/ ./configure --prefix = $ HOME / local / make 作る make install インストールする ` | ` To install it in $HOME/local using Leptonica libraries also installed in $HOME/local $ HOME / localにもインストールされているLeptonicaライブラリを使用して$ HOME / localにインストールするには ` | ` ./autogen.sh ./autogen.sh LIBLEPT_HEADERSDIR=$HOME/local/include ./configure \ LIBLEPT_HEADERSDIR = $ HOME / local / include ./configure \ --prefix=$HOME/local/ --with-extra-libraries=$HOME/local/lib --prefix = $ HOME / local / --with-extra-libraries = $ HOME / local / lib make 作る make install インストールする ` | ` In some system, you might also need to specify the path to the pkg-config before running the configure script システムによっては、 configureスクリプトを実行する前にpkg-configへのパスを指定する必要があるかもしれません ` | ` export PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig PKG_CONFIG_PATH = $ HOME / local / lib / pkgconfigをエクスポートします。 ` | ` ## Video representation of the Compiling process for Tesseract 4.0 and Leptonica 1.7.4 on Ubuntu 16.xx ## Ubuntu 16.xx上のTesseract 4.0およびLeptonica 1.7.4のコンパイルプロセスのビデオ表示 * Video Build from Source Leptonica 1.7.4 *ビデオソースLeptonica 1.7.4からビルド * Video Build from Source Tesseract-OCR 4.0 *ビデオソースTesseract-OCR 4.0からビルド ## Language Data ##言語データ * Download the data file(s) for the language(s) you interest in. * あなたが興味を持っている言語のデータファイルをダウンロードしてください。 * Move it to the tessdata directory (e.g. mv tessdata $TESSDATA_PREFIX if defined TESSDATA_PREFIX) * tessdataディレクトリに移動してください(例 TESSDATA_PREFIXが定義されている場合は mv tessdata $ TESSDATA \ _PREFIX ) You can also use また使用することができます ` | ` export TESSDATA_PREFIX=/some/path/to/tessdata TESSDATA_PREFIX = / some / path /から/ tessdataにエクスポートします。 ` | ` to point to your tessdata directory (example if your tessdata path is /usr/local/share/tessdata you have to use export TESSDATA_PREFIX= /usr/local/share/ ). tessdataディレクトリを指すようにします(例 tessdataパスが / usr / local / share / tessdata の場合は、 export TESSDATA \ _PREFIX = / usr / local / share / を使用する必要があります)。 # Windows #ウィンドウズ ## master branch, 3.05 and later ## masterブランチ、3.05以降 #### Using Tesseract #### Tesseractを使う !!! IMPORTANT !!! To use Tesseract in your application (to include tess or to link it into your app) see this very simple example https //github.com/tesseract-ocr/tesseract/wiki/User-App-Example. !!!重要!!! アプリケーションでTesseractを使用する(tessを含める、またはそれをアプリケーションにリンクする)には、次の非常に簡単な例を参照してください。https //github.com/tesseract-ocr/tesseract/wiki/User-App-Example 。 #### Build the latest library ####最新のライブラリを構築する 1. Download the latest CPPAN (C++ Archive Network https //cppan.org/) client from https //cppan.org/client/. 1. [https //cppan.org/client/cppan-master-Windows-client.zip]最新のCPPAN(C ++アーカイブネットワーク https // cppan.org /)クライアントを https /からダウンロードします。 / cppan.org / client /。 2. Run cppan --build pvt.cppan.demo.google.tesseract.tesseract-master. 2. cppan --build pvt.cppan.demo.google.tesseract.tesseract-masterを実行します。 #### For visual studio project using tesseract #### tesseractを使ったビジュアルスタジオプロジェクトのために 1. Setup Vcpkg the Visual C++ Package Manager. 1. VcpkgをVisual C ++パッケージマネージャに設定します。 2. Run vcpkg install tesseract x64-windows for 64-bit. Use --head for the master branch. 2. 64ビット用に vcpkg install tesseract x64-windowsを実行します。マスターブランチには--headを使用してください。 #### Static linking ####静的リンク To build a self-contained tesseract.exe executable (without any DLLs or runtime dependencies), use Vcpkg as above with the following command 自己完結型の tesseract.exe実行可能ファイルを(DLLやランタイムの依存関係なしで)構築するには、上記のVcpkgを以下のコマンドで使用します。 - vcpkg install tesseract x64-windows-static for 64-bit - 64ビット用の vcpkg install tesseract x64-windows-static - vcpkg install tesseract x86-windows-static for 32-bit - 32ビット用の vcpkg install tesseract x86-windows-static Use --head for the master branch. It may still require one DLL for the OpenMP runtime, vcomp140.dll (which you can find in the Visual C++ Redistributable 2015). マスターブランチには--headを使用してください。 OpenMPランタイム用に1つのDLL、 vcomp140.dll(これはVisual C ++ Redistributable 2015にあります)を必要とするかもしれません。 #### Build training tools ####トレーニングツールを作成する Today it is possible to build a full set of tess training tools on Windows with Visual Studio. 今日では、Windows上でVisual Studioを使用してフルセットのテストレーニングツールを構築することが可能です。 The latest versions (Win10, VS2015/VS2017) are preferable. 最新バージョン(Win10、VS2015 / VS2017)が望ましいです。 To do this これをする 1. Download the latest CPPAN (C++ Archive Network https //cppan.org/) client from https //cppan.org/client/. 1. [https //cppan.org/client/cppan-master-Windows-client.zip]最新のCPPAN(C ++アーカイブネットワーク https // cppan.org /)クライアントを https /からダウンロードします。 / cppan.org / client /。 2. Run cppan --build pvt.cppan.demo.google.tesseract-master. 2. cppan --build pvt.cppan.demo.google.tesseract-masterを実行します。 #### Develop Tesseract #### Tesseractを開発する For development purposes of Tesseract itself do the next steps Tesseract自身の開発目的のために**次のステップを実行してください。 1. Download and install Git, CMake and put them in PATH. 1. Git、CMakeをダウンロードしてインストールし、それらをPATHに入れます。 2. Download the latest CPPAN (C++ Archive Network https //cppan.org/) client from https //cppan.org/client/. CPPAN is a source package distribution system. Add CPPAN client in PATH too. (VS2015 redist is required.) 2. [https //cppan.org/client/cppan-master-Windows-client.zip]最新のCPPAN(C ++アーカイブネットワーク https // cppan.org /)クライアントを https /からダウンロードします。 / cppan.org / client /。 CPPANはソースパッケージ配布システムです。 PATHにもCPPANクライアントを追加します。 (VS2015の再リストが必要です。) 3. If you have a release archive, unpack it to tesseract dir. 3.リリースアーカイブがある場合は、それを tesseractディレクトリに解凍します。 If you re using master branch (4.0) run master branch(4.0)を使っている場合 ` | ` git clone https //github.com/tesseract-ocr/tesseract tesseract gitクローンhttps //github.com/tesseract-ocr/tesseract tesseract ` | ` 4. Run 4.実行 ` | ` cd tesseract cdテセラクト cppan cppan mkdir build cd build mkdir build cd build cmake .. してください。 ` | ` 5. Build a solution (tesseract.sln) in your Visual Studio version. 5. Visual Studioのバージョンでソリューション( tesseract.sln)を作成します。 If you want to build and install from command line (e.g. Release build) you can use this command コマンドラインからビルドしてインストールしたい場合(例 Release build)、このコマンドを使用できます。 ` | ` cmake --build . --config Release --target install cmake --build --configリリース--target install ` | ` If you want to install to other directory that C \Program Files (you will need admin right for this), you need to specify install path during configuration C \ Program Filesという他のディレクトリにインストールしたい場合(これには管理者権限が必要です)、設定時にインストールパスを指定する必要があります。 ` | ` cmake .. -G "Visual Studio 15 2017 Win64" -DCMAKE_INSTALL_PREFIX=inst cmake .. -G "Visual Studio 15 2017 Win64" -DCMAKE_INSTALL_PREFIX = inst ` | ` For development purposes of training tools after cloning a repo from previous paragraph, run 前の段落からリポジトリを複製した後のトレーニングツールの開発目的 ` | ` cppan --build . cppan - ビルドします。 ` | ` You ll see a solution link appeared in the root directory of Tesseract. Tesseractのルートディレクトリにソリューションリンクが表示されます。 ## Building for x64 platform ## x64プラットフォーム用に構築 If you re building with cppan+cmake, run cmake as follows cppan + cmakeを使用して構築している場合は、次のようにcmakeを実行してください。 ` | ` mkdir win64 cd win64 mkdir win64 cd win64 cppan .. cppan .. cmake .. -G "Visual Studio 14 2015 Win64" cmake .. -G "Visual Studio 14 2015 Win64" ` | ` If you re building with cppan, edit cppan.yml and uncomment this line cppanでビルドしている場合は、cppan.ymlを編集してこの行のコメントを外します。 ` | ` #generator Visual Studio 14 2015 Win64 - generator Visual Studio 14 2015 Win64 #generator Visual Studio 14 2015 Win64 - ジェネレータ Visual Studio 14 2015 Win64 ` | ` Then run cppan --generate . - it will create a solution link for you. それから `cppan --generate を実行してください - それはあなたのための解決リンクを作成するでしょう。 (For VS2017, use 15 2017 instead of 14 2015 .) (VS2017では、 14 2015 の代わりに 15 2017 を使用してください。) ## 3.05 ## 3.05 If you have Visual Studio 2015, checkout the https //github.com/peirick/VS2015_Tesseract repository for Visual Studio 2015 Projects for Tessearct and dependencies. and click on build_tesseract.bat. After that you still need to download the language packs. Visual Studio 2015をお持ちの場合は、[Tessearctおよび依存関係のためのVisual Studio 2015プロジェクト]のhttps //github.com/peirick/VS2015_Tesseractリポジトリ(https //github.com/peirick/VS2015_Tesseract)をチェックし、build_tesseractをクリックしてください。 。コウモリ。その後も、言語パックをダウンロードする必要があります。 ## 3.03rc-1 ## 3.03rc-1 Have a look at blog How to build Tesseract 3.03 with Visual Studio 2013. ブログVisual Studio 2013でTesseract 3.03をビルドする方法をご覧ください。 ## 3.02 ## 3.02 For tesseract-ocr 3.02 please follow instruction in Visual Studio 2008 Developer Notes for Tesseract-OCR. tesseract-ocr 3.02についてはVisual Studio 2008 Tesseract-OCR開発者向けノートの指示に従ってください。 -tesseractocr-sources) ## 3.01 ## 3.01 Download these packages from the Downloads Archive on SourceForge page SourceForgeのダウンロードアーカイブページからこれらのパッケージをダウンロードしてください。 * tesseract-3.01.tar.gz - Tesseract source * tesseract-3.01.tar.gz - Tesseractのソース * tesseract-3.01-win_vs.zip - Visual studio (2008 2010) solution with necessary libraries * tesseract-3.01-win_vs.zip - 必要なライブラリを備えたビジュアルスタジオ(2008&2010)ソリューション * tesseract-ocr-3.01.eng.tar.gz - English language file for Tesseract (or download other language training file) * tesseract-ocr-3.01.eng.tar.gz - Tesseract用の英語ファイル(または他の言語トレーニングファイルをダウンロードする) Unpack them to one directory (e.g. tesseract-3.01). Note that tesseract-ocr-3.01.eng.tar.gz names the root directory tesseract-ocr instead of tesseract-3.01 . それらを1つのディレクトリに解凍します(例 tesseract-3.01)。 tesseract-ocr-3.01.eng.tar.gzは`tesseract-3.01 の代わりに`tesseract-ocr にルートディレクトリを指定することに注意してください。 Windows relevant files are located in vs2008 directory (e.g. tesseract-3.01\vs2008 ). The same build process as usual applies Open tesseract.sln with VC++Express 2008 and build all (or just Tesseract.) It should compile (in at least release mode) without having to install anything further. The dll dependencies and Leptonica are included. Output will be in tesseract-3.01\vs2008\bin (or tesseract-3.01\vs2008\bin.rd or tesseract-3.01\vs2008\bin.dbg based on configuration build). Windows関連ファイルはvs2008ディレクトリにあります(例 tesseract-3.01 \ vs2008 )。いつもと同じビルドプロセスが適用されます VC ++ Express 2008でtesseract.slnを開き、すべて(または単にTesseract)をビルドします。それ以上インストールしなくてもコンパイルできます(少なくともリリースモードで)。 dllの依存関係とLeptonicaが含まれています。出力はtesseract-3.01 \ vs2008 \ bin(または構成構築に基づいてtesseract-3.01 \ vs2008 \ bin.rdまたはtesseract-3.01 \ vs2008 \ bin.dbg)になります。 ## Mingw+Msys ## Mingw + Msys For Mingw+Msys have a look at blog Compiling Leptonica and Tesseract-ocr with Mingw+Msys. Mingw + MsysはブログMingw + MsysでLeptonicaとTesseract-ocrをコンパイルするをご覧ください。 。 ## Msys2 ## Msys2 Download and install MSYS2 Installer from https //msys2.github.io/ https //msys2.github.io/からMSYS2インストーラをダウンロードしてインストールします。 The core packages groups you need to install if you wish to build from PKGBUILDs are PKGBUILDからビルドしたい場合にインストールする必要があるコアパッケージグループは以下のとおりです。 - base-devel for any building - あらゆる建物の基礎開発 - msys2-devel for building msys2 packages - msys2パッケージをビルドするためのmsys2-devel - mingw-w64-i686-toolchain for building mingw32 packages - mingw32パッケージをビルドするためのmingw-w64-i686-toolchain - mingw-w64-x86_64-toolchain for building mingw64 packages - mingw64パッケージをビルドするためのmingw-w64-x86_64-toolchain To build the tesseract-ocr release package, use PKGBUILD from https //github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-tesseract-ocr tesseract-ocrリリースパッケージを構築するには、https //github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-tesseract-ocrからPKGBUILDを使用します。 ## Cygwin ## Cygwin To build on Cygwin have a look at blog How to build Tesseract on Cygwin. Cygwin上で構築するには、ブログCygwin上でTesseractを構築する方法をご覧ください。 Tesseract as well as the training utilities for 3.04.00 onwards are available as Cygwin packages. Tesseractと3.04.00以降のトレーニングユーティリティはCygwinパッケージとして利用可能です。 ` | ` Tesseract specific packages to be installed インストールする特定のパッケージを分解します。 tesseract-ocr 3.04.01-1 tesseract-ocr 3.04.01-1 tesseract-ocr-eng 3.04-1 tesseract-ocr-eng 3.04-1 tesseract-training-core 3.04-1 tesseract-training-core 3.04-1 tesseract-training-eng 3.04-1 tesseract-training-eng 3.04-1 tesseract-training-util 3.04.01-1 tesseract-training-util 3.04.01-1 ` | ` ## Mingw-w64 ## Mingw-w64 Mingw-w64 allows building 32- or 64-bit executables for Windows. Mingw-w64では、Windows用の32ビットまたは64ビットの実行可能ファイルを構築できます。 It can be used for native compilations on Windows, Windows上でネイティブコンパイルに使用できます。 but also for cross compilations on Linux (which are easier and faster than native compilations). しかし、Linux上でのクロスコンパイル(これはネイティブのコンパイルよりも簡単で速いです)のためにもあります。 Most large Linux distributions already contain packages with the tools need for a cross build. ほとんどの大規模なLinuxディストリビューションには、既にクロスビルドに必要なツールを含むパッケージが含まれています。 Before building Tesseract, it is necessary to build some prerequisites. Tesseractを構築する前に、いくつかの前提条件を構築する必要があります。 For Debian and similar distributions (e. g. Ubuntu), the cross tools can be installed like that Debianやそれに類するディストリビューション(Ubuntuなど)では、クロスツールは以下のようにインストールすることができます。 ` | ` # Development environment targeting 32- and 64-bit Windows (required) #32ビットおよび64ビットWindowsを対象とした開発環境(必須) apt-get install mingw-w64 apt-get mingw-w64をインストールしてください。 # Development tools for 32- and 64-bit Windows (optional) 32ビットおよび64ビットWindows用の開発ツール(オプション) apt-get install mingw-w64-tools apt-get mingw-w64-toolsをインストールする ` | ` These prerequisites will be needed これらの前提条件が必要になります。 * libpng, libtiff, zlib (binaries for Mingw-w64 available as part of the GTK+ bundles) * libpng、libtiff、zlib(Mingw-w64のバイナリはGTK +バンドルの一部として入手可能) * libicu * libicu * liblcms2 * liblcms2 * openjpeg * openjpeg * leptonica * leptonica # macOS # マックOS Typically a package manager like Fink, Homebrew or MacPorts is needed in addition to Apple s Xcode. 通常、Fink、Homebrew、MacPortsなどのパッケージマネージャが、AppleのXcodeに加えて必要です。 Xcode and the related command line tools provides the compiler (llvm-gcc) and linker, but also libraries like zlib. The package manager provides free software packages which are not part of Xcode. Xcodeと関連するコマンドラインツールはコンパイラ( llvm-gcc)とリンカを提供しますが、zlibのようなライブラリも提供します。パッケージマネージャはXcodeの一部ではないフリーソフトウェアパッケージを提供します。 The Xcode Command Line Tools can be installed by running xcode-select --install. Xcodeコマンドラインツールは xcode-select --installを実行することでインストールできます。 Note that Tesseract 4 can be built with OpenMP support, but that requires additional installations. Tesseract 4はOpenMPサポートでビルドすることができますが、追加のインストールが必要です。 ## macOS with Fink Finkによる## macOS Fink (as of 2017-04) neither provides Leptonica nor the packages needed for the Tesseract training tools, Fink(2017-04現在)はLeptonicaもTesseractトレーニングツールに必要なパッケージも提供していません。 so it cannot be recommended for building Tesseract. そのため、Tesseractを構築するのにはお勧めできません。 ## macOS with MacPorts ## macOSとMacPorts ### Prepare support for OpenMP (optional) ### OpenMPのサポートを準備する(オプション) Install OpenMP OpenMPをインストールします。 ` | ` sudo port install libomp sudoポートインストールlibomp ` | ` The following method which gets, compiles and installs OpenMP manually should no longer be needed OpenMPを手動で取得、コンパイル、インストールする次の方法はもう必要ありません。 ` | ` # Install cmake if it is not available. #cmakeが利用できない場合はインストールしてください。 sudo port install cmake sudo port install cmake git clone https //github.com/llvm-mirror/openmp.git git clone https //github.com/llvm-mirror/openmp.git cd openmp cd openmp mkdir build mkdirビルド cd build CDビルド cmake .. してください。 make 作る sudo make install sudo make install ` | ` ### Install required packages ###必要なパッケージをインストールする ` | ` sudo port install autoconf \ sudo port install autoconf \ automake \ automake \ libtool \ libtool \ pkgconfig \ pkgconfig \ leptonica レプトニカ ` | ` ### Compilation ###コンパイル Compilation itself relies on the Autotools suite コンパイル自体はAutotools suiteに依存しています。 ` | ` git clone https //github.com/tesseract-ocr/tesseract.git git clone https //github.com/tesseract-ocr/tesseract.git cd tesseract cdテセラクト ./autogen.sh ./autogen.sh ./configure ./configure make 作る sudo make install sudo make install ` | ` If you want support for multithreading, you have to install OpenMP first (see above) マルチスレッドをサポートしたい場合は、最初にOpenMPをインストールする必要があります(上記参照)。 and tell the compiler and linker how to activate OpenMP support. そしてコンパイラとリンカにOpenMPサポートを有効にする方法を伝えます。 This is done by adding that information to the options for configure これは configureのオプションにその情報を追加することで行われます。 ` | ` ./configure CXXFLAGS="-Xpreprocessor -fopenmp -I/opt/local/include/libomp -Wall -O2" LDFLAGS=-L/opt/local/lib/libomp LIBS=-lomp ./configure CXXFLAGS = " - Xプリプロセッサ-fopenmp -I / opt / local / include / libomp -Wall -O2" LDFLAGS = -L / opt / local / lib / libomp LIBS = -lomp ` | ` If compilation fails at the make command, with libtool erring on missing instructions, you may be building with MacPort s g++ compiler, with known issues. The community recommends to use clang, but a workaround for g++ is to re-configure the build makeコマンドでコンパイルが失敗し、libtoolが足りない命令を誤って表示した場合、[既知の問題]を伴って、MacPortの g ++コンパイラでビルドしているかもしれません(https //github.com/tesseract-ocr/tesseract/プル/ 1474)。コミュニティは clangを使うことを推奨しますが、g ++の回避策はビルドを再設定することです ./configure CXXFLAGS=-Wa,-q ./configure CXXFLAGS = -Wa、-q And then proceed with make. そして makeを続けます。 ### Install Tesseract with training tools ###トレーニングツールを使ってTesseractをインストールする In the above training tools are not installed. You can install not only Tesseract but also training tools like below. 上記のトレーニングツールはインストールされていません。 Tesseractだけでなく、以下のようなトレーニングツールもインストールできます。 #### Install packages required by training tools ####トレーニングツールに必要なパッケージをインストールする ` | ` sudo port install cairo pango sudoポートインストールcairo pango sudo port install icu +devel sudoポートインストールicu + devel ` | ` #### Build and Install ####ビルドしてインストールする ` | ` git clone https //github.com/tesseract-ocr/tesseract/ git clone https //github.com/tesseract-ocr/tesseract/ cd tesseract cdテセラクト ./autogen.sh ./autogen.sh ./configure ./configure make training トレーニングをする sudo make install training-install sudo make installトレーニングインストール ` | ` ## macOS with Homebrew 自作の## macOS ### Install dependencies ###インストール依存関係 ` | ` brew install automake autoconf libtool brew install automake autoconf libtool brew install pkgconfig bkgインストールpkgconfig brew install icu4c インストールicu4cを醸造 brew install leptonica 醸造インストールレプトニカ brew install gcc インストールGCCを醸造 ` | ` ### Install Tesseract with training tools ###トレーニングツールを使ってTesseractをインストールする In the above, training tool dependencies are not installed. You can install them like below. 上記では、トレーニングツールの依存関係はインストールされていません。以下のようにインストールすることができます。 ` | ` brew install pango インストールパンゴを醸造 ` | ` ### Compile ###コンパイル As of January 2017, the clang builds but OpenMP will only use a single thread, reducing performance. For best results, use gcc. 2017年1月現在、clangはビルドされますが、OpenMPはシングルスレッドのみを使用するため、パフォーマンスが低下します。最良の結果を得るには、gccを使用してください。 The exact values of CPPFLAGS and LDFLAGS can be read from brew info icu4c. If you want to build training module, you should also link pango libraries as -L/usr/local/Cellar/pango/1.42.4/lib. | CPPFLAGSと LDFLAGSの正確な値は brew info icu4cから読むことができます。トレーニングモジュールを構築したい場合は、 pangoライブラリを -L / usr / local / Cellar / pango / 1.42.4 / libとしてリンクする必要があります。 ```bash bash git clone https //github.com/tesseract-ocr/tesseract/ git clone https //github.com/tesseract-ocr/tesseract/ cd tesseract cdテセラクト ./autogen.sh ./autogen.sh ./configure CC=gcc-8 CXX=g++-8 CPPFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib ./configure CC = gcc-8 CXX = g ++ - 8 CPPFLAGS = -I / usr / local / opt / icu4c / include LDFLAGS = -L / usr / local / opt / icu4c / lib make -j make -j sudo make install # if desired sudo make install##必要ならば make training # if installed with training dependencies トレーニング依存関係がインストールされている場合は、トレーニング番号を作成します。 ` | ` # Common Errors #よくあるエラー * To fix this error *このエラーを修正する ` | ` ./configure line 4237 syntax error near unexpected token `-mavx, ./configure 4237行 予期しないトークン-mavxの近くに構文エラー ./configure line 4237 AX_CHECK_COMPILE_FLAG(-mavx, avx=1, avx=0) | ./configure 4237行目 AX_CHECK_COMPILE_FLAG(-mavx、avx = 1、avx = 0) ` | ` ensure that autoconf-archive is installed. Don t forget to run ./autogen.sh after the installation of autoconf-archive. Note this error happens often under CentOS, where autoconf-archive is missing and no package is available. Some projects help with installing. autoconf-archiveがインストールされていることを確認してください。 autoconf-archiveのインストール後に。/ autogen.shを実行することを忘れないでください。このエラーはCentOSの下でしばしば発生することに注意してください。そこでは autoconf-archiveがなく、利用可能なパッケージもありません。 いくつかのプロジェクトはインストールを手助けします。 The latest code from GitHub does not require autoconf-archive. GitHubからの最新のコードは autoconf-archiveを必要としません。 * If configure fails with such error "configure error Leptonica 1.74 or higher is required." Try to install libleptonica-dev package. * configureがこのようなエラーで失敗した場合 "configure error Leptonica 1.74以上が必要です。" libleptonica-devパッケージをインストールしてみてください。 * If you are sure you have installed leptonica (for example in /usr/local) then probably pkg-config is not looking at your install folder (check with pkg-config --variable pc_path pkg-config). *もしあなたが(例えば/ usr / localに)leptonicaをインストールしたと確信しているなら、おそらくpkg-configはあなたのインストールフォルダを見ていません( pkg-config --variable pc_path pkg-configでチェックしてください)。 A solution is to set PKG_CONFIG_PATH example PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 解決策はPKG_CONFIG_PATHを設定することです 例 PKG_CONFIG_PATH = / usr / local / lib / pkgconfig * On some systems autotools does not create m4 directory automatically (giving the error "configure error cannot find macro directory m4 "). *一部のシステムでは、autotoolsはm4ディレクトリを自動的に作成しません( "configure error マクロディレクトリ m4 が見つかりません"というエラーが出ます)。 In this case you must create m4 directory (mkdir m4), and then rerun the above commands starting with ./configure. この場合、m4ディレクトリ( mkdir m4)を作成してから、。/ configureで始まる上記のコマンドを再実行しなければなりません。 # Miscellaneous #その他 * Standalone Tesseract build bash script * スタンドアロンTesseractビルドbashスクリプト
https://w.atwiki.jp/kobapan/pages/82.html
以下設定ファイルを編集する /etc/network/interfaces 私の環境では、次の2行だけが設定されていた。 auto lo iface lo inet loopback これに以下のような行を追加する auto eth0 iface eth0 inet static address 192.168.0.100 netmask 255.255.255.0 gateway 192.168.0.1 auto eth0 がサーバー起動時に、eth0を自動的に有効にする その他は自分の環境に合わせる。 合わせて /etc/resolv.conf も作成しネームサーバを追記する nameserver 192.168.0.1 ネットワークを再起動する /etc/inet.d/networking restart
https://w.atwiki.jp/ciez/pages/18.html
commandsProcess util Bash svn MPI shell LogKeep loggin history more than one month (/var/log/wtmp) TroubleError while loading shared libraries message OS version SoftwareNetwork DevelopmentSVN eclipse Internet/Communication Office Utils Configuration commands Process ps -aux kill -9 (process no.) util history tail -f tar zxvf file.tar.gz tar cvzf (output).tar.gz (input) quota pushd (your destination dir) / popd make Make.log 2 1 export LANG=en.UTF-8 ps -eLF | grep $USER Bash source ~/.bashrc svn svn checkout (url) (destination dir) error svn Can t convert string from UTF-8 to native encoding export LC_CTYPE=en_US.UTF-8 error gnome-keyring open ~/.subversion/config edit as below and save password-stores = MPI mpisubmit (program) (partition nr.) (job name) (arguments) qstat | grep ... qmon mpirun -np (cpu nr.) (program) PGI compiler for C codes mpi_pgcc PGI compiler for C++ codes mpi_pgCC shell Control + D kill process Control + Z stop process Log Keep loggin history more than one month (/var/log/wtmp) open /etc/logrotate.conf increase the rotate count (default is 1) Trouble Error while loading shared libraries message export LD_LIBRARY_PATH= OS version uname -a cat /etc/issue Software Network Wicd http //d.hatena.ne.jp/KishikawaKatsumi/20080504/1209899668 Development Kate Meld Diff Viewer QtCreator eclipse Beyond compare SVN RapidSVN Nautilus Scripts for Subversion The scripts were developed by mariuss weblog http //marius.scurtescu.com/2005/08/24/nautilus_scripts_for_subversion Now available in the Ubuntu Dapper universe repository http //packages.ubuntu.com/dapper/devel/nautilus-script-collection-svn eclipse Ubuntu 9.10 - Button click doesn t work start ecplise as below #!/bin/sh export GDK_NATIVE_WINDOWS=1 /opt/eclipse/eclipse Internet/Communication Firefox / Opera Thunderbird Pidgin Internet Messenger Skype Office Open Office Grace PDF Editor Texmaker JabRef Mendeley Desktop Utils Citrix client Paraview Sun VirtualBox - Duplicate VDI 1. cd /home/(user)/.VirtualBox 2. type command VBoxManage clonevdi (full path to a source vdi file) (full path to a new vdi file) 3. Start VirtualBox and open Virtual Media Manager 4. Add new VDI Wine Comix Configuration /etc/sysctl.conf vm.swappiness = 0
https://w.atwiki.jp/ubuntu_beginner/pages/9.html
関連ブログ @wikiのwikiモードでは #bf(興味のある単語) と入力することで、あるキーワードに関連するブログ一覧を表示することができます 詳しくはこちらをご覧ください。 =>http //atwiki.jp/guide/17_161_ja.html たとえば、#bf(ゲーム)と入力すると以下のように表示されます。 #bf
https://w.atwiki.jp/gogosakura/pages/119.html
EclipseにAndroidエミュレータのインストールする時に。 Failed to create the SD card とか出たので、 sudo apt-get install ia32-libs chmod -R 777 ../tools ってやったら、無事に起動しましたとさ。 情報元:http //stackoverflow.com/questions/3878445/ubuntu-error-failed-to-create-the-sd-card
https://w.atwiki.jp/kandoushita/pages/48.html
その他アメデス Phun SQLite Database Browser 降霊機 ubuntu wubiインストール Lingoes Mitaka PuppyLinux Ubuntu I8kfanGUI ゲームヴァンガードプリンセス 都道府県を覚えよう DxRec TrackMania Nations Forever vNes (NES Emulator) MAME Plus!(いろいろあるけどこれ基本だと思ってこれにした) スライドパズル万能解答 チンコ剥き剥き大作戦 Ebyss セキュリティAVAST 入力支援AgainTyper かおぷ~ ImePointer Dさんの日本語じゃなきゃイヤン。 電卓Moffsoft FreeCalc C電卓 mulc M電卓 巨大電卓「デカルク」 for Windows Version 3.20
https://w.atwiki.jp/terragen/pages/205.html
Terragen 4.3.21現在、「VDB Export」の機能はLinux版のTerragenに限定されています。しかし、Windows 10の機能の一つ、"Windows Subsystem for Linux"を導入する事で、Windowsマシンから『Easy Cloud』のVDBをエクスポートする事が出来ます。 このガイドでは、"Windows Subsystem for Linux"の導入から、Linux版Terragenのインストール、「VDB Export」の実行までを解説します。 最後に、エクスポートしたVDBの雲を他3Dアプリケーションでインポートして確認するところまでを紹介します。 注 画像が見難い場合は、画像を別ウインドウで表示して下さい。縮小前の元サイズで表示します。 "Windows Subsystem for Linux"の導入 まず、 Windows Subsystem for Linux については、こちらを参照して下さい。新しくマシンを揃える事なく、既存のWindowsのOS上でLinuxを実行する事が出来ます。 スタートボタンから、または検索フィールドで「アプリと機能」と入力し、選択します。 パネルが開いたら、画面右側の「関連設定」にある"プログラムと機能"を選択します。 パネルが開いたら、「Windowsの機能の有効化または無効化」をクリックします。『Windowsの機能』のウインドウが開き、機能の一覧が表示されるので、"Windows Subsystem for Linux"のチェックボックスにチェックを入れます。 必要なファイルが自動でインストールされます。しばらく待つと、完了を知らせ、再起動を要求します。[今すぐ再起動]を選択して、マシンを再起動します。 再起動時にインストールした内容が再構築されます。さらにここから"Windows Subsystem for Linux"を機能させるための設定を行います。スタートボタンから「設定」を選択します。 パネルが開いたら、「更新とセキュリティ」を選択します(現在この設定は不要です)。 パネルが開いたら、左メニューから「開発者向け」を選択し、右側の"開発者モード"にチェックを入れます(現在この設定は不要です)。 スタートボタンから「Microsoft Store」を選択し、ウインドウが開いたら検索で"Ubuntu"と入力します。何種類かの類似アプリが表示されますが、無印の"Ubuntu"を選択し、[入手]ボタンを押してインストールします。(2018.12.29現在、Ubuntuバージョンは18.04.29) 『Ubuntu』を起動します。この時、右クリックでポップアップメニューから「その他」を選択し、"管理者として実行"を選択して起動します。 コマンドプロンプトのような黒地のウインドウが開きます。これがLinux画面です。初回の起動時はしばらく待っていると、"username(ユーザ名)"を聞いてきます。半角英数字で入力します。続いて"password(パスワード)"を聞いてきます。これは入力してもカーソルが動かず、入力した文字も表示されません。正確に入力し、確認のためにもう一度同じパスワードを入力します。設定が完了すると、"(ユーザ名)@(コンピュータ名) $"と括弧内が緑文字で表示されて入力待ちになります。 このままでも問題ありませんが、初期状態だとリポジトリのデータを取りに行くのが海外サーバーになっているため、下記のコードで日本サーバーに変更します。 "sudo"コマンドは権限者によるコマンドの実行を意味し、"sed"コマンドは2つの文字列の内容を置き換える働きを持ちます。 WindowsのOSと同じでLinuxも日々修正や改善が行われています。アップデートや、アップグレードを済ませておきましょう。 "apt"コマンドはパッケージ管理システムとして働きます。コマンドを入力するとサーバーからファイルをダウンロードし、自動でインストールを行ってくれます。 初期導入時はアップグレードにはしばらく時間が掛かります。途中で使用するディスク容量の追加を伺うメッセージが出ますので、"y"を入力して下さい。アップグレードが終了すると、コマンドの入力状態に戻ります。 "Linux版Terragen"の導入 事前に、"Terragen_4_Linux_43210.tar.gz (2019.12.25時点で最新版)"を用意して下さい。このガイドでは、入手したファイルは"S"ドライブの"work"フォルダに格納している前提で解説します。"()"で任意の場所を記述しますので、環境に合わせて変更して下さい。 cp /mnt/(s)/(work)/Terragen_4_Linux_43210.tar.gz .格納された"Terragen_4_Linux_43210.tar.gz"のファイルを、Linuxの仮想ドライブのルートディレクトリにコピーします。 tar xvzf Terragen_4_Linux_43210.tar.gz圧縮ファイル".tar.gz"を解凍します。場合によっては画像のように圧縮ファイルと認識してくれず、解凍せずに終了する事があります。これは".tar"、".gz"の二重に圧縮する事で起こる症状で、上手くいかない場合は下記のコマンドを入力します。エラーが出なかった場合は飛ばして下さい。解凍が始まるとファイルの展開がスクロールで表示されます。gunzip Terragen_4_Linux_43210.tar.gz二重に圧縮されたファイルを伸張し、".tar"の単純圧縮ファイルに変換します。 tar xvf Terragen_4_Linux_43210.tar単純圧縮になった事で、パラメータから"z"がなくなり、".gz"の拡張子も外れます。 ls解凍されたファイルを確認します。ホームディレクトリに「Terragen_4_Linux_43210」フォルダと、最初にコピーした"Terragen_4_Linux_43210.tar.gz"のファイルが存在します。さらにcd Terragen_4_Linux_43210で「Terragen_4_Linux_43210」フォルダに移動し、もう一度lsすると、Terragenの実行ファイルなどが格納されているのを確認する事が出来ます(フォルダ名は青文字で示されます)。 mv Terragen_4_Linux_43210 (tg4321)「Terragen_4_Linux_43210」フォルダ名が長過ぎるので、「tg4321」とフォルダ名を変更します。cp /mnt/(s)/(work)/tg4key.lic ./(tg4321)Terragenの実行ファイルが格納された「tg4321」フォルダに、ライセンスキーファイルをコピーします。 TerragenをLinux上で動かすために必要なライブラリ等があります。インストールする順番は任意ですが、下記の5つは必ずインストールして下さい。途中ユーザパスワードや、[y/n]を確認するコマンドが表示されます。正確なパスワード、"y"を入力して作業を継続して下さい。sudo apt-get install libgl1-mesa-dev sudo apt-get install libglu-dev sudo apt-get install freeglut3-dev sudo apt-get install libjpeg62 "libpng12.so.0"のライブラリをインストールするには、いったんdebパッケージをダウンロードしてからインストールする必要があります(本来、Intel CPUの場合は、"libpng12-0_1.2.54-1ubuntu1_i386.deb"が用意されていますが、UbuntuはAMD CPUをエミュレーションして作動しているようで、「Windows Subsystem for Linux」では、i386.debをインストールする事が出来ません)。 http //mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb dpkg -i /mnt/(s)/(work)/libpng12-0_1.2.54-1ubuntu1_amd64.deb 『Easy Cloud』の作成 一旦Ubuntuは終了し、Windows上に戻ります。Terragenを起動し、お好みの『Easy Cloud』を作成します。出来上がったプロジェクトを保存します。ここでは、"vdb.tgd"と名付けて保存します。保存したプロジェクトファイルは、前工程の"Linux版Terragen"の導入と同じようにSドライブの「work」フォルダに格納した状態で解説します。 ここで注意すべき点は、VDB出力するためにクラウドレイヤーのノード名が必要になります。今回は、デフォルト名の"Easy cloud 01"のまま保存しています。 Ubuntuを起動し、LinuxのコマンドラインでTerragenを起動します。 ./tg4321/terragen -p /mnt/(s)/(work)/vdb.tgd -exportvdb "(Easy cloud 01)" /mnt/(s)/(work)/cloud.vdb ()内は任意のドライブ名、フォルダ名、ノード名が入ります。実際のコマンドラインは以下のように入力しています。 Linux版Terragenが起動すると、処理が開始します。"cloud.vdb"ファイルのエクスポートが終了するとコマンド入力状態で待機します。画像は成功した時のログです。 "cloud.vdb"ファイルをVDB対応のソフトウエアでインポートして確認します。この解説では、『 e-on Vue 』のインポートオブジェクトでVDB形式を指定して読み込みました。
https://w.atwiki.jp/jpops/pages/4572.html
Cadiluck Bunnyをお気に入りに追加 Cadiluck Bunnyのリンク #bf Amazon.co.jp ウィジェット Cadiluck Bunnyの報道 gnewプラグインエラー「Cadiluck Bunny」は見つからないか、接続エラーです。 Cadiluck Bunnyとは Cadiluck Bunnyの79%は小麦粉で出来ています。Cadiluck Bunnyの13%は花崗岩で出来ています。Cadiluck Bunnyの3%は元気玉で出来ています。Cadiluck Bunnyの2%は純金で出来ています。Cadiluck Bunnyの1%は回路で出来ています。Cadiluck Bunnyの1%は鍛錬で出来ています。Cadiluck Bunnyの1%は真空で出来ています。 Cadiluck Bunny@ウィキペディア Cadiluck Bunny Amazon.co.jp ウィジェット 掲示板 名前(HN) カキコミ すべてのコメントを見る ページ先頭へ Cadiluck Bunny このページについて このページはCadiluck Bunnyのインターネット上の情報を集めたリンク集のようなものです。ブックマークしておけば、日々更新されるCadiluck Bunnyに関連する最新情報にアクセスすることができます。 情報収集はプログラムで行っているため、名前が同じであるが異なるカテゴリーの情報が掲載される場合があります。ご了承ください。 リンク先の内容を保証するものではありません。ご自身の責任でクリックしてください。
https://w.atwiki.jp/unturned/pages/449.html
サーバー情報 ソーシャルリンク 管理者への連絡方法 このサーバーのバン情報 サーバー管理者のSteamプロフィールページ サーバー情報 Unturned[JPN]Server ホームページ 無 管理者名 RomZel 最大人数 12 IP 192.168.1.4 パスワード 無 PvP 無 モード Easy ポート 27015 Sync なし 一言 アイテムを盗まれた等は管理人に伝えてください。 ソーシャルリンク Twitter なし Facebook なし Skype RomZel@2121 管理者への連絡方法 このサーバーのバン情報 Steamユーザー名 理由 サーバー管理者のSteamプロフィールページ Steam User Page
https://w.atwiki.jp/mywiki2010/
Android開発の個人的なメモ。 今のところ個人的メモ扱いなので、管理者以外の編集不可。 管理者のネットブック環境は現在ASUSのEeePC1000-HE。 アプリケーション開発編 Androidアプリケーションを開発するための情報 環境構築 Windows編 Window上にAndroidアプリケーション開発環境を構築する。 Android動作環境編 実機インストールやエミュレータ等、Android動作環境に関する情報 USBブートでAndroid USBブート可能なx86マシンでAndroidを動作させる。 ネットブック(EeePC)でAndroid ネットブック(EeePC)にAndroidをインストールする。 Ubuntu導入編 Android開発のためにUbuntu環境を構築させるための情報 ネットブック(EeePC)でデュアルブート WindowsXP編 ネットブックにUbuntu Netbook Remixをインストール。 インストール済みのWindowsXPも動作できるように、デュアルブート構成にする。 リンク Android Developers Android開発者向けの情報