Commit f7ec31de authored by Konstantin Baierer's avatar Konstantin Baierer
Browse files

📝 Remove obsolete OSX/clang solution in docs

parent 4169ea6f
......@@ -150,7 +150,3 @@ retrain models as better recognizers become available.
After making CLSTM a full replacement for `ocropus-rtrain`/`ocropus-rpred`, the
next step will be to replace the binarization, text/image segmentation, and layout
analysis in OCRopus with trainable 2D LSTM models.
## Solution for clang
# Patch for OSX (clang)
The compile flag `-fopenmp` doesn't work for clang,
so if your `gcc` is link to `clang` you might need to take solutions below:
1. Install `gcc` and make sure `gcc` in `$PATH` is point to real `gcc`,
not `clang`.
2. If you don't have `gcc` installed, apply patch below to change compile flag.
``` diff
--- ocrolib/ 2015-02-21 13:34:52.000000000 +0800
+++ ocrolib_osx/ 2015-02-21 15:29:56.000000000 +0800
@@ -41,7 +41,7 @@
def compile_and_find(c_string,prefix=".pynative",opt="-g -O4",libs="-lm",
- options="-shared -fopenmp -std=c99 -fPIC",verbose=0):
+ options="-shared -openmp -std=c99 -fPIC",verbose=0):
if not os.path.exists(prefix):
m = hashlib.md5()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment