-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update Leptonica to 1.73 #1153
Conversation
Update checksums too |
--build=${MINGW_CHOST} \ | ||
--host=${MINGW_CHOST} \ | ||
--target=${MINGW_CHOST} \ | ||
--prefix=${MINGW_PREFIX} | ||
|
||
make | ||
make LDFLAGS='-Wc,-static-libgcc' |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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:
- 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.
- "--disable-static" suppresses building the static library.
- "--disable-silent-rules" is required to show compiler invocations.
- "-DMINIMUM_SEVERITY=L_SEVERITY_WARNING" suppresses informational
messages
in the library, i.e., allows only warning and error messages to be
printed.
- The compiler warning options are a sanity check on the library code.
- "-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.
- The default compiler flags are "-g -O2", and the default linker
flags are
"-Wl,--as-needed".
- "-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.
There was a problem hiding this comment.
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 | ||
} | ||
} |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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.
$ tesseract --tessdata-dir /mingw32/share ./testing/toc2.gif ./testting/toc2 need to change depends
|
Well need to fix tesseract to use current gif lib instead, because I don't want to downgrade giflib |
giflib-5.1.1 download |
No description provided.