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

Update Leptonica to 1.73 #1153

Merged
merged 7 commits into from
Mar 9, 2016
Merged

Update Leptonica to 1.73 #1153

merged 7 commits into from
Mar 9, 2016

Conversation

Shreeshrii
Copy link
Contributor

No description provided.

@Alexpux
Copy link
Member

Alexpux commented Mar 9, 2016

Update checksums too

--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--target=${MINGW_CHOST} \
--prefix=${MINGW_PREFIX}

make
make LDFLAGS='-Wc,-static-libgcc'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why it here?
We build with shared libgcc as preferred version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes from an msys installation:

  1. Configuration requires prior installation of the GIF, JPEG, PNG,
    TIFF, and
  WEBP libraries if I/O corresponding to these formats is to be

supported,

  and of the ZLIB library if compression is to be used.
  1. "--disable-static" suppresses building the static library.
  2. "--disable-silent-rules" is required to show compiler invocations.
  3. "-DMINIMUM_SEVERITY=L_SEVERITY_WARNING" suppresses informational
    messages
  in the library, i.e., allows only warning and error messages to be

  printed.
  1. The compiler warning options are a sanity check on the library code.
  2. "-Wc,-static-libgcc" prevents libtool from linking the gcc runtime
    DLL to
  the library DLL.  It must be specified during building, as it is a

libtool

  (not gcc) option; specifying it during configuration will fail.
  1. The default compiler flags are "-g -O2", and the default linker
    flags are
  "-Wl,--as-needed".
  1. "-C src" skips installation of 13 utilities from the "prog"
    subdirectory.

ShreeDevi


भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Wed, Mar 9, 2016 at 2:42 PM, Алексей notifications@github.com wrote:

In mingw-w64-leptonica/PKGBUILD
https://github.com/Alexpux/MINGW-packages/pull/1153#discussion_r55489607
:

 --build=${MINGW_CHOST} \
 --host=${MINGW_CHOST} \
 --target=${MINGW_CHOST} \
 --prefix=${MINGW_PREFIX}
  • make
  • make LDFLAGS='-Wc,-static-libgcc'

Why it here?
We build shared as preferred version.


Reply to this email directly or view it on GitHub
https://github.com/Alexpux/MINGW-packages/pull/1153/files#r55489607.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We link with libgcc runtime. So don't use --static-libgcc

make DESTDIR="${pkgdir}" install
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no spaces need before "}"

[[ -d "${srcdir}/build-${CARCH}" ]] && rm -rf "${srcdir}/build-${CARCH}"
mkdir "${srcdir}/build-${CARCH}"
cd "${srcdir}/build-${CARCH}"
CFLAGS='-g -O2 -DMINIMUM_SEVERITY=L_SEVERITY_WARNING -Wall -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-maybe-uninitialized'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do as I wrote. Don't override ALL CFLAGS. You need only add "-DMINIMUM_SEVERITY=L_SEVERITY_WARNING" to current CFLAGS.

Alexpux added a commit that referenced this pull request Mar 9, 2016
@Alexpux Alexpux merged commit ddec0c9 into msys2:master Mar 9, 2016
@Shreeshrii
Copy link
Contributor Author

$ tesseract --tessdata-dir /mingw32/share ./testing/toc2.gif ./testting/toc2
Tesseract Open Source OCR Engine v3.05.00dev with Leptonica
Warning in pixReadMemGif: writing to a temp file, not directly to memory
Error in pixReadStreamGif: Can't use giflib-5.1.2; suggest 5.1.1 or earlier

need to change depends

     '${MINGW_PACKAGE_PREFIX}-giflib=5.1.1'

@Alexpux
Copy link
Member

Alexpux commented Mar 10, 2016

Well need to fix tesseract to use current gif lib instead, because I don't want to downgrade giflib

@rockyfire
Copy link

giflib-5.1.1 download
@Alexpux
but i don't know how to use it

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

Successfully merging this pull request may close these issues.

None yet

3 participants